-
Notifications
You must be signed in to change notification settings - Fork 98
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
feat(rest): Create new endpoint for schedule CVE and schedule attachment deletion in admin tab. #2243
feat(rest): Create new endpoint for schedule CVE and schedule attachment deletion in admin tab. #2243
Conversation
Please first merge pr #2238 |
51f957f
to
ac3e663
Compare
ac3e663
to
abe709e
Compare
Merge conflicts resolved |
abe709e
to
786c7f5
Compare
Taking this PR for testing |
Test completed. Need one clarity @nikkuma7 : In below code (in screenshot), is that http type is proper!!? Delete api has Post method and Unschedule method has Delete method type..!! |
Hi @keerthi-bl , As you can see in below SS its correct Attachment deletion method should have post method, because we are scheduling when we click on deletion button. |
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 address the review comments and seems like the exception handing is not proper. Kindly address those.
...erver/src/main/java/org/eclipse/sw360/rest/resourceserver/schedule/Sw360ScheduleService.java
Outdated
Show resolved
Hide resolved
...erver/src/main/java/org/eclipse/sw360/rest/resourceserver/schedule/Sw360ScheduleService.java
Outdated
Show resolved
Hide resolved
...er/src/main/java/org/eclipse/sw360/rest/resourceserver/schedule/ScheduleAdminController.java
Outdated
Show resolved
Hide resolved
Please use the POST method across the schedule endpoints ad it is not actually deleting the resourcse instead, it is triggering an action. |
786c7f5
to
cf1872a
Compare
cf1872a
to
433af87
Compare
...er/src/main/java/org/eclipse/sw360/rest/resourceserver/schedule/ScheduleAdminController.java
Outdated
Show resolved
Hide resolved
Kindly address this one. |
@smrutis1 : I agreed with your comments. It looks good to me as well.
|
107bbe1
to
c73a4de
Compare
done. |
@nikkuma7 please rebase with latest main |
c73a4de
to
db4e551
Compare
db4e551
to
f3ef845
Compare
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.
Minor changes needed.
...er/src/main/java/org/eclipse/sw360/rest/resourceserver/schedule/ScheduleAdminController.java
Outdated
Show resolved
Hide resolved
...er/src/main/java/org/eclipse/sw360/rest/resourceserver/schedule/ScheduleAdminController.java
Outdated
Show resolved
Hide resolved
...ce-server/src/test/java/org/eclipse/sw360/rest/resourceserver/restdocs/ScheduleSpecTest.java
Outdated
Show resolved
Hide resolved
...ce-server/src/test/java/org/eclipse/sw360/rest/resourceserver/restdocs/ScheduleSpecTest.java
Outdated
Show resolved
Hide resolved
…ent deletion. Signed-off-by: Nikesh kumar <[email protected]>
f3ef845
to
aacf0dd
Compare
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.
Changes looks good.
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.
CLGTM
…ent deletion.
Closes #2242
Suggest Reviewer
How To Test?
http://localhost:8080/resource/api/schedule/cveService
http://localhost:8080/resource/api/schedule/unscheduleCve
http://localhost:8080/resource/api/schedule/deleteAttachment
http://localhost:8080/resource/api/schedule/unscheduleService
http://localhost:8080/resource/api/schedule/DeleteOldAttachment
http://localhost:8080/resource/api/schedule/cveSearch
Checklist
Must: