Skip to content

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

Merged
merged 2 commits into from
Apr 14, 2025
Merged

Conversation

scttcper
Copy link
Member

Tag keys that conflict with our issue keys must be escaped

fixes #89369

Tag keys that conflict with our issue keys must be escaped

fixes #89369
@scttcper scttcper requested a review from malwilley April 11, 2025 21:37
@scttcper scttcper requested a review from a team as a code owner April 11, 2025 21:37
@@ -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,
Copy link
Member Author

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

Copy link
Member

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

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 11, 2025
Copy link

codecov bot commented Apr 11, 2025

Codecov Report

All 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) {
Copy link
Member

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?

Copy link
Member

@malwilley malwilley left a 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

@scttcper scttcper enabled auto-merge (squash) April 14, 2025 17:28
@scttcper scttcper merged commit f61474f into master Apr 14, 2025
42 checks passed
@scttcper scttcper deleted the scttcper/escape-status-tag branch April 14, 2025 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Custom tag search is broken
2 participants