Skip to content

feat: add some per country/affiliation meeting registration statistics#10550

Merged
jennifer-richards merged 40 commits intoietf-tools:mainfrom
evyncke:feat-statistics
Apr 28, 2026
Merged

feat: add some per country/affiliation meeting registration statistics#10550
jennifer-richards merged 40 commits intoietf-tools:mainfrom
evyncke:feat-statistics

Conversation

@evyncke
Copy link
Copy Markdown
Collaborator

@evyncke evyncke commented Mar 14, 2026

Very simple (read trivial) attempt to present some registration statistics using pie-chart (from charts.js).

Missing is some percentage data (only participants count for now), expand country code to country name, be able to change the meeting number (beside fiddling with URL).

Alas, no data is kept on the ticket creation date, i.e., cannot have a timeline of registration for a specific meeting.

@evyncke
Copy link
Copy Markdown
Collaborator Author

evyncke commented Mar 14, 2026

Could also do stats per affiliation ;-)

@evyncke evyncke marked this pull request as draft March 19, 2026 05:36
@evyncke evyncke marked this pull request as ready for review March 24, 2026 16:03
@evyncke evyncke marked this pull request as draft March 24, 2026 16:57
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 25, 2026

Codecov Report

❌ Patch coverage is 95.37037% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.48%. Comparing base (15b2abd) to head (138e936).
⚠️ Report is 11 commits behind head on main.

Files with missing lines Patch % Lines
ietf/stats/views.py 95.37% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10550      +/-   ##
==========================================
+ Coverage   88.42%   88.48%   +0.05%     
==========================================
  Files         331      332       +1     
  Lines       44557    44808     +251     
==========================================
+ Hits        39399    39647     +248     
- Misses       5158     5161       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@evyncke evyncke marked this pull request as ready for review March 25, 2026 12:05
@evyncke
Copy link
Copy Markdown
Collaborator Author

evyncke commented Mar 25, 2026

Meeting statistics are done, so, this PR could be merged (I won't work on it unless tools-team requests so to fix issues).

Next codesprint will handle the documents statistics but this should not prevent already merging this PR.

@evyncke evyncke changed the title feat: add some per country meeting registration statistics feat: add some per country/affiliation meeting registration statistics Mar 26, 2026
Copy link
Copy Markdown
Member

@jennifer-richards jennifer-richards left a comment

Choose a reason for hiding this comment

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

Looks really nice. Before merging, we need to move code from the inline <script> tag into a module. This commit illustrates what's involved, but I'm happy to handle that if you'd prefer.

We may want/need to add some caching to the views as well.

@evyncke
Copy link
Copy Markdown
Collaborator Author

evyncke commented Apr 8, 2026 via email

@jennifer-richards
Copy link
Copy Markdown
Member

If you do not mind, then please go forward with the move to a specific JS script.

Ok, will do.

And the caching would be useful as it takes 2-3 seconds on my laptop to generate the data (and the data does not really change hourly). Could generate a big JSON every day ?

I'll see about adding at least basic caching before we bring this live.

Thanks!

@evyncke
Copy link
Copy Markdown
Collaborator Author

evyncke commented Apr 22, 2026

If you do not mind, then please go forward with the move to a specific JS script.

Ok, will do.

And the caching would be useful as it takes 2-3 seconds on my laptop to generate the data (and the data does not really change hourly). Could generate a big JSON every day ?

I'll see about adding at least basic caching before we bring this live.

Thanks!

@jennifer-richards any news ? I understand that it is low priority for you and if you cannot do it, then I will give the 'moving JS out of template' part a try.

Unsure about the caching, any pointer/reference/example on how to do it ?

Thanks again

@jennifer-richards
Copy link
Copy Markdown
Member

@evyncke

My apologies. I expect that the next datatracker release will be next week and do plan to get this wrapped up for that. If you want to work on it a bit I don't object, but it's just been slow, not forgotten.

@jennifer-richards
Copy link
Copy Markdown
Member

I've put the refactoring + caching on a PR here: evyncke#1 - if you merge that in your fork, it should appear in this PR

@jennifer-richards jennifer-richards merged commit e3e080f into ietf-tools:main Apr 28, 2026
9 checks passed
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.

2 participants