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

Refactor dataService.instance method to simplify the data fetching code flow

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

      Currently it's pretty hard to make changes to dataService.instance method due to the code using outdated async library for flow control. Even though at some point this was the best approach, we can simplify the code a lot by refactoring it to async/await. This will allow us to make changes to the method easier later down the road

      maurizio.casimirri did a POC refactor that can be a good starting point

      Note: in scope of this ticket we DO NOT want to change the method behavior, it should still resolve all the data as it was doing before, these changes will come later

      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: