hypertrace-ui icon indicating copy to clipboard operation
hypertrace-ui copied to clipboard

Feature: Save Queries in Explorer for later reference

Open cseas opened this issue 2 years ago • 2 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.

cseas avatar Apr 14 '22 05:04 cseas

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?

jaywalker21 avatar Apr 18 '22 06:04 jaywalker21

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

  • https://github.com/razorpay/hypertrace-ui/pull/40
  • https://github.com/razorpay/hypertrace-ui/pull/41
  • https://github.com/razorpay/hypertrace-ui/pull/43

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?

cseas avatar Jul 11 '22 09:07 cseas