Make it possible to copy lists into local environment with copydocs - #13361
Open
cdrini wants to merge 5 commits into
Open
Make it possible to copy lists into local environment with copydocs#13361cdrini wants to merge 5 commits into
cdrini wants to merge 5 commits into
Conversation
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Replace the saved set, which never actually caught cycles since recursion happens before a key is marked, with seen, which is independent of the destination writes and marked immediately when a key is claimed. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
A real account can't be copied piecemeal (see the previous commit), and copying a list's sub-key alone leaves its slugged page 500ing on the missing owner. Register an empty stub account through infobase whenever a /people/<username> key or one of its sub-resources is copied. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The recursive call for referenced docs never passed editions along, so it silently defaulted to False — works discovered via a reference (e.g. from a list or author) never got their editions fetched, only works passed directly as a key. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
While debugging #12966 , I needed to copy in some lists into the local dev environment, but kept hitting issues! This resolves those and lists can now easily and fully be copied in with
copydocs.To copy in a list recursively, you just do:
And then it'll be available at http://localhost:8080/people/ScarTissue/lists/OL341354L/Book_Club_2026-08
Technical
copydocs --listsflagTesting
Screenshot
Stakeholders