-
Notifications
You must be signed in to change notification settings - Fork 86
Fixes #27486: Add includeSystem parameter to filter system groups in API #6574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
fanf
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think an update in documentation is missing (it's a public api right?)
|
PR updated with a new commit : public documentation update (also fixed directives tree documentation) |
| required: false | ||
| schema: | ||
| type: boolean | ||
| default: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
humpf, so bad the default is not the same than in directive. Can we do an other PR for Rudder 9.0 that change the default value to "false" as it is in directiveTree for the API version corresponding to Rudder 9.0 (and keep the other default for previous API versions) ? If we don't do it now, we will forget and live with an inconsistancy.
The external effect is that user using that API won't see anymore system groups (ok), and we will need to correct where we call it in rules and groups at least I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK that's right, I took note to do that : https://issues.rudder.io/issues/27498
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked it and changed in 9.0 with these PRs (it was only used in Rules, and system-updates) :
fanf
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm now
|
This PR is not mergeable to upper versions. |
|
OK, squash merging this PR |
cdc3c4e to
566222e
Compare
https://issues.rudder.io/issues/27486
Reusing the existing parameter extractor (used in the directives tree).
The filtering is also very similar, see
rudder/webapp/sources/rudder/rudder-rest/src/main/scala/com/normation/rudder/rest/lift/DirectiveApi.scala
Lines 280 to 288 in cd64fe5