Expose report metrics to bigb #47
No reviewers
Labels
No labels
breaking
bug
ci
dependencies
documentation
feature
security
skip-changelog
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
argus/backend!47
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/46-report-metrics-bigb"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #46
Stacked on #43 (base
feat/41-overview, so its migration isreports 0011after #42's0010).Changes
ReportMetric(migrationreports 0011): one row per numeric "format maison" metric that has akey— report, project, key, value, date (report reception), label, unit, and the stream fields (type, custom name, ref, variant). Index(project, key, at).apps/reports/metrics.py: rows rewritten byprocess_report(reprocessing replaces them), deleted with the report (cascade); a de-duplicated source report adds nothing. Numbers or numeric strings only (no bool / list / NaN).reports.ReportMetricregistered, same "readable projects" scope as Project/Report,valueaggregatable;execute_queryadded to the bigb viewers group (the charts are ad hoc queries, still scoped).apps/reports/test_metrics.py(incl. an end-to-end scoped bigb query, skipped where bigb isn't installed, like the other bigb tests).Depends on
The charts use the QuerySpec
fieldsof Gilles/bigb-django#6: once it's released, bumpbigb-djangohere (Renovate will offer it).Checks
pytest (261 passed with bigb installed locally), pylint 10/10, autopep8, bandit clean.
🤖 Generated with Claude Code
https://claude.ai/code/session_014BSmBtGWeFBD9z4mYm9SjA
📊 Rapports Argus pour cette PR