User story #20342
closed
Add a worst-case, weighted sum for block compliance mode
Added by François ARMAND almost 3 years ago.
Updated almost 3 years ago.
Category:
Web - Technique editor
Description
We need a worst case by weighted with the sum of sub components for compliance mode, not only one with weight == 1.
- Target version set to 7.0.0~rc2
- Status changed from New to In progress
- Status changed from In progress to Pending technical review
- Assignee changed from François ARMAND to Vincent MEMBRÉ
- Pull Request set to https://github.com/Normation/rudder/pull/4031
- Status changed from Pending technical review to Pending release
Migration notice: technique generated between 7.0.0-beta1 and 7.0.0-rc1 will need to have their component mode name updated:
focus -> focus
sum -> weighted
worst -> worst-case-weighted-sum
You can achieve that by executing sed in technique repo:
cd /var/rudder/configuration-repository/techniques
for i in $(find . -name "metadata.xml"); do
sed -i -e s'/reporting="sum"/reporting="weighted"/' $i
sed -i -e s'/reporting="worst"/reporting="worst-case-weighted-sum"/' $i
done
for i in $(find . -name "technique.json"); do
sed -i -e s'/"type":"focus"/"type":"weighted"/' $i
sed -i -e s'/"type":"worst"/"type:""worst-case-weighted-sum"/' $i
done
# check that the changes are OK, then:
git add -u
git commit -m "migration from 7.0.0-rc1 to rc2 block compliance format"
I corrected some typo in your previous message François: worst-case-weighter-sum -> worst-case-weighted-sum
- Status changed from Pending release to Released
This bug has been fixed in Rudder 7.0.0~rc2 which was released today.
Also available in: Atom
PDF