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

Improve fundability and verifiability of persisted RepositoryCfg objects.

    Details

    • Type: Story
    • Status: To Do
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: daf_persistence
    • Labels:
    • Templates:
    • Story Points:
      5
    • Team:
      Data Access and Database

      Description

      There are cases where it makes sense to find parent RepositoryCfgs by relative path (e.g. if they are side by side and may get moved together to a new location), and cases where it makes sense to find them by absolute path (e.g. if the parent is a Level-1 type dataset that exists in a permanent location).

      K-T's idea is:

      • add a GUID to the persisted RepositoryCfg.
      • in a RepositoryCfg's parents list, store:
        • the relative path to the parent (where applicable)
        • the absolute path to the parent
        • the GUID of the parent.
      • when locating a parent repo, search first by relative path and then by absolute path.
      • First search the absolute path to the parent. If a RepositoryCfg is found, compare the found RepositoryCfg's GUID to the expected GUID. If the GUIDs don't match, assume the RepositoryCfg is not the desired parent repository cfg. Then try the relative path; if the parent RepositoryCfg can not be found, an exception must be raised.

        Attachments

          Activity

            People

            • Assignee:
              npease Nate Pease
              Reporter:
              npease Nate Pease
              Watchers:
              Kenny Lo, Nate Pease
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel