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 22 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.
A function that begins with
is
should return a boolean IMHO.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.
addressed it here
16a708e
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, never ever do a type conversion without checking for the result. Otherwise we have a panic.
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 thanks for pointing out. addressed it here
41bc004
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.
How does this test pass? I don't see where you're deleting links.
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 checkout this -> https://github.com/fabric8-services/fabric8-wit/pull/2305/files#diff-02845b093c442bf1ae790a6ebb6c8da8R273
DeleteRelatedLinks
delete the links associated with the workitem.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.
Is it possible to add more assertion here? Other than just checking error, if it is possible to assert that there is no link exists, that would be better.
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.
addressed here 3d6aabb
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.
Is it possible to add more assertion here? Other than just checking error, if it is possible to assert that there is no work item exists, that would be better.
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.
addressed here 3d6aabb