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(api): Run scheduler based on the given operation #2539

Merged
merged 2 commits into from
Sep 28, 2023

Conversation

dushimsam
Copy link
Contributor

@dushimsam dushimsam commented Jul 12, 2023

Description

Added the API to run the scheduler of an operation based on the selected option.

Changes

  1. Added a new method in JobController to build the functionality.
  2. Updated the main file(index.php) by adding a new route POST /jobs/scheduler/operation/run.
  3. Updated the openapi.yaml file to write the new API's documentation.

How to test

Make a POST request on the endpoint: /jobs/scheduler/operation/run,

Screenshots

image
image
image

Related Issue:

Fixes #2526

cc: @shaheemazmalmmd @GMishx

@dushimsam dushimsam changed the title feat(api): Run scheduler based on the given operation's option feat(api): Run scheduler based on the given operation Jul 12, 2023
@dushimsam dushimsam force-pushed the handle-run-scheduler-option branch from 0282213 to a2e2981 Compare July 12, 2023 09:30
@GMishx GMishx added the GSOC-23 Label to tag pull request which are part of the GSOC 2023 label Jul 28, 2023
@github-actions github-actions bot added the has merge conflicts PR to be rebased label Aug 30, 2023
@github-actions
Copy link

This pull request has conflicts, please rebase with master to resolve those before we can evaluate the pull request.

@github-actions github-actions bot removed the has merge conflicts PR to be rebased label Sep 12, 2023
@github-actions github-actions bot added the has merge conflicts PR to be rebased label Sep 27, 2023
@github-actions
Copy link

This pull request has conflicts, please rebase with master to resolve those before we can evaluate the pull request.

Signed-off-by: dushimsam <dushsam@gmail.com>
Copy link
Member

@GMishx GMishx left a comment

Choose a reason for hiding this comment

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

Changes looks good. Tested, working as epxected.

Signed-off-by: Gaurav Mishra <mishra.gaurav@siemens.com>
@github-actions github-actions bot removed the has merge conflicts PR to be rebased label Sep 28, 2023
@GMishx GMishx merged commit 323e53a into fossology:master Sep 28, 2023
13 checks passed
@GMishx GMishx deleted the handle-run-scheduler-option branch September 28, 2023 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GSOC-23 Label to tag pull request which are part of the GSOC 2023 ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create REST APIs for Setting and Getting Scheduler Operations
3 participants