Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-7178

Policy object yaml dump needs pretty formatting

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Policy objects have been able to dump to yaml for a while now but the formatting of the yaml file is really bad. It needs to be usable, readable. Refer to pre-existing paf files for reference.

        Attachments

          Activity

          No builds found.
          npease Nate Pease [X] (Inactive) created issue -
          npease Nate Pease [X] (Inactive) made changes -
          Field Original Value New Value
          Epic Link DM-2404 [ 16718 ]
          npease Nate Pease [X] (Inactive) made changes -
          Sprint DB_F16_8 [ 233 ]
          npease Nate Pease [X] (Inactive) made changes -
          Rank Ranked lower
          npease Nate Pease [X] (Inactive) made changes -
          Status To Do [ 10001 ] In Progress [ 3 ]
          npease Nate Pease [X] (Inactive) made changes -
          Epic Link DM-2404 [ 16718 ] DM-7158 [ 26228 ]
          Hide
          npease Nate Pease [X] (Inactive) added a comment -

          the changes to the dumper are in daf_persistence. An example of the new yaml output formatting (looks very much like the the current paf format) is in obs_test

          Show
          npease Nate Pease [X] (Inactive) added a comment - the changes to the dumper are in daf_persistence. An example of the new yaml output formatting (looks very much like the the current paf format) is in obs_test
          npease Nate Pease [X] (Inactive) made changes -
          Reviewers Tim Jenness [ tjenness ]
          Status In Progress [ 3 ] In Review [ 10004 ]
          Hide
          tjenness Tim Jenness added a comment -

          The new formatting looks good. It's not entirely obvious to me why yaml.dump doesn't do it like this by default.

          Show
          tjenness Tim Jenness added a comment - The new formatting looks good. It's not entirely obvious to me why yaml.dump doesn't do it like this by default.
          tjenness Tim Jenness made changes -
          Status In Review [ 10004 ] Reviewed [ 10101 ]
          npease Nate Pease [X] (Inactive) made changes -
          Resolution Done [ 10000 ]
          Status Reviewed [ 10101 ] Done [ 10002 ]

            People

            Assignee:
            npease Nate Pease [X] (Inactive)
            Reporter:
            npease Nate Pease [X] (Inactive)
            Reviewers:
            Tim Jenness
            Watchers:
            Nate Pease [X] (Inactive), Tim Jenness
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Jenkins

                No builds found.