Uploaded image for project: 'Magnolia CLI'
  1. Magnolia CLI
  2. NPMCLI-4

Improve yaml modifications

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 0.0.1
    • None
    • Basel 41
    • 5

      scripts which are editing yaml configuration (e.g. add-availability) right now they take yaml code, transform it in to json, add/edit whats need and transform back to yaml. unfortunately during first transform from yaml to json, what doesn't looks like json is removed, so all comments '#...' or includes '!include' etc... ale lost during this edit.

      potential fixes:
      1. (idealy) do not use yaml > json > yaml conversion, but edit configuration directly in yaml format
      or
      2. improve yaml > json > yaml do not remove this things (propably !extends in future as well)
      or
      3. maybe use some wrapper around this special entries, before they are transformed to json, that transformation itself will not remove them, and then when transforming back to yaml, remove this wrapper as well
      or ?

        Acceptance criteria

              apchelintcev Aleksandr Pchelintcev
              tgregovsky Tomáš Gregovský
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0d
                    0d
                    Logged:
                    Time Spent - 3.75d
                    3.75d