[COMPASS-848] Fetch indexes through data-service Created: 06/Mar/17  Updated: 30/Jun/22  Resolved: 30/Jun/22

Status: Closed
Project: Compass
Component/s: Indexes, Plugins, Tech debt
Affects Version/s: None
Fix Version/s: No version

Type: Task Priority: Minor - P4
Reporter: Thomas Rueckstiess Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Story Points: 5

 Description   

Currently, index fetching is done in mongodb-index-model. We want to consolidate all data requests in data-service, and reducing the *-models to simply be data containers, without any dependency on mongodb.

This ticket represents the task of moving the fetching code to data-service, and populating the index-model there.

It is orthogonal to, and does not include the refactoring work of "de-ampersanding" the index model (COMPASS-356). Data-service would then depend on index-model, pass the raw server response to the model and return a collection of indexes to the caller of getIndexes().

Tasks:

  • move the functionality of fetch.js to data-service
  • populate the index model (as is, with ampersand) with the data returned from the server
  • move fetch.test.js to data-service
  • keep index.test.js in index-model
  • completely remove dependency on mongodb from index-model


 Comments   
Comment by Lucas Hrabovsky (Inactive) [ 28/Jul/17 ]

Dug this up while grooming so we can either do this or kill it.

Generated at Wed Feb 07 22:26:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.