-
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
Add management command and workflow for generating live test data from historical exports #2569
Merged
Conversation
This file contains 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
For running in production-like environments.
Terraform plan for dev No changes. Your infrastructure matches the configuration.
📝 Plan generated in Pull Request Checks #1423 |
Terraform plan for meta No changes. Your infrastructure matches the configuration.
📝 Plan generated in Pull Request Checks #1423 |
Minimum allowed coverage is Generated by 🐒 cobertura-action against 590832d |
danswick
commented
Oct 20, 2023
backend/dissemination/management/commands/end_to_end_test_data_generator.py
Outdated
Show resolved
Hide resolved
jadudm
approved these changes
Oct 20, 2023
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.
LGTM.
14 tasks
JeanMarie-PM
pushed a commit
that referenced
this pull request
Oct 31, 2023
* Add management command and workflow for generating live test data from historical exports (#2569) * First commit of E2E improvements For running in production-like environments. * add e2e generator workflow and profile changes * lint * double os * more linting somehow * don't do generation via profile * Linting. Runs defaults * invoke via workflow instead of profile * Apply suggestions from code review * lint --------- Co-authored-by: Matt Jadud <[email protected]> * add workflow call to e2e data generator (#2571) * This makes sure all of the named ranges exist (#2586) * This makes sure all of the named ranges exist Updates the ALN code slightly, and adds a new check that looks at the workbook templates, and makes sure that all of the named ranges in the template are in the file being submitted by the user * Removed unused code and implemented logic to retrieve named range names * Fix for string parsing issue --------- Co-authored-by: Hassan D. M. Sambo <[email protected]> * Add barebones feature allowing users to send submissions back to in progress from ready for certification (#2572) * Add barebones feature allowing users to send submissions back to in progress from ready for certification. * Coverage appeasement offering. * More coverage appeasement. * More coverage appeasement; this does fix an actual minor bug, though. * Reduce test coverage pass threshold. * Improve lock icon. * Improve lock icon. * Certification Unlock Copy & Styling Updates (#2595) * Ready for certification - remove bolded & reformat * Submissions homepage - icon on own line & format * Certification unlock - format, copy, links. * upload-cancel -> form-cancel * "Straight quotation marks boo" Co-authored-by: Tadhg O'Higgins <[email protected]> --------- Co-authored-by: Tadhg O'Higgins <[email protected]> * Search MVP (#2419) * Add basic search form * Add dummy results table * move search to dissem app, impl basic form (#2431) * Basic styles for search sidebar * Style up results column * [DRAFT] Search Summary (#2480) * Search Summary * Some title info, make tables take up the full width of the page * Linting - py whitespace & imports, html closed tag * Summary view tests (#2512) * Flesh out Search view (#2494) * fleshing out search view * rm leftover list comprehension * cog-over search fix, only search public * more tests * quick pass at displaying search results * Add explainer text * Remove filter chicklets (for now) * Add pagination component * Rm download all results button * Add alt text * Search - Pre-populate Form, Summary Link, Link Icons, Formatting (#2538) * URLS - Add a backslash to the search url * Search - Link to summary, icon size, formatting * Summary - remove "back" button, formatting. * Search - prepopulate form after making a search * Remove usused import * Don't run methods on empty data, kids * Search - Move UEI and ALN above the name field * Djlint reformatting * Search - Audit Year (#2547) * URLS - Add a backslash to the search url * Search - Link to summary, icon size, formatting * Summary - remove "back" button, formatting. * Search - prepopulate form after making a search * Remove usused import * Don't run methods on empty data, kids * Search - Move UEI and ALN above the name field * Djlint reformatting * Search - Add audit year * search_general params default to none * Tests - test_audit_year, search_general cleanups * Revert "Merge branch 'mh/implement-mvp-search-form-2369' into jp/search-audit-year" This reverts commit 7c99f95, reversing changes made to 30b2743. * Remove unused Y/N choices * PDF downloads via Search (#2520) * first pass at pdf downloads via search * re-add AWS_S3_ENDPOINT_URL * re-add download link * linter * fix cog_or_over field name mismatch * fix search tests * check if file exists in s3, else 404 * log warning if file not found in S3 --------- Co-authored-by: Matt Henry <[email protected]> Co-authored-by: Tim Ballard <[email protected]> Co-authored-by: Tim Ballard <[email protected]> Co-authored-by: James Person <[email protected]> Co-authored-by: James Person <[email protected]> * fix cg internal endpoint setting (#2613) * Add mgiration file that should have been in 2572. (#2615) * API app cleanup (#2596) * rm IndexView * rm SACViewSet * Bump Actions (#2624) * Bump to v0.13.0 * Bump setup-node to v4 * Media Backups! (#2610) * pseudo code for s3 tar implementation * add awscli to allow list * File Rename * All commands Just need to sort creds now * update command file * Update proxy allow list for s3tar * Script for backing up the media * chmod +x * Remove mediabackup * add media backups * Bind service with additional instances * Removing allowlist modifications * Using this workflow to test/debug * Update * Update * File Rename * Reformat Media Backups Workflow * remove media backups from prod (for now) * Remove mediabackups folder as well * Remove from apply This will be handled in its own workflow * Database and Media Backups Commented out prod for future iteration * rename file * full path of aws (#2636) * Removing old workbook_generator tool (#2635) Co-authored-by: Phil Dominguez <“[email protected]”> --------- Co-authored-by: Dan Swick <[email protected]> Co-authored-by: Matt Jadud <[email protected]> Co-authored-by: Hassan D. M. Sambo <[email protected]> Co-authored-by: Tadhg O'Higgins <[email protected]> Co-authored-by: James Person <[email protected]> Co-authored-by: Matt Henry <[email protected]> Co-authored-by: Matt Henry <[email protected]> Co-authored-by: Tim Ballard <[email protected]> Co-authored-by: Tim Ballard <[email protected]> Co-authored-by: James Person <[email protected]> Co-authored-by: Alex Steel <[email protected]> Co-authored-by: Phil Dominguez <“[email protected]”>
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.
Adds a management command and workflow that:
DBKEY
andYEAR
values.DBKEY
/YEAR
values.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.