-
Notifications
You must be signed in to change notification settings - Fork 26
Fix #475, #382: Fix lookup of actions when tag contains dash #472
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
…e whiteboard, then trying to see which tag exists as an action. In this commit we attempt to use the action.whiteboard_tag as the element which must exist within the bug.whiteboard element--iterating through the actions, and acting on the first action that applies to the bug. The whiteboard_tag presented in the action must be contained within the bug’s whiteboard field with a prefix of [
|
Bryan, could you explain the reason behind this change?
|
We have an action that currently is impossible to map whiteboard tags to with the current jira-bugzilla-integration/jbi/models.py Lines 264 to 267 in 846d69a
Currently any whiteboard tag that comes in with: Reversing the lookup to find the action_tag inside the whiteboard_tag without parsing the whiteboard_tag as heavily; enables this action as well as future actions to have "-"s in them. In the later commits, I added This PR now makes [this behavior] something we are not requiring, but are defaulting to at this time. |
Ahh, upon second reading this made sense; I thought you were mentioning there's no issue with the code.. but there's no github issue associated with this change, is the conclusion I just came to... I made #475 from the DENG comment, forcing a user to adjust their whiteboard processing. I'll add the above comment in regards to [remote-settings] to the gh issue as well |
…ests to test_bugzilla
Resolves: #475
Updates to lookup_action logic-- instead of constructing tags from the whiteboard, then trying to see which tag exists as an action. In this commit we attempt to use the action.whiteboard_tag as the element which must exist within the bug.whiteboard element--iterating through the actions, and acting on the first action that applies to the bug. The whiteboard_tag presented in the action must be contained within the bug’s whiteboard field with a prefix of [
As is: the functionality is working with this new process for action confirmation.
This PR ultimately allows for [exact-match-or-partial-matchs-123]:
data-eng-platformanddata-eng-qualitywould be able to coexist and map to separate processes