Skip to content

Conversation

@pjain1
Copy link
Member

@pjain1 pjain1 commented Jan 2, 2026

Support per metrics view filter for canvas. If the metrics view specified in the filter mapping is incorrect then it will be ignored and no filter will be applied.

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

@pjain1 pjain1 marked this pull request as draft January 2, 2026 16:39
@pjain1 pjain1 changed the title per mv filter in magic tokens [PLAT-327] per mv filter in magic tokens Jan 2, 2026
@pjain1 pjain1 requested a review from begelundmuller January 3, 2026 22:19
@pjain1 pjain1 marked this pull request as ready for review January 3, 2026 22:30
Copy link
Contributor

@begelundmuller begelundmuller left a comment

Choose a reason for hiding this comment

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

Can you check if the frontend changes for this are simple? In that case, it might be nice to do the change in this PR (disregard this comment if it's not simple).

@pjain1
Copy link
Member Author

pjain1 commented Jan 6, 2026

Added front end changes, tagging @AdityaHegde for the review of front end changes.

Copy link
Contributor

@begelundmuller begelundmuller left a comment

Choose a reason for hiding this comment

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

Left one comment, apart from that the backend changes LGTM

Copy link
Collaborator

@AdityaHegde AdityaHegde left a comment

Choose a reason for hiding this comment

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

Just a small nit. Otherwise LGTM

$dashboardStore.dimensionThresholdFilters,
)
: undefined;
if (filter && !$metricsViewName) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: this feels unnecessary at this level. Can you add a TODO to handle this upstream?

Copy link
Member Author

Choose a reason for hiding this comment

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

you mean metricsViewName will always be present but safety check should be done upstream?

Copy link
Member Author

Choose a reason for hiding this comment

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

removed the check, please have a look

@pjain1 pjain1 requested a review from AdityaHegde January 6, 2026 12:48
@pjain1 pjain1 merged commit 909c4b1 into main Jan 6, 2026
14 checks passed
@pjain1 pjain1 deleted the mgc_tkn_per_mv_filter branch January 6, 2026 13:38
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.

4 participants