Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Global dimension search in metrics view in both rill dev and cloud #4905

Merged
merged 9 commits into from
May 30, 2024

Conversation

AdityaHegde
Copy link
Collaborator

@AdityaHegde AdityaHegde commented May 15, 2024

closes #4882

This adds a search button at the top right corner for both rill dev and cloud.

  • Add the search button to make a call to batch API.
  • Cache results of the search.
  • Polish UX and match mocks.

@AdityaHegde AdityaHegde force-pushed the adityahegde/global-dimension-search branch from 9d90695 to 551100d Compare May 15, 2024 12:59
@AdityaHegde AdityaHegde force-pushed the adityahegde/global-dimension-search branch from 3c0dd7a to a8a9807 Compare May 16, 2024 10:39
@AdityaHegde AdityaHegde force-pushed the adityahegde/global-dimension-search branch from a8a9807 to 6f6fd08 Compare May 16, 2024 10:47
@AdityaHegde AdityaHegde marked this pull request as ready for review May 17, 2024 11:43
@AdityaHegde AdityaHegde force-pushed the adityahegde/global-dimension-search branch from f44cad1 to 4f75531 Compare May 17, 2024 11:51
Copy link
Contributor

@ericpgreen2 ericpgreen2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall it looks pretty good!

UXQA –

  1. If a search query errored, we should say so and maybe give the user the option to retry the specific query/queries. Here I received "context deadline exceeded" when searching against a Druid-backed dashboard.
    image
  2. There's very poor performance when searching Druid-backed dashboards. Mind opening up a conversation with Platform to confirm the batch query approach, or if they recommend a different query pattern?
  3. It'd be nice to submit the form after a pause in typing. If so, subsequent typing should cancel an outstanding request.
  4. On an Adbids dashboard in Rill Developer, I searched for "facebook" and the search never finished searching the Domain dimension. I see the below error in my browser console.
    image
    image
  5. When a dimension value is already set as a dashboard filter, it'd be nice if there were an indicative checkmark in the search results.
    image
  6. For parity with the Enterprise application, the previous search input text should be retained when re-opening the search box.
  7. In Rill Developer, the search button should be to the left of the Deploy & Edit Metrics buttons.
  8. Nit: When there are no results yet, there shouldn't be the extra empty bottom section below the DropdownMenuSeparator.
    image
  9. Nit: I'd expect the progress bar to disappear after reaching 100%
  10. Nit: After using the down arrow key to focus on the first menu item, I'd like the up arrow key to re-focus on the search input.

@ericpgreen2
Copy link
Contributor

As mentioned in the demo, let's add a feature flag for this so that we can iterate on the Druid performance in a follow-on PR.

Copy link
Contributor

@ericpgreen2 ericpgreen2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. One more UXQA finding:

  • The "x" button shouldn't have this background color:
    image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirming this package-lock.json modification is intended? I'm not seeing any package.json changes in this PR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope. Will revert

@AdityaHegde
Copy link
Collaborator Author

Merging this behind a feature flag: dimensionSearch

@AdityaHegde AdityaHegde merged commit 648c2aa into main May 30, 2024
4 checks passed
@AdityaHegde AdityaHegde deleted the adityahegde/global-dimension-search branch May 30, 2024 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feat: Global Dimension Search
2 participants