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

fix: Most recent filter + interactive time range #2085

Merged
merged 1 commit into from
Feb 5, 2025

Conversation

bprusinowski
Copy link
Collaborator

@bprusinowski bprusinowski commented Feb 5, 2025

This PR fixes initialization of published charts that use most recent date filter together with interactive filter, so that the full range is displayed, instead of being "stuck" in the start date.

How to test

  1. Go to this link.
  2. Open X axis field.
  3. Enable most recent date filter.
  4. Make the filter interactive.
  5. Publish the chart.
  6. ✅ See that's initialized correctly.

How to reproduce

Follow the above steps on TEST and see that chart is broken in published mode (only a single year is selected in interactive filter).


  • Add a CHANGELOG entry
  • Add an end-to-end test

cc @sosiology

Copy link

vercel bot commented Feb 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
visualization-tool ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 5, 2025 7:55pm

Copy link
Contributor

@noahonyejese noahonyejese left a comment

Choose a reason for hiding this comment

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

LGTM ✅ - Should be able to merge 🙇🏽‍♂️

Comment on lines +125 to +126
// FIXME: Should be fixed in useSyncInteractiveFilters where we try to parse
// the date that can be a string (VISUALIZE_MOST_RECENT_VALUE).
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this something worth opening an issue for? Or how urgent is this? Any specific timeline we want to tackle this? - sorry for all the questions 😅

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sorry for such late notification @noahonyejese (automatic review request as code owner), I didn't expect a review at such time, but wanted to open a PR so we have it documented (but thank you for the review 🔝). This is a hot-fix just before the PROD release tomorrow in the morning, but I'll open an issue to fix it properly 👍

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@bprusinowski bprusinowski merged commit eca6ab3 into main Feb 5, 2025
13 checks passed
@bprusinowski bprusinowski deleted the fix/most-recent-interactive-time-range branch February 5, 2025 20:03
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.

2 participants