Repository navigation
Update downloads tracking snapshot - #14
Conversation
PR Summary by QodoCorrect phpMyAdmin download snapshot and charts
AI Description
Diagram
High-Level Assessment
Files changed (6)
|
Code Review by Qodo
1. Bearsampp totals use another project
|
| "repo": "module-phpmyadmin", | ||
| "visibility": "public", | ||
| "generatedAt": "2026-10-06T00:45:27.711Z", | ||
| "generatedAt": "2026-10-06T06:07:26.909Z", | ||
| "stats": { | ||
| "total": 5924, | ||
| "total": 942, |
There was a problem hiding this comment.
1. Bearsampp totals use another project 🐞 Bug ≡ Correctness
The generated snapshot changes the repository from Bearsampp to module-phpmyadmin while retaining the Bearsampp owner. The workflow runs in the Bearsampp repository without a target-repository override, so merging these files makes the published totals and charts represent phpMyAdmin rather than Bearsampp.
Agent Prompt
### Issue description
The generated snapshot identifies `Bearsampp/module-phpmyadmin` even though this workflow publishes download data for the current Bearsampp repository, causing the totals and charts to report another project's releases.
### Fix Focus Areas
- gh-dl/downloads.json[3-8]
- .github/workflows/gh-dl-daily-with-chart.yml[35-53]
- gh-dl/charts/total-trend--black.svg[2-24]
### Recommended Fix
Correct the download action's repository selection or generation inputs so the artifacts consistently target `Bearsampp/Bearsampp`, then regenerate and verify `owner`, `repo`, totals, chart labels, and chart values before merging.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
| "generatedAt": "2026-10-06T06:07:26.909Z", | ||
| "stats": { | ||
| "total": 5924, | ||
| "total": 942, |
There was a problem hiding this comment.
2. Offline dashboard shows yesterday's totals 🐞 Bug ☼ Reliability
The dashboard's embedded FALLBACK snapshot still identifies Bearsampp/Bearsampp and reports 5,924 downloads instead of the new snapshot's 942. When fetching downloads.json fails, including file previews and offline use, render(FALLBACK) remains active and displays those obsolete values beside the newly generated charts.
Agent Prompt
### Issue description
The dashboard embeds the previous snapshot as its offline fallback, so it displays stale repository identity and download totals whenever the live JSON fetch is unavailable.
### Fix Focus Areas
- gh-dl/dashboard.html[157-172]
- gh-dl/dashboard.html[262-268]
- gh-dl/downloads.json[4-8]
### Recommended Fix
Update the embedded snapshot whenever `downloads.json` changes, preferably by generating the dashboard fallback from the same snapshot during the workflow; ensure the fallback's owner, repo, generatedAt, totals, and series match the published JSON.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
Automated update of the release download snapshot and charts.
Total: 942
Day: 0
Week: 0
Month: 0