Skip to content

Download dashboard: filters, Unknown-region split, TB readout, active-filters banner - #11870

Open
sh-andriy wants to merge 1 commit into
feature/pbs-26-15from
feature/pbs-26-15-dashboard-filters-units
Open

Download dashboard: filters, Unknown-region split, TB readout, active-filters banner#11870
sh-andriy wants to merge 1 commit into
feature/pbs-26-15from
feature/pbs-26-15-dashboard-filters-units

Conversation

@sh-andriy

@sh-andriy sh-andriy commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

Four download-telemetry dashboard improvements from the review call. Display/admin only — no model, migration, or capture-path changes, so it's safe to deploy.

1. Separate "Unknown" out of the region charts

A large region-less bucket was crowding real countries off the region charts. Unknown is now pulled out of the ranked list and reported on its own line under each region chart and the provider table; the bars scale to the largest known region so countries stay readable.

2. Filter by project and by user

New sidebar input filters: project (exact resource guid) and user (email or user guid). They drive the table and every chart, since the dashboard reads the same filtered changelist queryset. Uses a free-text input filter rather than a dropdown because both fields are high-cardinality.

3. TB readout next to GB

The headline tiles (Total GB, File vs zip GB) now show a (x.xx TB) reading in brackets once a figure is genuinely terabyte-scale. GB stays the primary unit; sub-terabyte numbers are unchanged.

4. Applied-filters banner

A chip row at the top of the charts summarising exactly what filters/search the numbers are scoped to.

Testing

  • 89 tests pass (test_download_events_dashboard, test_download_telemetry).
  • makemigrations --check clean (no schema changes).
  • manage.py check clean.
  • New tests cover: Unknown separation + scaling, TB threshold, both filters (by guid/email), and the active-filters summary. The annotated == plain guardrail still holds.

…e-filters banner

Four download-telemetry dashboard improvements requested on the review call:

- Separate the "Unknown" region out of the ranked region charts so a large
  region-less bucket no longer crowds real countries off the chart. Bars scale
  to the largest known region; Unknown is reported on its own line under each
  region chart and the provider table.
- Add project (by guid) and user (by email or guid) input filters to the sidebar.
  They drive the table and every chart, since the dashboard reads the same
  filtered changelist queryset.
- Show a TB reading in brackets next to GB on the headline tiles once a figure is
  terabyte-scale; GB stays the primary unit.
- Add an "applied filters" banner at the top of the charts summarising what the
  numbers are currently scoped to.

Display/admin only — no model, migration or capture-path changes.
@sh-andriy
sh-andriy force-pushed the feature/pbs-26-15-dashboard-filters-units branch from 317b9c2 to b585333 Compare August 19, 2026 14:46
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.

1 participant