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

Insight hash url #8228

Merged
merged 3 commits into from
Jan 24, 2022
Merged

Insight hash url #8228

merged 3 commits into from
Jan 24, 2022

Conversation

mariusandra
Copy link
Collaborator

Changes

  • Still WIP, pushing to let tests run
  • Sovles Bug: Request Line is too large (4246 > 4094) #8000
  • Replaces the URL of insights from /insights/:short_id?insight=TRENDS&other_search_params to /insights/:short_id when just viewing, and /insights/:short_id/edit#filters={insight:'TRENDS',...} when persisting temporary state in the URL.
  • Updates the saved insights list page to link to /insights/:short_id, without the filters. Turbo mode still works.

How did you test this code?

  • Made sure all the tests worked as intended
  • Added a test to make sure we cover redirects from the old style to the new style
  • Played around in the interface

@mariusandra mariusandra marked this pull request as ready for review January 24, 2022 14:32
@mariusandra mariusandra marked this pull request as draft January 24, 2022 14:55
@mariusandra mariusandra marked this pull request as ready for review January 24, 2022 16:00
Copy link
Collaborator

@Twixes Twixes left a comment

Choose a reason for hiding this comment

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

Seems to work really well

@Twixes Twixes merged commit df48e8c into master Jan 24, 2022
@Twixes Twixes deleted the insight-hash-url branch January 24, 2022 16:12
paolodamico pushed a commit that referenced this pull request Jan 31, 2022
* store insight filters in the #filters=

* test for legacy url redirect, update new paths in urls

* link to short urls from saved insights
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.

None yet

3 participants