Project

General

Profile

User story #12414

Make reporting work when targeting several time the same item with several generic method

Added by Nicolas CHARLES 8 months ago. Updated 6 months ago.

Status:
Released
Priority:
N/A
Category:
Generic methods
Target version:
Suggestion strength:
User visibility:
Effort required:
Tags:

Description

For the moment, if we manage twice key->value in the same file, at best we have leakage of reporting from the first GM to the second, at worse the second never reports

For this, I leverage class_prefix, by effectively using it, not having unused definition everywhere
It needs knowledge of the defined classed in the inner method though


Subtasks

User story #12441: Avoid duplicating the class clariable in class_prefixReleasedBenoƮt PECCATTE
Bug #12442: Broken reporting for generic method file_ensure_key_value_optionReleasedNicolas CHARLES
Bug #12451: In some methods reporting is broken because class_prefix is not correctly updated when using another method ReleasedNicolas CHARLES

Related issues

Related to ncf - User story #12426: Use the new class_prefix for service methodsNew
Related to ncf - Architecture #12427: Use the new class_prefix for package methodsReleased
Has duplicate ncf - Bug #12423: Missing report for Service enabled at boot on RHEL7 for httpdRejected
Has duplicate Rudder - Bug #11129: Using of two "File ensure key value in parameter list" methods in the same technique causes the second one to report failed if the first one fails.Rejected
Has duplicate Rudder - Bug #10838: File content (Key/value pair) reports for all entries, even if only one changesRejected

Associated revisions

Revision d41ed781 (diff)
Added by Nicolas CHARLES 8 months ago

Fixes #12414: Make reporting work when targeting several time the same item with several generic method

History

#1 Updated by Nicolas CHARLES 8 months ago

  • Status changed from New to In progress

#2 Updated by Nicolas CHARLES 8 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Nicolas CHARLES to Alexis MOUSSET
  • Pull Request set to https://github.com/Normation/ncf/pull/734

#3 Updated by Alexis MOUSSET 8 months ago

  • Has duplicate Bug #12423: Missing report for Service enabled at boot on RHEL7 for httpd added

#4 Updated by Nicolas CHARLES 8 months ago

  • Status changed from Pending technical review to Pending release

#5 Updated by Alexis MOUSSET 8 months ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 4.3.0 which was released today.

#6 Updated by Alexis MOUSSET 6 months ago

#7 Updated by Alexis MOUSSET 6 months ago

#8 Updated by Nicolas CHARLES 5 months ago

  • Has duplicate Bug #11129: Using of two "File ensure key value in parameter list" methods in the same technique causes the second one to report failed if the first one fails. added

#9 Updated by Nicolas CHARLES 5 months ago

  • Has duplicate Bug #10838: File content (Key/value pair) reports for all entries, even if only one changes added

Also available in: Atom PDF