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

Added endpoint to get jobs by label #80

Open
wants to merge 5 commits into
base: feature/remote-worker
Choose a base branch
from

Conversation

wesleymonte
Copy link
Contributor

Resolves #73.

@wesleymonte wesleymonte added the enhancement New feature or request label May 6, 2020
@wesleymonte wesleymonte self-assigned this May 6, 2020

try {
List<Job> jobs = queueService.getJobsByLabelFromQueue(queueId, label);
return new ResponseEntity(jobs, HttpStatus.CREATED);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Wouldn't it be an HttpStatus.OK here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. Done.

@wesleymonte wesleymonte requested a review from thiagoyeds May 11, 2020 14:33
Copy link
Member

@thiagomanel thiagomanel left a comment

Choose a reason for hiding this comment

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

do we have a unit test for this? if not, add one. The code looks code to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants