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
Custom rule exemption not working for fields #123
Comments
Hi @chchtv11 Dimension-level exemptions seem to work fine in my testing: https://github.com/looker-open-source/look-at-me-sideways/blob/issue-123/__tests__/dummy-projects/09-exempt-custom-rules/index.test.js Perhaps you could provide a more specific test case? and also confirm which version of LAMS you are running? |
Hi @fabio-looker thank you for looking into this. I am running LAMS v2 in github actions. I have copied the test you ran into my project (but specifying measure only, as In
In
|
Thanks, I found a typo in my test and am now able to reproduce this. Actually I'm suprised no one has mentioned it before! I'll try to figure out the cause by the end of the week |
I believe the cause of this is https://github.com/looker-open-source/look-at-me-sideways/blob/master/lib/custom-rule/rule-evaluator.js#L19
The symptom here is that the exemption will work at intermediate levels but not at the most granular level where matched. I have this fixed in my v3 branch which I am hoping to release this month. |
This is currently available in the v3 beta: https://www.npmjs.com/package/@looker/look-at-me-sideways/v/3.0.0-beta.0 Release notes: https://github.com/looker-open-source/look-at-me-sideways/blob/fabble/v3-extends-refinements/docs/release-notes/v3.md If you do not want to upgrade to v3, let me know and I can also patch this into v2 |
Hello! Although this was fixed in 3.0.0-beta.0 , that beta release had several issues. Many of those issues are fixed in the next beta pre-release 3.0.0-beta.1. I'll keep this issue open until v3 is out of beta. Thank you for your feedback thus far! |
I am unable to add an exemption at the field level for custom rules. However, I can add them at the view level.
Example:
In manifest:
In view file:
I understand this is similar to another issue #50 but I thought it might be specific to field-level exemptions since I can add exemptions to views.
The text was updated successfully, but these errors were encountered: