Task #3088
closedAdd/update Workers Filters
0%
Description
This task should be marked "groomed" when both questions are answered.
1) What are the filtering use cases for this viewset?
2) What filters (field and FilterSet) should this viewset include?
3) Will the default viewset include both online and offline workers?
https://django-filter.readthedocs.io/en/latest/ref/filters.html#filters
Related issues
Updated by amacdona@redhat.com about 7 years ago
- Copied from Task #3087: Add/update Users Filters added
Updated by bmbouter about 7 years ago
- Description updated (diff)
I think this viewset should show all workers both online and offline. The status API only includes online workers because its intent is to help the user reason about the current state of their Pulp installation.
Here are the possible use cases I can think of:
As a user, I can filter by the value of the 'online' (boolean)
As a user, I can filter with lt, gt, eq on the 'heartbeat' timestamp
As a user, I can filter by 'name' with explicit matching so that I can monitor a single worker by name.
As a user, I can filter by 'name' with substring matching so that I can monitor a group of workers on a single machine, or data center
Updated by daviddavis about 7 years ago
- Status changed from NEW to CLOSED - DUPLICATE
Updated by daviddavis about 7 years ago
- Is duplicate of Story #3143: As an authenticated user, I can filter workers. added