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

Make StorageClass, DataUnit dimension, and DatasetType instance creation more ergonomic

    Details

    • Story Points:
      2
    • Team:
      Data Release Production

      Description

      We should add centralized code that maps the strings identifying these things to instances, and use it in all high-level APIs that accept them.  Right now we are inconsistent about whether APIs expect e.g. a full DatasetType instance or just its name, and in many places we should support either.

       

        Attachments

          Issue Links

            Activity

            Hide
            jbosch Jim Bosch added a comment -

            I'm taking care of the DataUnit (now Dimension) and DatasetType aspects of this on DM-15034, and I think Andy Salnikov did something in this area recently for StorageClass.

            But I'd like to keep the ticket to at least check that we think the public APIs for StorageClass are ergonomic enough, and consider whether we want to adopt something like the DM-15034 approach to that problem as well (i.e. a name-only class that quacks as much like the true object as possible).

            Show
            jbosch Jim Bosch added a comment - I'm taking care of the DataUnit (now Dimension) and DatasetType aspects of this on DM-15034 , and I think Andy Salnikov did something in this area recently for StorageClass. But I'd like to keep the ticket to at least check that we think the public APIs for StorageClass are ergonomic enough, and consider whether we want to adopt something like the DM-15034 approach to that problem as well (i.e. a name-only class that quacks as much like the true object as possible).
            Hide
            jbosch Jim Bosch added a comment -

            The remaining potential issue mentioned in the last comment hasn't materialized; I'm just closing this.

            Show
            jbosch Jim Bosch added a comment - The remaining potential issue mentioned in the last comment hasn't materialized; I'm just closing this.

              People

              • Assignee:
                Unassigned
                Reporter:
                jbosch Jim Bosch
                Watchers:
                Jim Bosch, Tim Jenness
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel