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

[BUG] Daily data page times out for some receivers in production #16865

Open
1 task
victor-chaparro opened this issue Dec 20, 2024 · 1 comment
Open
1 task
Labels
onboarding-ops Work related to onboarding with a partner. Addressed by the Onboarding & Operations team in RS. platform Platform Team ready-for-refinement Ticket is a point where we can productively discuss it

Comments

@victor-chaparro
Copy link
Collaborator

User Story

As a ReportStream receiver,
I want to be able to see my reports through the daily data page,
so that I know what reports I should be receiving.

Description/Use Case

Some ReportStream receivers are unable to view their reports through the daily date page. Massachusetts has reported that they're unable to view their reports and have opened a support ticket. The API times out after 30 seconds and an error is presented to the receiver saying data could not be loaded.

Risks/Impacts/Considerations

  • Receivers are unable to view their reports

Dev Notes

Steps to reproduce:

  1. Login to ReportStream in production (This is not reproduce able in staging)
  2. Set ma-phd as your organization
  3. Navigate to daily data

Link to transaction failure

By looking at the transaction details it looks like the count query is run twice and takes up to 4 minutes to complete. The query to retrieve the results takes around 2 minutes to complete. The API times out after 30 seconds.

Slack Thread with Proposed changes
It looks like the piece that makes the query run long is the join with the action table. The only reason it joins with the action table is to find the batch step. It may be possible to get the batch step by looking if the next_action is the send step in the report_file table and avoid the join with the action table, but there are other considerations that need to be taken into account if doing that. All that can be found in the slack thread.

Another solution may be to just start logging the current_action in the report_file file table, but all previous entries would need to be updated.

Acceptance Criteria

  • Daily data does not time out for receivers
@victor-chaparro victor-chaparro added platform Platform Team ready-for-refinement Ticket is a point where we can productively discuss it labels Dec 20, 2024
@victor-chaparro victor-chaparro changed the title User Story Title [BUG] Daily data page times out for some receivers in production Dec 20, 2024
@arnejduranovic
Copy link
Collaborator

The recommended solution in the ticket may also fix this issue, please double check: #15644

@chris-kuryak chris-kuryak added the onboarding-ops Work related to onboarding with a partner. Addressed by the Onboarding & Operations team in RS. label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
onboarding-ops Work related to onboarding with a partner. Addressed by the Onboarding & Operations team in RS. platform Platform Team ready-for-refinement Ticket is a point where we can productively discuss it
Projects
None yet
Development

No branches or pull requests

3 participants