-
Notifications
You must be signed in to change notification settings - Fork 54
@W-10778096@ Minor error message fixes #770
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
| public static final String UNRESOLVED_CRUD_FLS_TEMPLATE = | ||
| "SFGE was unable to resolve the parameter passed to [%2$s] operation. " | ||
| + "Ensure manually that this operation has the necessary CRUD/FLS checks."; | ||
| "SFGE couldn't resolve the parameter passed to [%2$s] operation%4$s. " |
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.
@jfeingold35 I've changed the format based on our conversation.
| flsViolationInfo.getValidationType().name(), | ||
| flsViolationInfo.getObjectName()); | ||
| flsViolationInfo.getObjectName(), | ||
| fieldInformation); |
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.
Now passing in fieldInformation as another parameter.
| message, | ||
| equalToIgnoringCase( | ||
| "FLS validation is missing for [UPDATE] operation on [My_Obj__c] with field(s) [Name,Status__c] - SFGE may not have parsed some objects/fields correctly. Please confirm if the objects/fields involved in these segments have FLS checks: [Relational_Field__r.Another_field__c]")); | ||
| String.format( |
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.
Modified failing tests to use String formats instead of hardcoding the message. Will clean up the remaining tests at another iteration while applying Teresa's feedback.
Uh oh!
There was an error while loading. Please reload this page.