Closed jsjiang closed 1 month ago
I've corrected the internal server errors which do not happen all the time but are caused by a user not being logged in. The fix is to use the decorator to require a logged in user for this action. I believe this was caused by opening a few windows or tabs. Opening the reports page and then logging out in another window and then trying to retrieve a report while logged out.
I ran the python manage.py proc-stats
on dev and let it run overnight and the stats seem consistent to me, though this entire page is a bit confusing since the UI isn't consistent and has a few problems.
Download the report in CSV format
give all stats for users/groups/realms that the user is allowed to see and isn't limited in the same way as the interface. Also note that it says anonymous/test ids are excluded for this (and it probably makes sense not to track test identifiers).
Test identifiers (and therefore anonymously-owned identifiers) are not included. Reserved identifiers are included, however.
Examples when I look on the page and what I see in Excel.
Page totals by month
vs csv (filtered in Excel to the same group)
Totals in the page
vs totals (sums) in Excel:
So I'm not seeing anything inconsistent with the stats when I test on dev after updating them. Examples of where stats are inconsistent would be helpful since I'm not seeing the problem to troubleshoot. Also we may need to ensure that the proc-stats is running nightly on all environments.
I can probably fairly easily modify the UI code so it doesn't reset the filter in the upper part of the page when picking new dates for reporting in the lower part of the page.
IDK if we want to modify everything here. Seems like download CSV includes all stats based on user permission. Summary stats at the top include all for the filter selected at the top, but not the date range selected at the bottom.
It is a confusing UI since it almost seems to be about 3 pages that work a bit differently munged into one page and it's not clear what filters apply to which sections. the sections are: 1) download all my stats as CSV; 2) filter and get totals for a group/realm with totals for all time; and 3) Filter to specific dates (and optionally with group/realm) to see a preview report for just that date range.
Added with v3.2.24.
After login an EZID user can download statistic report using "Download report in CSV format" functionality in the Dashboard page. There are few issues that need fixes: