QuerySpec: choose the returned fields #6
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
Gilles/bigb-django!6
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/5-queryspec-fields"
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 #5
Needed by Argus's metric charts (argus/backend#46, argus/frontend#30): a line chart needs two columns, a QuerySpec without
group_byreturned every registered field.Changes
QuerySpec.fields(optional): columns returned, in that order, when there's nogroup_by; each one checked against the model'sfieldswhitelist; refused withgroup_by/aggregates. Absent: unchanged behaviour (all registered fields).test_spec.py/test_engine.py.Checks
pytest (58 passed), pylint 10/10, autopep8, bandit.
A release (minor) is needed afterwards for argus/backend to depend on it.
🤖 Generated with Claude Code
https://claude.ai/code/session_014BSmBtGWeFBD9z4mYm9SjA
📊 Rapports Argus pour cette PR