Skip to content

feat: add large sample database and setup script#1160

Merged
JohnVillalovos merged 1 commit intodevelopfrom
jlvillal/large_sample_data
Mar 17, 2026
Merged

feat: add large sample database and setup script#1160
JohnVillalovos merged 1 commit intodevelopfrom
jlvillal/large_sample_data

Conversation

@JohnVillalovos
Copy link
Collaborator

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.

Copilot AI review requested due to automatic review settings March 17, 2026 02:37
@JohnVillalovos JohnVillalovos force-pushed the jlvillal/large_sample_data branch from 213a8d1 to 23af9e4 Compare March 17, 2026 02:38
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.sql to seed a larger demo dataset (meant to be loaded after sample-data-utf8.sql).
  • Add database_schema/setup-database.sh to automate schema creation, upgrades, and optional sample data loading.
  • Update docs and CI: document the new dataset/script; add shellcheck and shfmt steps 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.

@JohnVillalovos JohnVillalovos force-pushed the jlvillal/large_sample_data branch 3 times, most recently from 308960f to 0be3ad0 Compare March 17, 2026 02:54
@JohnVillalovos JohnVillalovos requested a review from Copilot March 17, 2026 02:56
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.sql to provide a larger, additive demo dataset on top of sample-data-utf8.sql.
  • Add database_schema/setup-database.sh to automate schema creation, upgrades, initial data, and optional sample data loading.
  • Extend CI workflow to lint shell scripts with shellcheck and shfmt, 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.
@JohnVillalovos JohnVillalovos force-pushed the jlvillal/large_sample_data branch from 0be3ad0 to e39c754 Compare March 17, 2026 03:06
@JohnVillalovos JohnVillalovos merged commit 9b202d2 into develop Mar 17, 2026
16 checks passed
@JohnVillalovos JohnVillalovos deleted the jlvillal/large_sample_data branch March 17, 2026 03:08
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