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

chore: dont update filters until apply on semantic viewer #11514

Merged
merged 2 commits into from
Sep 12, 2024

Conversation

magnew
Copy link
Contributor

@magnew magnew commented Sep 10, 2024

Closes: #11490

Description:

In the semantic layer, don't apply filters until the Apply button is clicked

Reviewer actions

  • I have manually tested the changes in the preview environment
  • I have reviewed the code
  • I understand that "request changes" will block this PR from merging

@owlas owlas requested a deployment to update-filter-on-apply - jaffle_db_pg_13 PR #11514 September 10, 2024 15:52 — with Render Abandoned
@owlas owlas deployed to update-filter-on-apply - headless-browser PR #11514 September 10, 2024 15:52 — with Render Active
@magnew magnew marked this pull request as ready for review September 10, 2024 15:52
Copy link

netlify bot commented Sep 10, 2024

Deploy Preview for peaceful-bassi-cbf284 canceled.

Name Link
🔨 Latest commit d7a4b83
🔍 Latest deploy log https://app.netlify.com/sites/peaceful-bassi-cbf284/deploys/66e06ce5cd2bf40008f0e8af

@owlas owlas temporarily deployed to update-filter-on-apply - lightdash PR #11514 September 10, 2024 15:53 — with Render Destroyed
@magnew magnew changed the title chore: dont update fitlers until apply on semantic viewer chore: dont update filters until apply on semantic viewer Sep 10, 2024
Copy link
Contributor

@almeidabbm almeidabbm left a comment

Choose a reason for hiding this comment

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

Looks good!! Just a small thing

values: [],
}),
);
setDraftFilters((prev) => [...prev, newFilter]);
}}
onCancel={
filters.length > 0
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this should also be draftFilters

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch.

@owlas owlas temporarily deployed to update-filter-on-apply - lightdash PR #11514 September 10, 2024 15:59 — with Render Destroyed
@owlas owlas temporarily deployed to update-filter-on-apply - headless-browser PR #11514 September 10, 2024 15:59 — with Render Destroyed
@magnew magnew merged commit f1d0387 into main Sep 12, 2024
46 of 52 checks passed
@magnew magnew deleted the update-filter-on-apply branch September 12, 2024 10:40
@lightdash-bot
Copy link
Collaborator

🎉 This PR is included in version 0.1255.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Changing sorts/filters in semantic viewer not re-triggering chart query
4 participants