Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-5208

Refactor mongodb-database-model to allow for decoupling of instance/db/coll fetching logic

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.29.5
    • Affects Version/s: None
    • Component/s: Compass
    • None
    • 3
    • Iteration Novokuybyshevsk, Iteration Orlando
    • Not Needed

      • Provide collection and model fetch methods instead of relying on instance-model to poulate this data
      • Collection fetch should resolve only with result of { listDatabases: 1, nameOnly: 1 }

        (or from userInfo if there are not enough rights to list) not with the whole db/coll info

      • Model fetch gets the detailed dbStats info

      Note: we are not trying to drastically rewrite the code here, we just providing standard Ampersand methods for handling Model state fetching to unify the architecture approach with the currently used state mgmt framework, this also enables us to decouple the loading of this data from the instance-model eventually in the follow up tickets

      Miro board with changes context

            Assignee:
            sergey.petushkov@mongodb.com Sergey Petushkov
            Reporter:
            sergey.petushkov@mongodb.com Sergey Petushkov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: