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 #4289: save directives based on a modified technique on library reload #405

Conversation

fanf
Copy link
Member

@fanf fanf commented Dec 30, 2013

No description provided.

* When a technique is updated, we may need to save back
* the Directive implementing it because the metadata.xml
* file may have changed.
* For example, a new optionnal variable may have been added.
Copy link
Member

Choose a reason for hiding this comment

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

As Jonathan said on Redmine:
The comments in code say this happens when a Technique is changed without a version increment, for example when adding an optional variable. What happens if a mandatory variable is added to a Technique without incrementing it's version and this code gets run?

I think that could be a big problem (all Directive will be saved without being validated, leading to a faulty deployment right after ),
but at last, the error will be prompted in the deployment error, showing that this Directive needs to be updated, and the user will need to go and update the Directive by himself.

I think it's acceptable to be able to get erros here, this feature is more helpful when developping technique (you are creating a new technique version, and you don't wan't to create new technique version everytime you get an error, or bugfix it ...) so I think our user would be glad to have errors directly ...

@VinceMacBuche
Copy link
Member

look's Good to me ! merging!

VinceMacBuche added a commit that referenced this pull request Dec 31, 2013
…ted_when_metatechnique_changes

Fixes #4289: save directives based on a modified technique on library reload
@VinceMacBuche VinceMacBuche merged commit d468a45 into Normation:branches/rudder/2.9 Dec 31, 2013
@fanf fanf deleted the bug_4289/expecting_reports_not_updated_when_metatechnique_changes branch March 15, 2024 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants