Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-5447

CheckAndModifyPropertyValueTask should offer a way to not fail on missing nodes

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Won't Fix
    • Neutral
    • None
    • None
    • updatemechanism
    • None

    Description

      The CheckAndModifyPropertyValueTask is used to modify properties of nodes that might be already not present (due to user changes). In such situation, it causes an installation/update error - but many times such missing node is not a reason to abort the module installation/update.

      I suggest to add new constructor with a boolean strict parameter, that will indicate whether an error (if true) or just a warning shall be issued in case that the specified node is not found. The current constructors will call the new one with the strict parameter set to true, to keep the current contract.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                dlipp Daniel Lipp
                jchocholacek Jozef Chocholacek
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD