feat: add fixtures#2641
Conversation
Add fixture files for bootstrapping development environments with sample sponsor and event data. Uses natural foreign keys for content types and user references to avoid breakage when content type IDs change. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
e673822 to
ec4c80c
Compare
There was a problem hiding this comment.
Pull request overview
Adds new Django fixture files intended to seed development environments with example Sponsors data (including an “admin sponsor” scenario) and Events data.
Changes:
- Added
fixtures/sponsors-admin.jsonwith a large set of Sponsors-related objects for dev seeding. - Added
fixtures/events.jsonwith a minimal events calendar/category/location/events + rules dataset.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| fixtures/sponsors-admin.json | New sponsors fixture intended to preload a sample sponsor/sponsorship dataset (and related assets/config). |
| fixtures/events.json | New events fixture intended to preload a sample calendar and a few sample events/rules. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 2 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
The docs dependencies are in [dependency-groups], not [project.optional-dependencies], so pip install '.[docs]' fails. Use pip install --group docs to match the pattern from #2902. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- "comlimentary" → "complimentary" in internal_name - "retreival" → "retrieval" in internal_name - "sponsorshp" → "sponsorship" in description Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| python: "3" | ||
|
|
||
| commands: |
There was a problem hiding this comment.
Read the Docs’ Ubuntu 22.04 image may ship with an older pip that doesn’t support pip install --group ..., which would make the docs build fail. Consider explicitly upgrading pip (and optionally setuptools/wheel) before this command, and/or pinning build.tools.python to 3.12 to match requires-python = ">=3.12" in pyproject.toml.
| python: "3" | |
| commands: | |
| python: "3.12" | |
| commands: | |
| - python -m pip install --upgrade pip setuptools wheel |
Description
Add fixture files for bootstrapping development environments with sample data:
fixtures/sponsors-admin.json- Sponsor application data for the admin userfixtures/events.json- Sample events, calendars, and categoriesChanges from review feedback
main--natural-foreign/--natural-primarykey format per @ewdurbin's review["app_label", "model"]instead of numeric IDs["username"]instead of numeric PKs