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

Add AtlasRollingIndexService

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.44.5
    • Affects Version/s: None
    • Component/s: None
    • None
    • 3
    • Iteration Jupiter, Iteration Kuiper Belt, Iteration Light Year
    • Not Needed
    • Developer Tools

      Add a new service called AtlasRollingIndexService that uses atlasService under the hood to make API calls. We will create this in the plugin in activate and pass it to the store:

       

      • createRollingIndex(). This will create the index and check the response to that call following the usual MMS API pattern and then resolve. It will not wait for the rolling index build to finish - polling will be done separately whenever a user is on the indexes tab and rolling index creation is supported.
      • fetchRollingIndexes(). Call the MMS API to retrieve all indexes then filter out just the rolling builds. Hide the MMS API pattern underneath. Ie. wrap the multiple calls (request result, retrieve result) into one promise that resolves with the result.

            Assignee:
            sergey.petushkov@mongodb.com Sergey Petushkov
            Reporter:
            leroux.bodenstein@mongodb.com Le Roux Bodenstein
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: