Skip to content

Add fixture to populate database with framework v2.0#713

Merged
AdrianDAlessandro merged 2 commits into
direct-framework:cw26-hack-dayfrom
elichad:add-fixtures
Apr 30, 2026
Merged

Add fixture to populate database with framework v2.0#713
AdrianDAlessandro merged 2 commits into
direct-framework:cw26-hack-dayfrom
elichad:add-fixtures

Conversation

@elichad
Copy link
Copy Markdown

@elichad elichad commented Apr 30, 2026

Description

Utilises Django fixtures to make it easy to populate a fresh development database with v2.0 of the framework.

Documentation included!

Fixes #707.

Type of change

  • Documentation (non-breaking change that adds or improves the documentation)
  • New feature (non-breaking change which adds functionality)
  • Optimization (non-breaking, back-end change that speeds up the code)
  • Technical work (non-breaking, change which is work as part of a new feature)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (whatever its nature)

Key checklist

  • All tests pass (eg. python -m pytest)
  • The documentation builds and looks OK (eg. mkdocs serve)
  • Pre-commit hooks run successfully (eg. pre-commit run --all-files)

Further checks

  • Code is commented, particularly in hard-to-understand areas
  • Tests added or an issue has been opened to tackle that in the future. (Indicate issue here: # (issue))

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

happy to move this documentation if there's a better place for it

Comment thread .pre-commit-config.yaml
- id: codespell
args: [-I, .codespell_ignore.txt]
exclude: ^main/static/assets/|^package-lock.json$
exclude: ^main/static/assets/|^package-lock.json$|^direct_webapp/fixtures/framework-2-0.json$
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

necessary for now as there are typos in the framework direct-framework/digital-research-competencies-framework#249

Copy link
Copy Markdown
Collaborator

@AdrianDAlessandro AdrianDAlessandro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a great addition!

@AdrianDAlessandro AdrianDAlessandro merged commit c1c174d into direct-framework:cw26-hack-day Apr 30, 2026
5 checks passed
@AdrianDAlessandro AdrianDAlessandro mentioned this pull request Apr 30, 2026
11 tasks
@elichad
Copy link
Copy Markdown
Author

elichad commented Apr 30, 2026

@mzhc13 tested in her dev environment and confirmed that it works 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants