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 #15590: Renaming/moving technique category fails in several way #2434

Conversation

fanf
Copy link
Member

@fanf fanf commented Aug 29, 2019

@fanf
Copy link
Member Author

fanf commented Aug 29, 2019

PR updated with a new commit

Copy link
Member

@VinceMacBuche VinceMacBuche left a comment

Choose a reason for hiding this comment

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

just small changes on a log

for {
cat <- getParentTechniqueCategory_forTechnique(id)
path <- sequence(cat.id.getIdPathFromRoot) { currentCatId =>
getTechniqueCategory(currentCatId) ?~! "'%s' category was not found but should be a parent of '%s'".format(currentCatId, cat.id)
getTechniqueCategory(currentCatId) ?~! "'%s' category was not found but should be a parent of '%s'".format(
Copy link
Member

Choose a reason for hiding this comment

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

You could have switch to a string interpolation ! and more importantly you should use currentCatId.,name and cat.id.name

@fanf
Copy link
Member Author

fanf commented Aug 30, 2019

PR updated with a new commit

@Normation-Quality-Assistant
Copy link
Contributor

This PR is not mergeable to upper versions.
Since it is "Ready for merge" you must merge it by yourself using the following command:
rudder-dev merge https://github.com/Normation/rudder/pull/2434
-- Your faithful QA
Kant merge: "It is beyond a doubt that all our knowledge begins with experience."
(https://ci.normation.com/jenkins/job/merge-accepted-pr/14239/console)

@fanf
Copy link
Member Author

fanf commented Aug 30, 2019

OK, squash merging this PR

@fanf fanf force-pushed the bug_15590/trying_to_create_or_move_technique_category_into_root_directory_fails branch from ca6ee4c to d633db4 Compare August 30, 2019 14:05
@fanf fanf merged commit d633db4 into Normation:branches/rudder/5.0 Aug 30, 2019
@fanf fanf deleted the bug_15590/trying_to_create_or_move_technique_category_into_root_directory_fails branch March 15, 2024 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants