feat: add large sample database and setup script#1160
Conversation
213a8d1 to
23af9e4
Compare
There was a problem hiding this comment.
Pull request overview
Adds a larger, more realistic development dataset and a helper to bootstrap a fresh database, with CI enforcement for shell script lint/formatting and accompanying documentation updates.
Changes:
- Add
database_schema/sample-data-large-utf8.sqlto seed a larger demo dataset (meant to be loaded aftersample-data-utf8.sql). - Add
database_schema/setup-database.shto automate schema creation, upgrades, and optional sample data loading. - Update docs and CI: document the new dataset/script; add
shellcheckandshfmtsteps to GitHub Actions.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/source/INSTALLATION.rst | Documents the new large sample dataset and the setup helper script. |
| docs/source/FAQ.rst | Adds the large dataset to the recommended install order; mentions the helper script. |
| database_schema/setup-database.sh | New automation script to recreate DB, apply upgrades, and optionally load sample data. |
| database_schema/sample-data-large-utf8.sql | New SQL seed file for larger sample data volumes. |
| .github/workflows/lint-and-analyse-php.yml | Adds shell script linting/formatting (shellcheck + shfmt) to CI. |
You can also share your feedback on Copilot code review. Take the survey.
308960f to
0be3ad0
Compare
There was a problem hiding this comment.
Pull request overview
Adds tooling and documentation to simplify spinning up a fresh development database with a significantly larger sample dataset for more realistic testing and development workflows.
Changes:
- Add
database_schema/sample-data-large-utf8.sqlto provide a larger, additive demo dataset on top ofsample-data-utf8.sql. - Add
database_schema/setup-database.shto automate schema creation, upgrades, initial data, and optional sample data loading. - Extend CI workflow to lint shell scripts with
shellcheckandshfmt, and update docs (INSTALLATION/FAQ) to document the new dataset and helper script.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/source/INSTALLATION.rst | Documents the new large sample dataset and the setup helper script. |
| docs/source/FAQ.rst | Adds the new sample-data load step and points to the helper script as an alternative. |
| database_schema/setup-database.sh | New helper script to drop/recreate DB, apply schema+upgrades, and load optional sample data. |
| database_schema/sample-data-large-utf8.sql | New larger dataset (users/groups/resources/types/groups/permissions/etc.) intended for dev/test use. |
| .github/workflows/lint-and-analyse-php.yml | Installs and runs shellcheck + shfmt over repository shell scripts in CI. |
You can also share your feedback on Copilot code review. Take the survey.
Add sample-data-large-utf8.sql with 148 new resources, 18 users, 5 groups, 2 schedules, resource types, and resource groups for development and testing with more realistic data volumes. Add database_schema/setup-database.sh helper script that automates fresh database setup with optional sample data loading. Add shellcheck and shfmt linting for shell scripts in CI. Update INSTALLATION.rst and FAQ.rst to document the new sample data file and setup script.
0be3ad0 to
e39c754
Compare
Add sample-data-large-utf8.sql with 148 new resources, 18 users, 5 groups, 2 schedules, resource types, and resource groups for development and testing with more realistic data volumes.
Add database_schema/setup-database.sh helper script that automates fresh database setup with optional sample data loading.
Add shellcheck and shfmt linting for shell scripts in CI.
Update INSTALLATION.rst and FAQ.rst to document the new sample data file and setup script.