-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
bugfix: Add GetIsDeleted() check to Azure DevOps Event Handler #2838
Conversation
Is it possible to add a test for a comment without the IsDeleted field? |
@jsw1993 - See the attempted fix for this. Ideally I wanted a test to say "If it's a valid request then pass" but because of the way it works, it tries to go to the repo URL to get the data and I'm not sure there is a valid repo to point at to test.
Instead I've added a test which passes if it gets to (and fails) at the parsing section so at least we know that it's passed the ignore conditions. |
Sounds good to me but I'll let someone more versed in Go provide a proper judgement. Many thanks. |
Thank you @SSKLCP for the quick fix! |
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, thank you!
@nitrocode - I've just changed the test to match #2850's testing pattern but other than that I'm happy so long as others are. |
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.
Nice work!
what
Changing property check for isDeleted to ADO function GetIsDeleted() as that handles when the property doesn't exist
why
Issues when IsDeleted doesn't exist.
references