Skip to content
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

Production Release #743

Merged
merged 1 commit into from
Jan 24, 2025
Merged

Production Release #743

merged 1 commit into from
Jan 24, 2025

Conversation

felder101
Copy link
Contributor

Sprint 47 issues includes:

Dependabot Alert: Atro CSRF Middleware Bypass (security.checkOrigin) #720
Dependabot Alert: Astro's server source code is exposed to the public if source maps are enabled #725
Update to the latest version of USWDS 3.11.0 #722
BUG: Training Report - Selecting an Agency w/o Bureau No Results Returned #728
Update SMTP to reflect GSA IT naming convention standard #736

Sprint 47 issues includes:
Dependabot Alert: Atro CSRF Middleware Bypass (security.checkOrigin) #720
Dependabot Alert: Astro's server source code is exposed to the public if source maps are enabled #725
Update to the latest version of USWDS 3.11.0 #722
BUG: Training Report - Selecting an Agency w/o Bureau No Results Returned #728
Update SMTP to reflect GSA IT naming convention standard #736
@weiwang-gsa weiwang-gsa self-requested a review January 23, 2025 15:50
Copy link
Contributor

@weiwang-gsa weiwang-gsa left a comment

Choose a reason for hiding this comment

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

Based on PO's note, the broken link issue is noted, and will be ignored for this release.

@@ -141,7 +147,11 @@ def get_admin_smartpay_training_report(self, filter: SmartPayTrainingReportFilte
if filter.bureau_id is not None:
query = query.filter(models.User.agency_id == filter.bureau_id)
elif filter.agency_id is not None:
query = query.filter(models.User.agency_id == filter.agency_id)
# if agency is selected and not the bureau, return all records associated to agency/bureau
all_agencies = self._session.query(models.Agency).all()
Copy link
Contributor

@weiwang-gsa weiwang-gsa Jan 23, 2025

Choose a reason for hiding this comment

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

the code works, but probably direct query to get all the bureau ids that belong to selected agency id may have better performance for large data sets. Current code is pulling all agencies records to memory is not necessary. Although current agencies table is not large table, still suggest to make change when you have time.

@felder101 felder101 merged commit 6f089f3 into main Jan 24, 2025
5 of 6 checks passed
@felder101 felder101 deleted the GSA/Production-Release branch January 24, 2025 14:27
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