Repository navigation
Synthetic fixtures and a LOCAL_SEED loader - #1
Open
Ethan-Arrowood wants to merge 1 commit into
Open
Ethan-Arrowood wants to merge 1 commit into
Ethan-Arrowood wants to merge 1 commit into
Conversation
Local development and tests need data in every state without any real event data in the repo. fixtures/ holds a synthetic set: 19 tasks covering every status (open, claimed self-serve and by an organizer, completed, flagged, removed), three themes, every difficulty, and both import shapes; one guide per theme; six users (an admin, attendees, a banned and a timed-out user); and the announcement and pool settings. The states are consistent with each other. Every login contains an underscore, which GitHub usernames can't, so a fixture account never matches a real user. LOCAL_SEED=<dir> loads such a set with each task's state intact (unlike LOCAL_DATA_FILE, which opens every task) plus users and settings. Like the other loaders it never overwrites an existing record, so restarts keep local edits. It runs only on a local instance (shared/local.ts: OAUTH_REDIRECT_URI unset or a loopback host) and logs why it skipped otherwise. LOCAL_DATA_FILE and LOCAL_GUIDES_FILE are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
First of three PRs laying the groundwork for the platform work: fixtures + seed → dev sign-in + guard → API tests in CI.
What
fixtures/: a synthetic data set. No real event data.detail/tiershape).fx_ada(admin),fx_alice,fx_bobandfx_erin(attendees),fx_carol(banned),fx_dave(timed out).LOCAL_SEED=<dir>: loads a fixture set with each task's state intact (unlikeLOCAL_DATA_FILE, which opens every task), plus users and settings.OAUTH_REDIRECT_URIunset or a loopback host (resources/shared/local.ts). Anywhere else it logs why it skipped.LOCAL_DATA_FILEandLOCAL_GUIDES_FILEare unchanged.fixtures/README.md, plusLOCAL_SEEDin the README and.env.example.Nothing changes in production: the new code only runs when
LOCAL_SEEDis set on a local instance.Verified on a local Harper 5.2 (4 threads)
added 0 … (30 already present), and both edits survive.OAUTH_REDIRECT_URI=https://example.com/oauth/callback:LOCAL_SEED ignored: … is not a local origin, and nothing is seeded.🤖 Generated with Claude Code