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

[vtadmin-web] Add useSyncedURLParam hook to persist filter parameter in the URL #7857

Merged

Conversation

doeg
Copy link
Contributor

@doeg doeg commented Apr 13, 2021

Signed-off-by: Sara Bee 855595+doeg@users.noreply.github.com

Description

This adds useSyncedURLParam, a hook for synchronizing values (particularly user input) with the URL. The principle here is that every view of VTAdmin should be encoded in the URL, so it's easy to share what you're seeing with someone else. 😎

url-query-syncing.mov

This is a fairly straightforward implementation to get something out the door. I already have some improvements in mind, based on our internal prototype, so I added a fair amount of commentary + unit tests so it's easy to update down the road.

Related Issue(s)

N/A

Checklist

  • Should this PR be backported? No
  • Tests were added or are not required
  • Documentation was added or is not required

Deployment Notes

N/A

Impacted Areas in Vitess

Components that this PR will affect:

  • Query Serving
  • VReplication
  • Cluster Management
  • Build/CI
  • VTAdmin

@doeg doeg added this to In progress in VTAdmin via automation Apr 13, 2021
@doeg doeg force-pushed the sarabee-vtadmin-web-useSyncedURLParam branch 4 times, most recently from 72e0116 to e7cb303 Compare April 14, 2021 12:41
…iews

Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com>
@doeg doeg force-pushed the sarabee-vtadmin-web-useSyncedURLParam branch from e7cb303 to 0e74478 Compare April 14, 2021 23:12
@ajm188 ajm188 merged commit 1e38ab0 into vitessio:master Apr 15, 2021
VTAdmin automation moved this from In progress to Done Apr 15, 2021
@systay systay added Component: VTAdmin VTadmin interface Type: Enhancement Logical improvement (somewhere between a bug and feature) labels Apr 28, 2021
@doeg doeg deleted the sarabee-vtadmin-web-useSyncedURLParam branch November 1, 2021 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: VTAdmin VTadmin interface Type: Enhancement Logical improvement (somewhere between a bug and feature)
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants