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

Improve yaml modifications

    XMLWordPrintable

Details

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

    Description

      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 ?

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

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