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

catalog metrics data shows new result after action rerun #5000

Closed
FuhuXia opened this issue Dec 4, 2024 · 0 comments
Closed

catalog metrics data shows new result after action rerun #5000

FuhuXia opened this issue Dec 4, 2024 · 0 comments
Assignees
Labels
bug Software defect or bug

Comments

@FuhuXia
Copy link
Member

FuhuXia commented Dec 4, 2024

Data displayed on page https://data.gov/metrics/ is collected on the 1st day of each month. When a new report is generated on the 3rd day, the data in the CSV is different from what is displayed on the page. It needs to wait till the next day for the displayed data gets corrected after an 11ty page rebuild overnight.

How to reproduce

Run action https://github.com/GSA/data.gov/actions/workflows/build-metrics-report.yml on the 3rd day of a month.

Expected behavior

Data displayed on page https://data.gov/metrics/ is consistent with downloaded CSVs.

Actual behavior

Slightly different

Sketch

It could be that Google Analytics requires an extra day after the end of the month to fully process and collect data from the previous month. If the data stabilizes by the 2nd/3rd day, we can adjust the cron job to run the report on the 2nd/3rd day instead of the 1st. However, if the data continues to fluctuate daily, we can add a unique string to each CSV file to ensure that the data displayed on the page matches the data in the downloaded CSV.

@FuhuXia FuhuXia added the bug Software defect or bug label Dec 4, 2024
@FuhuXia FuhuXia changed the title catalog metrics data shows new result after rerun catalog metrics data shows new result after action rerun Dec 4, 2024
@Bagesary Bagesary moved this to 📟 Sprint Backlog [7] in data.gov team board Dec 5, 2024
@btylerburton btylerburton moved this from 📟 Sprint Backlog [7] to 🏗 In Progress [8] in data.gov team board Dec 5, 2024
@github-project-automation github-project-automation bot moved this from 🏗 In Progress [8] to ✔ Done in data.gov team board Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Software defect or bug
Projects
Status: ✔ Done
Development

No branches or pull requests

2 participants