-
Notifications
You must be signed in to change notification settings - Fork 4
NEW: @W-18146548@: Add new Flow Scanner rules #376
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
Conversation
0fc69eb to
d49221c
Compare
| return QueryDescription( | ||
| query_id=self.query_id, | ||
| query_name=self.query_name, | ||
| query_description="This rule detects when there are CRUD flow elements within a loop (RecordLookups, RecordCreates, RecordUpdates, RecordDeletes). This rule does not trigger if the CRUD element is in a fault handler. These DB operations should be bulkified by using collections and the IN condition. This rule does not follow subflows.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I manually fixed all the query_descriptions for now. Waiting on Robert to do this on his end.
| // The name of the flow scanner query. Unfortunately this is what shows up in the results instead of the id. | ||
| queryName: string, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the near future Robert said he'll add queryId to the results files in addition to the queryName. So soon we'll be able to remove this queryName hopefully.
| // Should be true if the rule is queried by the --optional_queries flag and false if it is in the default preset | ||
| isOptional: boolean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Soon Robert said he'll make all queries optional in a sense (where we can pass them all in - including the ones in the default preset)... so that we don't have to play the game of marking some as optional and some as required (and omit results after the fact). For now, this is our workaround.
d49221c to
5843e73
Compare
This will be for the November release and not the October release.