Skip to content
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

reassign: cover bug reassigning ping pong ping #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

mfojtik
Copy link
Owner

@mfojtik mfojtik commented Sep 2, 2020

This controller covers the reassign "ping, pong, ping". In case the bug is moved back to original component but we already notified the assignee (AssigneeNotified), the controller we remove this label and allow "incoming" reporting to notify assignee again.

for _, change := range h.Changes {
switch change.FieldName {
case "cf_devel_whiteboard":
whenNotified = changedAt
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs more. You have to check that AssignedModified is in the new value, but not in the old.

Are we sure history is ordered?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sttts we can try to sort the slice based on when beforehand to be sure.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or just compare whether whenNotified < changedAt. You want the last one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants