Skip to content

Update apps/agencies report to exclude internal apps (LG-11800)#9744

Merged
zachmargolis merged 7 commits intomainfrom
margolis-apps-report-external-only
Dec 13, 2023
Merged

Update apps/agencies report to exclude internal apps (LG-11800)#9744
zachmargolis merged 7 commits intomainfrom
margolis-apps-report-external-only

Conversation

@zachmargolis
Copy link
Contributor

🎫 Ticket

LG-11800

🛠 Summary of changes

We were reporting on 5 apps that are internal (OIDC example, etc), but we should be excluding those for reporting. Major kudos to @Sgtpluck for finding that all the apps we needed to exclude conveniently had iaa: 'LGINTERNAL' on them.

changelog: Internal, Reporting, Update monthly reporting on apps & agencies to exclude internal apps
@zachmargolis zachmargolis requested review from a team and Sgtpluck December 11, 2023 23:56
Copy link
Contributor

@Sgtpluck Sgtpluck left a comment

Choose a reason for hiding this comment

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

lil suggestion but LGTM

Copy link
Contributor

@ThatSpaceGuy ThatSpaceGuy left a comment

Choose a reason for hiding this comment

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

Looks great

@zachmargolis
Copy link
Contributor Author

zachmargolis commented Dec 12, 2023

@18F/identity-agnes I took a second look at my notes from the investigation on this and realized I neede to redo some more queries, so I pushed changes in f6b93cb, PTAL!

I ran this in prod and posted the results in Slack

@zachmargolis zachmargolis merged commit 4ac61b7 into main Dec 13, 2023
@zachmargolis zachmargolis deleted the margolis-apps-report-external-only branch December 13, 2023 22:07
@jmhooper jmhooper mentioned this pull request Dec 14, 2023
zachmargolis added a commit that referenced this pull request Dec 15, 2023
- In #9744, we added more correct queries that took much longer.
  Even though we added the correct transaction_with_timeout wrapper,
  and even though the queries can succeed, the report still failed
  in prod.
- Adding this rescue allows the report to complete and send partial
  results still

changelog: Internal, Reporting, Add error handling for long-running queries
zachmargolis added a commit that referenced this pull request Dec 15, 2023
* Handle query timeouts in Agencies and SPs report

- In #9744, we added more correct queries that took much longer.
  Even though we added the correct transaction_with_timeout wrapper,
  and even though the queries can succeed, the report still failed
  in prod.
- Adding this rescue allows the report to complete and send partial
  results still

* Remove extra begin...end syntax

changelog: Internal, Reporting, Add error handling for long-running queries
@ThatSpaceGuy ThatSpaceGuy requested a review from a team December 21, 2023 15:15
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.

3 participants