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

Add in progress badge to the indexes table

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.33.1
    • Affects Version/s: None
    • Component/s: Indexes
    • Labels:
      None
    • 5
    • Needed
    • Hide

      We allow users to close the create index dialog while creating the index is still in progress because it can take a while and we don't want to force users to stay on this form. Once the user pressed the “Cancel” button or closed the modal with X, keep an "In progress…" pillow while the process is not finished, and either remove it as soon as the index is successfully created or replace it with a "Failed" pillow in case of error.

      Since several indexes can be created one by one and have "In progress…" pillows, we won't be able to reopen the modal with an error. We add on hover tooltip for the "Failed" pillow so users have an access to the error message.

      Users can remove failed indexes from the indexes table. The in-progress indexes can not be removed manually.

      Show
      We allow users to close the create index dialog while creating the index is still in progress because it can take a while and we don't want to force users to stay on this form. Once the user pressed the “Cancel” button or closed the modal with X, keep an "In progress…" pillow while the process is not finished, and either remove it as soon as the index is successfully created or replace it with a "Failed" pillow in case of error. Since several indexes can be created one by one and have "In progress…" pillows, we won't be able to reopen the modal with an error. We add on hover tooltip for the "Failed" pillow so users have an access to the error message. Users can remove failed indexes from the indexes table. The in-progress indexes can not be removed manually.

      [Can be descoped if we exceed the planned time]

      Display the “In progress…” pillow for indexes that were just created from the Compass UI to notify users that it can take a while until their new indexes are ready.

      We will keep track of the `db.createIndex` promise, immediately close the dialog once the user pressed the “Create Index” button, keep the "In progress…" banner while the promise is not fulfilled, and either remove it or show an error as soon as it resolves or rejects

            Assignee:
            alena.khineika@mongodb.com Alena Khineika
            Reporter:
            alena.khineika@mongodb.com Alena Khineika
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: