Add Docker Compose setup, data loading script, and update route tests - #19
Merged
Conversation
- Introduced a Docker Compose configuration for the application and database services. - Added a script to load a local database backup. - Implemented tests for update routes to ensure proper handling of invalid update IDs and status changes. - Refactored update retrieval logic in views to improve code clarity.
eveleighoj
reviewed
Jul 28, 2026
eveleighoj
approved these changes
Jul 28, 2026
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.
What type of PR is this? (check all applicable)
Description
Adds a Docker Compose development environment containing the Flask application, PostgreSQL database, frontend asset watcher, migrations, and automatic loading of the bundled database dump.
The README now documents the recommended Docker workflow, the native Python workflow, and how to restore the bundled PostgreSQL dump.
This also fixes malformed update IDs causing PostgreSQL UUID conversion errors. Update IDs are now explicitly validated before database queries, returning a 404 for invalid values across the preview, apply, and cancel routes.
Additional changes:
Related Tickets & Documents
QA Instructions, Screenshots, Recordings
Docker Compose
Start the complete local environment:
Confirm:
databaseservice becomes healthy.load-dataservice completes successfully.appandassetsservices remain running.Stop the environment with:
No screenshots are required because this PR does not introduce a visual UI change.
Added/updated tests?
Added acceptance coverage for:
Run with:
Test result:
[optional] Are there any post deployment tasks we need to perform?
None. The Docker Compose configuration is for local development and does not change the production deployment configuration.
[optional] Are there any dependencies on other PRs or Work?
None.