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

no indication of broken Best Practice rules until deploy #384

Closed
o-o00o-o opened this issue Jan 20, 2020 · 3 comments
Closed

no indication of broken Best Practice rules until deploy #384

o-o00o-o opened this issue Jan 20, 2020 · 3 comments
Labels
bug Anything that is supposed to work, but doesn't. enhancement Feature requests / improvements to existing features (not bugs)
Milestone

Comments

@o-o00o-o
Copy link

We had an unexpected experience last week with BP rules. I had changed a rule to have bad syntax and used IS NOT NULL instead of != null (doing too much SQL recently :)). However there were no errors given in the UI and actually the BP rule stopped returning the failing ones (so I assumed that it had solved the issue)

However on committing and deploying we found that the build was erroring. In fact it wasn't erroring it was warning so everything still seemed to work, with the issue now that we thought we had a BP rule in effect but it wasn't

So I think there are a couple of issues here that should be addressed

  1. BP rule "Blah" with constraint "GetAnnotation("blah") is not null" doesn't indicate any error in the UI
  2. When deploying even with -ERR, the BP errors are shown only as Warnings (warnings are my original errors not the Blah case as above, but you get the idea)

start /b /wait D:\a\1\s\build\TabularEditor\TabularEditor.exe D:\a\1\s\src\VegaDW.Cube\database.json -ANALYZE -VSTS -ERR

    Tabular Editor 2.9.1 (build 2.9.7282.17172)
     --------------------------------
     Loading custom actions from: C:\Users\bgerhardi\AppData\Local\TabularEditor\CustomActions.json
     Dependency tree built in 1555 ms
     Loading model...
     Running Best Practice Analyzer...
     =================================
     ##vso[task.logissue type=warning;]Error on rule 'Prevent Hidden or Numeric columns to Be Available in MDX': Operator 'AND' incompatible with operand types 'Boolean' and 'String'
     ##vso[task.logissue type=warning;]Error on rule 'Sorted Columns Should Not Be Hidden': Operator 'AND' incompatible with operand types 'Boolean' and 'String'
     ##vso[task.logissue type=warning;]Error on rule 'Columns Used to Sort Others Should Be Hidden': Operator 'AND' incompatible with operand types 'Boolean' and 'String'
     =================================
@otykier
Copy link
Collaborator

otykier commented Jan 20, 2020

The UI actually displays an error when the expression editor loses focus:
image
Unfortunately, if you hit the "OK" button you might not have noticed the error message, as the dialog closes immediately. Would it be better to display a confirmation box in case an expression has an error when the "OK" button is clicked?

Also - do you think the BPA UI (below) should display rules that have an error in their expression?
image

Regarding #2, I can certainly change the type to be "error" instead of "warning". I don't recall the rationale behind only showing them as warnings previously.

@otykier otykier added bug Anything that is supposed to work, but doesn't. enhancement Feature requests / improvements to existing features (not bugs) labels Jan 20, 2020
@o-o00o-o
Copy link
Author

o-o00o-o commented Jan 20, 2020 via email

@otykier otykier added this to the 2.9.3 milestone Mar 6, 2020
otykier pushed a commit that referenced this issue Mar 6, 2020
@otykier
Copy link
Collaborator

otykier commented Mar 6, 2020

Fixed in 2.9.3

@otykier otykier closed this as completed Mar 6, 2020
SergioMurru pushed a commit to SergioMurru/TabularEditor that referenced this issue Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Anything that is supposed to work, but doesn't. enhancement Feature requests / improvements to existing features (not bugs)
Projects
None yet
Development

No branches or pull requests

2 participants