-
Notifications
You must be signed in to change notification settings - Fork 12
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
Miscellaneous changes to the migration assessment #2212
Conversation
- so that we can easily concat reason and suggestion for assessmetn
// formatToRegex converts a format string containing %s and %v | ||
// into a regex pattern. | ||
// - %s => (.+?) (capturing group) | ||
// - %v => (?:.+?) (non-capturing group) |
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.
wouldn't the existing implementation work? (since you were only checking for %s)? Why even define a group for %v?
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.
No, what we are doing is in the description variables replacing format specifier with this regexp pattern - .+?
so that it can match the final desc string formed after putting those values. and then replace these captured substring with XXX
But where %v is used, that need to be there so matching of regexp can happen(formattedDesc vs finalDesc) but no need to capture that or replace that with XXX
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.
LGTM
Describe the changes in this pull request
Clearly demarcation between the value of description and suggestion fields
Added fullstop to all the issue descriptions or reasons
Describe if there are any user-facing changes
NO
How was this pull request tested?
Exisitng tests are enough, updating the static text in them wherever required.
Does your PR have changes that can cause upgrade issues?