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: display missing custom metrics and dimensions #10070

Merged
merged 3 commits into from
May 16, 2024

Conversation

almeidabbm
Copy link
Contributor

@almeidabbm almeidabbm commented May 14, 2024

Closes: #10066

Description:

Screen.Recording.2024-05-14.at.15.17.15.mov

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

@almeidabbm almeidabbm self-assigned this May 14, 2024
@owlas owlas requested a deployment to fix/missing-custom-dim-metric - jaffle_db_pg_13 PR #10070 May 14, 2024 14:22 — with Render Abandoned
@owlas owlas deployed to fix/missing-custom-dim-metric - headless-browser PR #10070 May 14, 2024 14:22 — with Render Active
Copy link

netlify bot commented May 14, 2024

Deploy Preview for peaceful-bassi-cbf284 canceled.

Name Link
🔨 Latest commit f8dd428
🔍 Latest deploy log https://app.netlify.com/sites/peaceful-bassi-cbf284/deploys/6645c756ef2788000836b3de

@almeidabbm almeidabbm changed the title Fix/missing custom dim metric fix: display missing custom metrics and dimensions May 14, 2024
@almeidabbm almeidabbm marked this pull request as ready for review May 14, 2024 14:31
@almeidabbm almeidabbm requested review from a team and rephus and removed request for a team May 14, 2024 14:31
return (
!table ||
(metric.baseDimensionName &&
!table.dimensions[metric.baseDimensionName])
Copy link
Collaborator

Choose a reason for hiding this comment

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

why did you change this ? I thought the problem was only on custom dimensions

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, ended up noticing as well that if the base dimension for a custom metric was removed the custom metric wouldn't show as missing

Screen.Recording.2024-05-14.at.16.07.46.mov


return (
!table ||
(isCustomBinDimension(customDimension) &&
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we also need to check if isCustomSqlDimension ?

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 point, I had a look at that and customSqlDimension but since it doesn't have a base dimension and it's only sql I couldn't do it like this, probably can only do it after compiling?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I believe I was able to do this in the latest commit:

Screen.Recording.2024-05-16.at.09.42.11.mov

@almeidabbm almeidabbm requested a review from rephus May 15, 2024 09:25
@owlas owlas temporarily deployed to fix/missing-custom-dim-metric - lightdash PR #10070 May 16, 2024 08:44 — with Render Destroyed
@owlas owlas temporarily deployed to fix/missing-custom-dim-metric - headless-browser PR #10070 May 16, 2024 08:44 — with Render Destroyed
@almeidabbm almeidabbm requested a review from rephus May 16, 2024 08:46
@almeidabbm almeidabbm merged commit e41b9a8 into main May 16, 2024
49 of 52 checks passed
@almeidabbm almeidabbm deleted the fix/missing-custom-dim-metric branch May 16, 2024 10:17
lightdash-bot pushed a commit that referenced this pull request May 16, 2024
## [0.1096.3](0.1096.2...0.1096.3) (2024-05-16)

### Bug Fixes

* display missing custom metrics and dimensions ([#10070](#10070)) ([e41b9a8](e41b9a8))
@lightdash-bot
Copy link
Collaborator

🎉 This PR is included in version 0.1096.3 🎉

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
4 participants