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

feat(rest): Create new endpoint to cancel all scheduled services. #2238

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

nikkuma7
Copy link
Contributor

@nikkuma7 nikkuma7 commented Dec 12, 2023

Please provide a summary of your changes here.

  • Which issue is this pull request belonging to and how is it solving it? (Refer to issue here)
  • Did you add or update any new dependencies that are required for your change?

Closes #2237

Suggest Reviewer

You can suggest reviewers here with an @mention.

How To Test?

http://localhost:8080/resource/api/schedule/unscheduleAllService

How should these changes be tested by the reviewer?
Have you implemented any additional tests?

Checklist

Must:

  • All related issues are referenced in commit messages and in PR

@nikkuma7 nikkuma7 force-pushed the feat/CancleAllScheduleServices branch from 0ceafcb to 8e272bc Compare December 12, 2023 09:52
@ag4ums ag4ums added needs code review needs general test This is general testing, meaning that there is no org specific issue to check for has merge conflicts labels Dec 13, 2023
@nikkuma7 nikkuma7 force-pushed the feat/CancleAllScheduleServices branch from 8e272bc to 61f34e3 Compare December 13, 2023 10:08
@ag4ums ag4ums self-assigned this Jan 3, 2024
@keerthi-bl
Copy link
Contributor

Test completed.

2238_issue_ref_screenshot

The Schedule resource is used to get and list the Schedule requests.

[[unschedule-services]]
==== cancle all schedule.
Copy link
Contributor

@rudra-superrr rudra-superrr Jan 4, 2024

Choose a reason for hiding this comment

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

change text to Cancel all Scheduled Services.
cancle -> Cancel
correct this at all places where cancle is used.

return resource;
}

@RequestMapping(value = SCHEDULE_URL + "/unscheduleAllService", method = RequestMethod.DELETE)
Copy link
Contributor

Choose a reason for hiding this comment

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

/unscheduleAllService -> /unscheduleAllServices

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

@nikkuma7 nikkuma7 force-pushed the feat/CancleAllScheduleServices branch from 61f34e3 to b739bed Compare January 5, 2024 07:01
The Schedule resource is used to get and list the Schedule requests.

[[unschedule-services]]
==== cancel all schedule.
Copy link
Contributor

Choose a reason for hiding this comment

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

replace it with Cancel all scheduled services.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

@RequestMapping(value = SCHEDULE_URL + "/unscheduleAllServices", method = RequestMethod.DELETE)
public ResponseEntity<?> unscheduleAllServices()throws TException {
User sw360User = restControllerHelper.getSw360UserFromAuthentication();
RequestStatus requestStatus = scheduleService.cancleAllServices(sw360User);
Copy link
Contributor

Choose a reason for hiding this comment

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

change service name to cancelAllServices from cancleAllServices.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

Signed-off-by: Nikesh kumar <kumar.nikesh@simens.com>
@nikkuma7 nikkuma7 force-pushed the feat/CancleAllScheduleServices branch from b739bed to 3cb73c1 Compare January 8, 2024 08:01
@rudra-superrr
Copy link
Contributor

code looks good.

@rudra-superrr rudra-superrr added ready ready to merge and removed needs code review needs general test This is general testing, meaning that there is no org specific issue to check for labels Jan 8, 2024
@ag4ums ag4ums merged commit deedeef into eclipse-sw360:main Jan 10, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(rest): Create new endpoint to cancel all scheduled services in schedule tab.
4 participants