-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
fix(issues): Escape status tag on search #89434
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
Tag keys that conflict with our issue keys must be escaped fixes #89369
@@ -1993,6 +1999,7 @@ export const ISSUE_EVENT_FIELDS_THAT_MAY_CONFLICT_WITH_TAGS: Set<FieldKey> = new | |||
FieldKey.STACK_MODULE, | |||
FieldKey.STACK_PACKAGE, | |||
FieldKey.STACK_STACK_LEVEL, | |||
FieldKey.STATUS, |
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.
@malwilley i wasn't totally sure about this change and how these are used already
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.
Yeah this is exactly what this was set was meant to solve so it belongs here
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## master #89434 +/- ##
==========================================
- Coverage 87.73% 87.73% -0.01%
==========================================
Files 10159 10159
Lines 573756 573750 -6
Branches 22555 22552 -3
==========================================
- Hits 503383 503377 -6
Misses 69939 69939
Partials 434 434 |
/** | ||
* If a tag conflicts with a reserved keyword, change it to `tags[key]:value` | ||
*/ | ||
export function escapeIssueTagKey(key: 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.
We are doing this same thing in useFetchIssueTags.tsx
, can you use this function there as well?
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.
We may want to add status
to the autocomplete (with suggestions), but this is a good change already
Tag keys that conflict with our issue keys must be escaped
fixes #89369