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

Improve yaml modifications

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.0.1
    • Labels:
    • Sprint:
      Basel 41
    • Story Points:
      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 ?

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  Checklists

                  Bug DoR
                  DoD

                    Time Tracking

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