-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use a separate PG DB for Census data #2573
Conversation
Terraform plan for dev Plan: 2 to add, 0 to change, 0 to destroy.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# module.dev.module.database-c2g.cloudfoundry_service_instance.rds will be created
+ resource "cloudfoundry_service_instance" "rds" {
+ id = (known after apply)
+ name = "fac-c2g-db"
+ replace_on_params_change = false
+ replace_on_service_plan_change = false
+ service_plan = "5ed9f319-4c75-4851-9885-598a96b7febc"
+ space = "06525ba3-19c2-451b-96e9-ea4a9134e8b9"
}
# module.dev.module.s3-c2g.cloudfoundry_service_instance.bucket will be created
+ resource "cloudfoundry_service_instance" "bucket" {
+ id = (known after apply)
+ name = "fac-c2g-s3"
+ replace_on_params_change = false
+ replace_on_service_plan_change = false
+ service_plan = "021bb2a3-7e11-4fc2-b06b-d9f5938cd806"
+ space = "06525ba3-19c2-451b-96e9-ea4a9134e8b9"
}
Plan: 2 to add, 0 to change, 0 to destroy.
Warning: Argument is deprecated
with module.dev.module.database-c2g.cloudfoundry_service_instance.rds,
on /tmp/terraform-data-dir/modules/dev.database-c2g/database/main.tf line 14, in resource "cloudfoundry_service_instance" "rds":
14: recursive_delete = var.recursive_delete
Since CF API v3, recursive delete is always done on the cloudcontroller side.
This will be removed in future releases
(and 4 more similar warnings elsewhere) ✅ Plan applied in Deploy to Development and Management Environment #376 |
Terraform plan for meta No changes. Your infrastructure matches the configuration.
✅ Plan applied in Deploy to Development and Management Environment #376 |
Minimum allowed coverage is Generated by 🐒 cobertura-action against d4a0421 |
ded8864
to
99491fa
Compare
@@ -382,16 +389,10 @@ | |||
# Will not be enabled in cloud environments | |||
DISABLE_AUTH = False | |||
|
|||
# Remove once all Census data has been migrated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are being removed before all Census data has been migrated. Is this correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are left over from the old data distro work. We should be able to delete them now without trouble, but could also wait until we do the full data_distro cleanup.
@danswick This PR was cloned and deployed earlier, but the new RDS functionality was not working. The current version of this PR fixes this bug. |
Perhaps in a future PR if we decide to use long names for cloud.gov and terraform
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed while pairing. Looks good 👍
* Add bucket and DB * Lint * Formatting * Duplicate changes to compose-web * Fix naming errors * Try separate database * WIp * Get config test to pass * Make same changes in docker-compose-web --------- Co-authored-by: Alex Steel <[email protected]>
* Table scrolling, hide modal button, big reformats * Move resultcount out of horizontal scroll, padding * Search results ALNs - my/all ALN columns * A big bundle of linting * Undo djlint autoformat. * Tests for ALN search. Basic & finding_my/all_aln * Break ALN tests into their own class, and into more pieces. * Linting! Yippee! * Bools in ALN test cases - explicit for readability * Comment consistency * End date autofill fix * Search instructions link. * Use a separate PG DB for Census data (#2573) * Add bucket and DB * Lint * Formatting * Duplicate changes to compose-web * Fix naming errors * Try separate database * WIp * Get config test to pass * Make same changes in docker-compose-web --------- Co-authored-by: Alex Steel <[email protected]> * Add functions and tests for deleting `Access` entries and creating corresponding `DeletedAccess` entries (#2849) * Add functions and tests for deleting Access entries and creating corresponding DeletedAccess entries. * Add migration file. * Actually use ACCESS_ROLES in Access. * Type hinting corrections. * Actually check in access_roles.py. * Make tests more readable. * Make tests more readable. * Account for role when using remove_email_from_submission_access. * Add test as per PR comment. * Break up audit views (#2862) * First pass at moving views. * Move imports around to fit new setup. * 2861 update logic to use elecaudits model (#2863) * #2861 Update model mappings tfor federal awards worbook creation * #Refactor code to make it more re-usable * #2861 Code improvement * #2861 More util functions and tests * #2861 Generate workbooks to ensure the updated code is still working as expected * Linting * #2861 Regenerated workbooks to only include dbkeys that are available in census table * #2861 Regenerated workbooks to only include dbkeys that are available in census tables * #2861 Improved logic in light of data discoveries * Added to commit by mistake * #2861 Moved shared logic to a common area * Update backend/census_historical_migration/test_excel_creation.py Co-authored-by: Dan Swick <[email protected]> * Linting * Fix for failing test --------- Co-authored-by: Dan Swick <[email protected]> * Command to run census migration by year (#2868) * Slicing last 2 year digits for dynamic_import * Adding new command * Renaming command to run_migration_for_year * Renaming load_data to load_historic_data_for_year * Renaming loader to historic_data_loader * Lint * Docstrings * Teaking user creation * Utilizing results dict * Lint * Fixing historic_data_migrator --------- Co-authored-by: Phil Dominguez <“[email protected]”> * Sk/hist migration failure models (#2845) * Added FAILED_SACS and CHANGE_RECORDS models * Routing CHANGE_RECORDS to fac db * Initial commit * Migration for FAILED_SACS, CHANGE_RECORDS tables * Registering ELECAUDITHEADER, FAILED_SACS, CHANGE_RECORDS models * Test cases for ELECAUDITHEADER, FAILED_SACS, CHANGE_RECORDS models * Formatted with black * Modified FailedSacs and ChangeRecords table per JMM's request * Modified FailedSacs and ChangeRecords table per JMM's request * Modified FailedSacs and ChangeRecords table per JMM's request * Modified FailedSacs and ChangeRecords table per JMM's request * Modified FailedSacs and ChangeRecords table per JMM's request * Modified FailedSacs and ChangeRecords table per JMM's request * Updating migrations * Updating migrations * Updating migrations * Updated migrations * Modifications based on meeting * Modifications based on meeting * Modifications based on meeting * Modifications based on meeting * Modifications based on meeting * Modifications based on meeting * Modifications based on meeting * Modifications based on meeting * Modifications based on ADR * Modifications based on ADR * Modifications based on ADR * Modifications based on ADR * Implemented changes per ADR review * Implemented changes per ADR review * Implemented changes per ADR review * Implemented changes per ADR review * Implemented changes per ADR review * Implemented changes per ADR review * Implemented changes per ADR review * Implemented changes per ADR review * Implemented changes per ADR review * Implemented changes per ADR review * Implemented changes per ADR review * Fixed lint issue * Redid migrations * Replaced sac with record_id * Replaced sac with record_id * Registering all models * Update backend/dissemination/models.py Co-authored-by: Hassan D. M. Sambo <[email protected]> * Redid migrations * Renamed record_id as report_id * Renamed record_id as report_id * Added databases to route to census-to-gsafac db --------- Co-authored-by: Hassan D. M. Sambo <[email protected]> * 2880 update logic in secondary auditors generator to use census models (#2881) * #2861 Update model mappings tfor federal awards worbook creation * #Refactor code to make it more re-usable * #2861 Code improvement * #2861 More util functions and tests * #2861 Generate workbooks to ensure the updated code is still working as expected * Linting * #2861 Regenerated workbooks to only include dbkeys that are available in census table * #2861 Regenerated workbooks to only include dbkeys that are available in census tables * #2861 Improved logic in light of data discoveries * Added to commit by mistake * #2861 Moved shared logic to a common area * #2880 Updated logic to use census models * #2880 Regenerated workbooks to ensure logic works as intended * Updated migrator command to use or create default user * Updated wrong mapping * More update to improve the api test * search: filter by auditee state (#2888) * 2864 update logic in findings generator to use census models (#2866) * #2861 Update model mappings tfor federal awards worbook creation * #Refactor code to make it more re-usable * #2861 Code improvement * #2861 More util functions and tests * #2861 Generate workbooks to ensure the updated code is still working as expected * Linting * #2861 Regenerated workbooks to only include dbkeys that are available in census table * #2861 Regenerated workbooks to only include dbkeys that are available in census tables * #2861 Improved logic in light of data discoveries * Added to commit by mistake * #2864 Moved shared logic to common area * #2864 Moved shared logic to common area * #2864 Updated logic to use census models and tables * #2864 Regenerated workbooks since this is crutial to ensure the code is still behaving as intended * #2861 Moved shared logic to a common area * Sk/2874 retain null values, 2886 test cases for census models (#2887) * Replace NaN with empty string * Added test cases for census models * Change auditee/auditor certifying official (#2891) * Add GET side of page for changing Auditor Certifying Official. * Add POST side of page for changing Auditor Certifying Official. * Remove stray import. * Add page for changing Auditee Certifying Official. * Use variable for role in template instead of hard-coding. * Typo correction. * 2870 update logic in corrective action plan generator to use census models (#2872) * #2861 Update model mappings tfor federal awards worbook creation * #Refactor code to make it more re-usable * #2861 Code improvement * #2861 More util functions and tests * #2861 Generate workbooks to ensure the updated code is still working as expected * Linting * #2861 Regenerated workbooks to only include dbkeys that are available in census table * #2861 Regenerated workbooks to only include dbkeys that are available in census tables * #2861 Improved logic in light of data discoveries * Added to commit by mistake * #2861 Moved shared logic to a common area * #2870 Updated logic to use census models * #2870 Updated workbooks to ensure the code still behaves as intended * Bug fixed in api_check routine * Fixed bogus row count * 2867 update logic in findings text generator to use census models (#2869) * #2861 Update model mappings tfor federal awards worbook creation * #Refactor code to make it more re-usable * #2861 Code improvement * #2861 More util functions and tests * #2861 Generate workbooks to ensure the updated code is still working as expected * Linting * #2861 Regenerated workbooks to only include dbkeys that are available in census table * #2861 Regenerated workbooks to only include dbkeys that are available in census tables * #2861 Improved logic in light of data discoveries * Added to commit by mistake * #2864 Moved shared logic to common area * #2864 Moved shared logic to common area * #2864 Updated logic to use census models and tables * #2864 Regenerated workbooks since this is crutial to ensure the code is still behaving as intended * #2861 Moved shared logic to a common area * #2867 Updated logic to use census models and tables * #2867 Regenerated workbooks to ensure the code is still behaving as intended * 2873 update logic in additional ein generator to use census models (#2875) * #2861 Update model mappings tfor federal awards worbook creation * #Refactor code to make it more re-usable * #2861 Code improvement * #2861 More util functions and tests * #2861 Generate workbooks to ensure the updated code is still working as expected * Linting * #2861 Regenerated workbooks to only include dbkeys that are available in census table * #2861 Regenerated workbooks to only include dbkeys that are available in census tables * #2861 Improved logic in light of data discoveries * Added to commit by mistake * #2864 Moved shared logic to common area * #2864 Moved shared logic to common area * #2864 Updated logic to use census models and tables * #2864 Regenerated workbooks since this is crutial to ensure the code is still behaving as intended * #2861 Moved shared logic to a common area * #2867 Updated logic to use census models and tables * #2867 Regenerated workbooks to ensure the code is still behaving as intended * #2873 Updated logic to use Census models * #2873 Generated workbooks to ensure the logic works as intended * Updated test workbooks * More bug fix in the test table generation logic * 2883 update logic in notes to sefa workbook generator to use census models (#2899) * #2883 Updated logic to use Census models * #2883 Updated workbooks * Update backend/census_historical_migration/workbooklib/notes_to_sefa.py Co-authored-by: Phil Dominguez <[email protected]> * Update backend/census_historical_migration/test_core_xforms.py Co-authored-by: Phil Dominguez <[email protected]> --------- Co-authored-by: Phil Dominguez <[email protected]> * Django admin improvements. (#2907) * 2895: New cmd for paginated census migration (#2905) * Creating paginated command * Updating readme * Lint * Using django paginator * Using page_size instead of batchSize * Readme tweak * Readme tweak * Update backend/census_historical_migration/README.md --------- Co-authored-by: Phil Dominguez <“[email protected]”> Co-authored-by: Hassan D. M. Sambo <[email protected]> * 2901 update logic in general information to use census models (#2906) * #2901 Updated logic to use Census models * Code improvement * Update backend/census_historical_migration/sac_general_lib/general_information.py Co-authored-by: Phil Dominguez <[email protected]> * Update backend/census_historical_migration/sac_general_lib/audit_information.py * Linting --------- Co-authored-by: Phil Dominguez <[email protected]> * Initial manage submission page (#2904) * WIP check-in for manage submission page. * Tests, some minor refactoring. * Django lint tweak. * Remove unnecessary util function. * Search results ALNs - my/all ALN columns * A big bundle of linting * Undo djlint autoformat. * Tests for ALN search. Basic & finding_my/all_aln * Add instructions for production ssh to deploying.md. (#2937) * Break ALN tests into their own class, and into more pieces. * Linting! Yippee! * Bools in ALN test cases - explicit for readability * Stray code block line deletion (#2939) * Add instructions for production ssh to deploying.md. * Remove stray code block start line. * Comment consistency * End date autofill fix * Search instructions link. --------- Co-authored-by: JeanMarie Mariadassou <[email protected]> Co-authored-by: Alex Steel <[email protected]> Co-authored-by: Tadhg O'Higgins <[email protected]> Co-authored-by: Hassan D. M. Sambo <[email protected]> Co-authored-by: Dan Swick <[email protected]> Co-authored-by: Phil Dominguez <[email protected]> Co-authored-by: Phil Dominguez <“[email protected]”> Co-authored-by: Sudha Kumar <[email protected]> Co-authored-by: Tim Ballard <[email protected]>
* Table scrolling, hide modal button, big reformats * Move resultcount out of horizontal scroll, padding * Search results ALNs - my/all ALN columns * A big bundle of linting * Undo djlint autoformat. * Tests for ALN search. Basic & finding_my/all_aln * Break ALN tests into their own class, and into more pieces. * Linting! Yippee! * Bools in ALN test cases - explicit for readability * Comment consistency * End date autofill fix * Search instructions link. * Use a separate PG DB for Census data (#2573) * Add bucket and DB * Lint * Formatting * Duplicate changes to compose-web * Fix naming errors * Try separate database * WIp * Get config test to pass * Make same changes in docker-compose-web --------- Co-authored-by: Alex Steel <[email protected]> * Add functions and tests for deleting `Access` entries and creating corresponding `DeletedAccess` entries (#2849) * Add functions and tests for deleting Access entries and creating corresponding DeletedAccess entries. * Add migration file. * Actually use ACCESS_ROLES in Access. * Type hinting corrections. * Actually check in access_roles.py. * Make tests more readable. * Make tests more readable. * Account for role when using remove_email_from_submission_access. * Add test as per PR comment. * Break up audit views (#2862) * First pass at moving views. * Move imports around to fit new setup. * 2861 update logic to use elecaudits model (#2863) * #2861 Update model mappings tfor federal awards worbook creation * #Refactor code to make it more re-usable * #2861 Code improvement * #2861 More util functions and tests * #2861 Generate workbooks to ensure the updated code is still working as expected * Linting * #2861 Regenerated workbooks to only include dbkeys that are available in census table * #2861 Regenerated workbooks to only include dbkeys that are available in census tables * #2861 Improved logic in light of data discoveries * Added to commit by mistake * #2861 Moved shared logic to a common area * Update backend/census_historical_migration/test_excel_creation.py Co-authored-by: Dan Swick <[email protected]> * Linting * Fix for failing test --------- Co-authored-by: Dan Swick <[email protected]> * Command to run census migration by year (#2868) * Slicing last 2 year digits for dynamic_import * Adding new command * Renaming command to run_migration_for_year * Renaming load_data to load_historic_data_for_year * Renaming loader to historic_data_loader * Lint * Docstrings * Teaking user creation * Utilizing results dict * Lint * Fixing historic_data_migrator --------- Co-authored-by: Phil Dominguez <“[email protected]”> * Sk/hist migration failure models (#2845) * Added FAILED_SACS and CHANGE_RECORDS models * Routing CHANGE_RECORDS to fac db * Initial commit * Migration for FAILED_SACS, CHANGE_RECORDS tables * Registering ELECAUDITHEADER, FAILED_SACS, CHANGE_RECORDS models * Test cases for ELECAUDITHEADER, FAILED_SACS, CHANGE_RECORDS models * Formatted with black * Modified FailedSacs and ChangeRecords table per JMM's request * Modified FailedSacs and ChangeRecords table per JMM's request * Modified FailedSacs and ChangeRecords table per JMM's request * Modified FailedSacs and ChangeRecords table per JMM's request * Modified FailedSacs and ChangeRecords table per JMM's request * Modified FailedSacs and ChangeRecords table per JMM's request * Updating migrations * Updating migrations * Updating migrations * Updated migrations * Modifications based on meeting * Modifications based on meeting * Modifications based on meeting * Modifications based on meeting * Modifications based on meeting * Modifications based on meeting * Modifications based on meeting * Modifications based on meeting * Modifications based on ADR * Modifications based on ADR * Modifications based on ADR * Modifications based on ADR * Implemented changes per ADR review * Implemented changes per ADR review * Implemented changes per ADR review * Implemented changes per ADR review * Implemented changes per ADR review * Implemented changes per ADR review * Implemented changes per ADR review * Implemented changes per ADR review * Implemented changes per ADR review * Implemented changes per ADR review * Implemented changes per ADR review * Fixed lint issue * Redid migrations * Replaced sac with record_id * Replaced sac with record_id * Registering all models * Update backend/dissemination/models.py Co-authored-by: Hassan D. M. Sambo <[email protected]> * Redid migrations * Renamed record_id as report_id * Renamed record_id as report_id * Added databases to route to census-to-gsafac db --------- Co-authored-by: Hassan D. M. Sambo <[email protected]> * 2880 update logic in secondary auditors generator to use census models (#2881) * #2861 Update model mappings tfor federal awards worbook creation * #Refactor code to make it more re-usable * #2861 Code improvement * #2861 More util functions and tests * #2861 Generate workbooks to ensure the updated code is still working as expected * Linting * #2861 Regenerated workbooks to only include dbkeys that are available in census table * #2861 Regenerated workbooks to only include dbkeys that are available in census tables * #2861 Improved logic in light of data discoveries * Added to commit by mistake * #2861 Moved shared logic to a common area * #2880 Updated logic to use census models * #2880 Regenerated workbooks to ensure logic works as intended * Updated migrator command to use or create default user * Updated wrong mapping * More update to improve the api test * search: filter by auditee state (#2888) * 2864 update logic in findings generator to use census models (#2866) * #2861 Update model mappings tfor federal awards worbook creation * #Refactor code to make it more re-usable * #2861 Code improvement * #2861 More util functions and tests * #2861 Generate workbooks to ensure the updated code is still working as expected * Linting * #2861 Regenerated workbooks to only include dbkeys that are available in census table * #2861 Regenerated workbooks to only include dbkeys that are available in census tables * #2861 Improved logic in light of data discoveries * Added to commit by mistake * #2864 Moved shared logic to common area * #2864 Moved shared logic to common area * #2864 Updated logic to use census models and tables * #2864 Regenerated workbooks since this is crutial to ensure the code is still behaving as intended * #2861 Moved shared logic to a common area * Sk/2874 retain null values, 2886 test cases for census models (#2887) * Replace NaN with empty string * Added test cases for census models * Change auditee/auditor certifying official (#2891) * Add GET side of page for changing Auditor Certifying Official. * Add POST side of page for changing Auditor Certifying Official. * Remove stray import. * Add page for changing Auditee Certifying Official. * Use variable for role in template instead of hard-coding. * Typo correction. * 2870 update logic in corrective action plan generator to use census models (#2872) * #2861 Update model mappings tfor federal awards worbook creation * #Refactor code to make it more re-usable * #2861 Code improvement * #2861 More util functions and tests * #2861 Generate workbooks to ensure the updated code is still working as expected * Linting * #2861 Regenerated workbooks to only include dbkeys that are available in census table * #2861 Regenerated workbooks to only include dbkeys that are available in census tables * #2861 Improved logic in light of data discoveries * Added to commit by mistake * #2861 Moved shared logic to a common area * #2870 Updated logic to use census models * #2870 Updated workbooks to ensure the code still behaves as intended * Bug fixed in api_check routine * Fixed bogus row count * 2867 update logic in findings text generator to use census models (#2869) * #2861 Update model mappings tfor federal awards worbook creation * #Refactor code to make it more re-usable * #2861 Code improvement * #2861 More util functions and tests * #2861 Generate workbooks to ensure the updated code is still working as expected * Linting * #2861 Regenerated workbooks to only include dbkeys that are available in census table * #2861 Regenerated workbooks to only include dbkeys that are available in census tables * #2861 Improved logic in light of data discoveries * Added to commit by mistake * #2864 Moved shared logic to common area * #2864 Moved shared logic to common area * #2864 Updated logic to use census models and tables * #2864 Regenerated workbooks since this is crutial to ensure the code is still behaving as intended * #2861 Moved shared logic to a common area * #2867 Updated logic to use census models and tables * #2867 Regenerated workbooks to ensure the code is still behaving as intended * 2873 update logic in additional ein generator to use census models (#2875) * #2861 Update model mappings tfor federal awards worbook creation * #Refactor code to make it more re-usable * #2861 Code improvement * #2861 More util functions and tests * #2861 Generate workbooks to ensure the updated code is still working as expected * Linting * #2861 Regenerated workbooks to only include dbkeys that are available in census table * #2861 Regenerated workbooks to only include dbkeys that are available in census tables * #2861 Improved logic in light of data discoveries * Added to commit by mistake * #2864 Moved shared logic to common area * #2864 Moved shared logic to common area * #2864 Updated logic to use census models and tables * #2864 Regenerated workbooks since this is crutial to ensure the code is still behaving as intended * #2861 Moved shared logic to a common area * #2867 Updated logic to use census models and tables * #2867 Regenerated workbooks to ensure the code is still behaving as intended * #2873 Updated logic to use Census models * #2873 Generated workbooks to ensure the logic works as intended * Updated test workbooks * More bug fix in the test table generation logic * 2883 update logic in notes to sefa workbook generator to use census models (#2899) * #2883 Updated logic to use Census models * #2883 Updated workbooks * Update backend/census_historical_migration/workbooklib/notes_to_sefa.py Co-authored-by: Phil Dominguez <[email protected]> * Update backend/census_historical_migration/test_core_xforms.py Co-authored-by: Phil Dominguez <[email protected]> --------- Co-authored-by: Phil Dominguez <[email protected]> * Django admin improvements. (#2907) * 2895: New cmd for paginated census migration (#2905) * Creating paginated command * Updating readme * Lint * Using django paginator * Using page_size instead of batchSize * Readme tweak * Readme tweak * Update backend/census_historical_migration/README.md --------- Co-authored-by: Phil Dominguez <“[email protected]”> Co-authored-by: Hassan D. M. Sambo <[email protected]> * 2901 update logic in general information to use census models (#2906) * #2901 Updated logic to use Census models * Code improvement * Update backend/census_historical_migration/sac_general_lib/general_information.py Co-authored-by: Phil Dominguez <[email protected]> * Update backend/census_historical_migration/sac_general_lib/audit_information.py * Linting --------- Co-authored-by: Phil Dominguez <[email protected]> * Initial manage submission page (#2904) * WIP check-in for manage submission page. * Tests, some minor refactoring. * Django lint tweak. * Remove unnecessary util function. * Search results ALNs - my/all ALN columns * A big bundle of linting * Undo djlint autoformat. * Tests for ALN search. Basic & finding_my/all_aln * Add instructions for production ssh to deploying.md. (#2937) * Break ALN tests into their own class, and into more pieces. * Linting! Yippee! * Bools in ALN test cases - explicit for readability * Stray code block line deletion (#2939) * Add instructions for production ssh to deploying.md. * Remove stray code block start line. * Comment consistency * End date autofill fix * Search instructions link. --------- Co-authored-by: JeanMarie Mariadassou <[email protected]> Co-authored-by: Alex Steel <[email protected]> Co-authored-by: Tadhg O'Higgins <[email protected]> Co-authored-by: Hassan D. M. Sambo <[email protected]> Co-authored-by: Dan Swick <[email protected]> Co-authored-by: Phil Dominguez <[email protected]> Co-authored-by: Phil Dominguez <“[email protected]”> Co-authored-by: Sudha Kumar <[email protected]> Co-authored-by: Tim Ballard <[email protected]>
PR Summary
manage.py migrate
for the new datavase in the many places where we runmigrate
PR checklist: submitters
main
into your branch shortly before creating the PR. (You should also be mergingmain
into your branch regularly during development.)git status | grep migrations
. If there are any results, you probably need to add them to the branch for the PR. Your PR should have only one new migration file for each of the component apps, except in rare circumstances; you may need to delete some and re-runpython manage.py makemigrations
to reduce the number to one. (Also, unless in exceptional circumstances, your PR should not delete any migration files.)PR checklist: reviewers
make docker-clean; make docker-first-run && docker compose up
; then rundocker compose exec web /bin/bash -c "python manage.py test"
The larger the PR, the stricter we should be about these points.