User story #7960
closedAPI: add an option to filter directives based on their technique, status, etc
Description
The list directives API method currently doesn't take any parameters: http://www.rudder-project.org/rudder-api-doc/#api-Directives-listDirectives
It would be useful to be able to filter this list on a few criteria:
- status (enabled/disabled)
- underlying technique name
- underlying technique version
See #7959 for a use case.
Updated by Jonathan CLARKE over 8 years ago
- Blocks User story #7959: "rudder technique migrate" command to automatically upgrade all directives to a newer technique version added
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 3.1.7 to 2.11.19
Updated by Vincent MEMBRÉ over 8 years ago
- Status changed from New to In progress
Updated by Vincent MEMBRÉ over 8 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Vincent MEMBRÉ to François ARMAND
- Pull Request set to https://github.com/Normation/rudder/pull/1050
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 2.11.19 to 2.11.20
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 2.11.20 to 2.11.21
Updated by Jonathan CLARKE over 8 years ago
- Target version changed from 2.11.21 to 4.0.0~rc2
We recently discussed this, and agreed that we should not change any existing APIs in existing Rudder API versions. Therefore, if and when we introduce these parameters, it will only be in Rudder 3.3 (or 4.0, as it will most likely be called).
However, to provide the same functionality, at least in so far as making it possible to get a list of directives for a given technique, we could add a new API call /api/techniques/<id>/directives.
Updated by Vincent MEMBRÉ over 8 years ago
- Blocks deleted (User story #7959: "rudder technique migrate" command to automatically upgrade all directives to a newer technique version)
Updated by François ARMAND over 8 years ago
- Status changed from Pending technical review to Discussion
- Pull Request deleted (
https://github.com/Normation/rudder/pull/1050)
Updated by Jonathan CLARKE over 8 years ago
- Status changed from Discussion to New
Updated by François ARMAND about 8 years ago
- Target version changed from 4.0.0~rc2 to 4.1.0~beta1
Updated by Vincent MEMBRÉ almost 8 years ago
- Target version changed from 4.1.0~beta1 to 4.1.0~beta2
Updated by Vincent MEMBRÉ almost 8 years ago
- Target version changed from 4.1.0~beta2 to 4.1.0~beta3
Updated by Vincent MEMBRÉ almost 8 years ago
- Target version changed from 4.1.0~beta3 to 4.1.0~rc1
Updated by François ARMAND almost 8 years ago
- Target version changed from 4.1.0~rc1 to 4.2.0~beta1
Updated by Alexis Mousset over 7 years ago
- Target version changed from 4.2.0~beta1 to 4.2.0~beta2
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 4.2.0~beta2 to 4.2.0~beta3
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 4.2.0~beta3 to 4.2.0~rc1
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 4.2.0~rc1 to 4.2.0~rc2
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 4.2.0~rc2 to 4.2.0
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 4.2.0 to 4.2.1
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 4.2.1 to 4.2.2
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 4.2.2 to 4.2.3
Updated by Vincent MEMBRÉ almost 7 years ago
- Target version changed from 4.2.3 to 4.2.4
Updated by François ARMAND almost 7 years ago
- Status changed from New to Rejected
- Assignee deleted (
François ARMAND) - Target version changed from 4.2.4 to 4.1.10
Since 4.1, we are able to list directives derived from a technique: http://www.rudder-project.org/rudder-api-doc/#api-Techniques-listDirectives
The status can be easely post-process (with jq or the like).
I'm closing that one, please open a new user story if non covered use cases appear.