Skip to content

<WIP> Removing SAC and Dissemination. #4890

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

Closed
wants to merge 283 commits into from
Closed

Conversation

jrothacker
Copy link
Contributor

As promised, I pushed this branch.

This is a lot of work in progress. Most tests are still failing. We need to work together to fix:

  1. Unit Test Issues
  2. Linting issues
  3. End to End tests Issues.

Luckily fixing Unit Test issues, usually fixes linting issues at the same time.

We can sync in the next stand about who is working on what.

rnovak338 and others added 30 commits March 14, 2025 12:51
This is not needed in light of the `source-of-truth/events` PR. (https://github.com/GSA-TTS/FAC/pull/4784/files)
- Address feedback where we no longer need`_convert_additional_fields()` - it is a duplicate of a method in `utils.py`.
- Minor cleanup on `_populate_accesses()`. I no longer felt it needed to be an isolated function while addressing the above bullet point
- Supplied two new arguments, "--disseminated" and "--intake". The first will only fetch SAC data that is disseminated, while the second will only fetch SAC data that has not yet disseminated.
- Rather than iterate through 50k SACs at a time, this change introduces a while condition that will continuously migrate batches of 100 until all relevant SACs are migrated. This should mean we only need to run the command once at a time.
Bandit does not like potential SQL injection with string-based query construction, however this logic is only accessed internally.
- Added `migrated_to_audit` flag on `SingleAuditChecklist` for determining which SACs have not yet been migrated.
- Added some logic (for local testing ONLY) which cleans up audit data and references to mimic a clean slate.
- Updated `generate_audit_indexes` to catch an issue where `auditee_fiscal_period_end` is an empty string for some records.
- `migrate_audits` command now uses ORM instead of raw queries for performance improvements.
- Improved logging of `migrate_audits` for better monitoring of progress.
- Inserted `null=True` into `migrated_to_audit` booleanfield for SACs.
- Setting `migrated_to_audit=True` for SACs that get created during intake process. This is because an Audit already gets created with the SAC during this step.
- `0019_audit_auditee_name` and `0019_singleauditchecklist_migrated_to_audit` were migration files that overlapped because they were created from separate branches.
- This change moves `migrated_to_audit` sequentially after `audit_auditee_name`. This should be the extent of the changes needed to correct the issue, as the migration files do not conflict with one another.
Currently this is only generating SubmissionEvents. We want the History table to replicate these.
This is not needed in light of the `source-of-truth/events` PR. (https://github.com/GSA-TTS/FAC/pull/4784/files)
* Add Audit Management Endpoints

* Add unlock after certification to monitoring

* Adjust row/column count for management endpoints

* Mispelling is a crime punished with loading times

* UNCLEAR COMMAS

* Resolve copy paste error in a monitoring query.

* Monitor even even more endpoints

Add submission elibility (steps 1-3) and information form endpoints
* Initial Legacy Provider Update

Sets the new provider into the terraform providers.tf and runs a dual provider setup,
forcing any resource that does not natively interact with the new provider using:

provider = cloudfoundry-community

* ClamAV version 2.0.0

- Removes app_name_or_id for network policies
- Reintroduces external network policy for clamav -> proxy
- Deployed successfully around 9a with v2.0.0 clamav module and was able to successfully
validate a file at around 916a without any issues

* Clamav Module Update

* Preliminary setup for v2.1.0 upgrade

* Upgrade resources

* Add upgrade docs

* Add app -> clamav network policy

* Update gitignore

* Update gitignore

* Update prepare-proxy.sh

* Meta Provider Update

* Update managed providers

* prevent globbing

* Move sandbox imports

* Live commands

* Documentation on all commands

* Meta Module Upgrade

* Dev and Preview Module Upgrade

* Add routes.tf

* Staging Module Upgrade

* Production Module Upgrade

* Update prod instances

* Update bootstrap provider version

* Update sandbox provider version

* Upgrade sandbox shared modules provider
Copy link
Contributor

Code Coverage

Package Line Rate Branch Rate Health
. 100% 100%
api 98% 86%
api.serializers 97% 88%
api.views 98% 100%
audit 96% 85%
audit.cross_validation 97% 86%
audit.fixtures 86% 58%
audit.intakelib 92% 83%
audit.intakelib.checks 92% 85%
audit.intakelib.common 98% 82%
audit.intakelib.transforms 100% 95%
audit.management.commands 76% 17%
audit.migrations 100% 100%
audit.models 96% 78%
audit.templatetags 100% 100%
audit.views 74% 50%
census_historical_migration 96% 69%
census_historical_migration.migrations 100% 100%
census_historical_migration.sac_general_lib 92% 84%
census_historical_migration.transforms 95% 90%
census_historical_migration.workbooklib 68% 69%
config 79% 38%
curation 100% 100%
curation.curationlib 93% 100%
curation.migrations 100% 100%
dissemination 93% 68%
dissemination.migrations 97% 25%
dissemination.models 100% 100%
dissemination.report_generation 98% 92%
dissemination.report_generation.excel 86% 74%
dissemination.searchlib 89% 73%
dissemination.templatetags 100% 100%
dissemination.views 95% 75%
djangooidc 53% 38%
djangooidc.tests 100% 94%
report_submission 100% 95%
report_submission.migrations 100% 100%
report_submission.templatetags 74% 100%
report_submission.views 85% 89%
support 92% 67%
support.migrations 100% 100%
support.models 100% 100%
tools 98% 50%
users 95% 86%
users.fixtures 100% 83%
users.management 100% 100%
users.management.commands 100% 100%
users.migrations 100% 100%
Summary 92% (17573 / 19152) 77% (2129 / 2766)

Minimum allowed line rate is 85%

Copy link
Contributor

This pull request is not up to date with main. Please merge main into this brach or rebase this branch onto main. This PR should not be approved until all status checks pass. If you see this message, please rerun all status checks before merging.

@jadudm
Copy link
Contributor

jadudm commented Jul 16, 2025

Closed after harmonization efforts between internal representations and performance work on external representations completed.

@jadudm jadudm closed this Jul 16, 2025
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.

8 participants