This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Enable the delete workitem endpoint #2305
Enable the delete workitem endpoint #2305
Changes from 7 commits
f93db24
3fda771
aa39af2
ed9d652
9f8c107
cfaed6b
f9be9b0
1b07bad
37e2d35
1aaa631
115d334
77b6e4e
f7fd115
bb06677
49d5479
eb19194
0c8fe6e
5990f13
50c9e17
d37cced
e8a08a5
31ef3d4
68517a6
b996cf6
6bc6b87
3d6aabb
15ac6ab
f9d6c10
b2f76c6
41bc004
16a708e
e131257
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Why did you change this error type?
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.
This should be a ForbiddenError. The workitem could not be deleted because the user doesn't have necessary permissions.
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.
I know what it means but I really don't see a difference between: the action is forbidden and you're not authorized.
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.
@kwk @jarifibrahim let's discuss this in weekly today? I have some thoughts around it.
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.
Based on the discussion in the weekly sync, we decided to use
NewForbiddenError
specific for this case.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.
Please use
t
instead ofs.T()
in sub-tests.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.
@kwk addressed it as a part of this PR - 37e2d35
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.
The second identity seems unused.
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.
removed unused identity here 1b07bad
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.
tf.WorkItems(1), tf.Identities(1)
is the same atf.WorkItems(1)
because a work item requires an identity on its own.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.
@kwk yes. Thanks for pointing that out. removed it here -> 77b6e4e