hypertrace / hypertrace-ui

UI for Hypertrace

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature: Save Queries in Explorer for later reference

cseas opened this issue · comments

Use Case

I want to be able to save the different queries I frequently search for in the Explorer view. Right now we need to type manually every single time.

Proposal

A button in the Explorer view for saving the current query. User should be able to give the query a label and later be able to browse through the saved queries to quickly switch between different results.

Screenshot 2022-04-14 at 11 03 38 AM

Questions to address (if any)

Developers should be able to decide where they want to save the user's queries: localStorage, session storage or database.

The idea is to have one more nav item called Saved Queries. On clicking the same, the list of all the saved queries will be shown to the user.
As the user selects one, the user will be navigated to explorer with the filters within the query applied.

For the first development iteration, we would start with saving/reading from localStorage. In future iteration, would move it to an independent database to save user related preferences.

We are also planning to develop this in a feature flag kinda way, so we can dynamically test and try it out without having any repercussions on the application.

@aaron-steinfeld @anandtiwary @itssharmasandeep @arjunlalb Thoughts on this?

This feature is implemented in the razorpay fork through these Pull Requests:

We've received positive feedback from the users. The feature has been in prod since June 14, 2022 and seems stable. Do we want to merge it upstream?