Skip to content
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

Fixes #13615: Bad explanation for generic variable overide priority cause people making the opposite of what is needed #2042

Conversation

fanf
Copy link
Member

@fanf fanf commented Oct 8, 2018

<p>Unique Directives can be applied only once (ie. Time Settings), so only the highest priority will be appllied.</p>
<p>Priority has two uses depending if the technique from which that directive is derived is <b>Unique</b> or not.</p>
<p>Unique directives can be applied only once (for example Time Settings), so only the highest priority will be applied.</p>
<p>For <b>non-unique</b> directives, priority is used to choose the order of the directive linearisation when applicable. The
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think linearisation is clear for users. Maybe application?

@fanf
Copy link
Member Author

fanf commented Oct 8, 2018

PR rebased

@fanf fanf force-pushed the bug_13615/bad_explanation_for_generic_variable_overide_priority_cause_people_making_the_opposite_of_what_is_needed branch from 993b6aa to 789c032 Compare October 8, 2018 14:05
<p>Priority has two uses depending if the technique from which that directive is derived is <b>Unique</b> or not.</p>
<p>Unique directives can be applied only once (for example Time Settings), so only the highest priority will be applied.</p>
<p>For <b>non-unique</b> directives, priority is used to choose the order of the directive application when applicable. The
highest priority directive comes first. Note that overriding variables definitions are the ones coming last.</p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that overriding variables definitions are the ones coming last.

.. so the used value will be the one with the lowest priority

…ause people making the opposite of what is needed
@fanf
Copy link
Member Author

fanf commented Oct 8, 2018

PR rebased

@fanf fanf force-pushed the bug_13615/bad_explanation_for_generic_variable_overide_priority_cause_people_making_the_opposite_of_what_is_needed branch from 789c032 to 4940c73 Compare October 8, 2018 14:37
@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 4940c73 into Normation:branches/rudder/4.1 Oct 8, 2018
@fanf fanf deleted the bug_13615/bad_explanation_for_generic_variable_overide_priority_cause_people_making_the_opposite_of_what_is_needed branch March 15, 2024 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants