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 #5830: Use technique updates to enable/disable active techniques #666

Conversation

fanf
Copy link
Member

@fanf fanf commented Nov 26, 2014

No description provided.

@fanf fanf force-pushed the ust_5670/impl_5830/auto_enable_new_techniques branch from d4f7554 to 913af55 Compare November 26, 2014 16:09
<version>{version.toString}</version>
</modifiedTechnique>
def buildDetails(techniqueMods: Map[TechniqueName, TechniquesLibraryUpdateType]) : NodeSeq = EventLog.withContent {
<reloadTechniqueLibrary fileFormat={Constants.XML_CURRENT_FILE_FORMAT.toString}>{
Copy link
Member

Choose a reason for hiding this comment

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

hum, if the format changes, we should increase the XML_CURRENT_FILE_FORMAT, and add a migration script. Shan't we ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done, see update and Normation/rudder-packages#535

@fanf fanf force-pushed the ust_5670/impl_5830/auto_enable_new_techniques branch from 913af55 to 91eb70e Compare November 26, 2014 18:48


/**
* Migrate an event log from fileFormat 4 to 5
Copy link
Member

Choose a reason for hiding this comment

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

comment is not correct here

@fanf fanf force-pushed the ust_5670/impl_5830/auto_enable_new_techniques branch from 91eb70e to 28f3456 Compare November 26, 2014 18:53
* We don't use values from
* com.normation.rudder.domain.eventlog.*EventType
* so that if they change in the future, the migration
* from 2.3 to 2.5 is still OK.
Copy link
Member

Choose a reason for hiding this comment

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

comment is really old here

@fanf fanf force-pushed the ust_5670/impl_5830/auto_enable_new_techniques branch from 28f3456 to 8dab262 Compare November 26, 2014 18:57
@ncharles
Copy link
Member

ok, looks good to me
You can self merge as soon as the two comments on 2.5 are removed

@fanf fanf force-pushed the ust_5670/impl_5830/auto_enable_new_techniques branch from 8dab262 to 31f7828 Compare November 26, 2014 19:01
ncharles added a commit that referenced this pull request Nov 26, 2014
…techniques

Fixes #5830: Use technique updates to enable/disable active techniques
@ncharles ncharles merged commit 7691913 into Normation:branches/rudder/3.0 Nov 26, 2014
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