Project

General

Profile

Actions

User story #7960

closed

API: add an option to filter directives based on their technique, status, etc

Added by Jonathan CLARKE over 8 years ago. Updated almost 7 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
API
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

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.

Actions #1

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
Actions #2

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 3.1.7 to 2.11.19
Actions #3

Updated by Vincent MEMBRÉ over 8 years ago

  • Status changed from New to In progress
Actions #4

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
Actions #5

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.19 to 2.11.20
Actions #6

Updated by Vincent MEMBRÉ over 8 years ago

  • Target version changed from 2.11.20 to 2.11.21
Actions #7

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.

Actions #8

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)
Actions #9

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)
Actions #10

Updated by Jonathan CLARKE over 8 years ago

  • Status changed from Discussion to New
Actions #11

Updated by François ARMAND about 8 years ago

  • Target version changed from 4.0.0~rc2 to 4.1.0~beta1
Actions #12

Updated by Vincent MEMBRÉ almost 8 years ago

  • Target version changed from 4.1.0~beta1 to 4.1.0~beta2
Actions #13

Updated by Vincent MEMBRÉ almost 8 years ago

  • Target version changed from 4.1.0~beta2 to 4.1.0~beta3
Actions #14

Updated by Vincent MEMBRÉ almost 8 years ago

  • Target version changed from 4.1.0~beta3 to 4.1.0~rc1
Actions #15

Updated by François ARMAND almost 8 years ago

  • Target version changed from 4.1.0~rc1 to 4.2.0~beta1
Actions #16

Updated by Alexis Mousset over 7 years ago

  • Target version changed from 4.2.0~beta1 to 4.2.0~beta2
Actions #17

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 4.2.0~beta2 to 4.2.0~beta3
Actions #18

Updated by Vincent MEMBRÉ over 7 years ago

  • Target version changed from 4.2.0~beta3 to 4.2.0~rc1
Actions #19

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 4.2.0~rc1 to 4.2.0~rc2
Actions #20

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 4.2.0~rc2 to 4.2.0
Actions #21

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 4.2.0 to 4.2.1
Actions #22

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 4.2.1 to 4.2.2
Actions #23

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 4.2.2 to 4.2.3
Actions #24

Updated by Vincent MEMBRÉ almost 7 years ago

  • Target version changed from 4.2.3 to 4.2.4
Actions #25

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.

Actions

Also available in: Atom PDF