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

Add AtlasRollingIndexService

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Developer Tools
    • 3
    • Iteration Jupiter, Iteration Kuiper Belt

      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: