-
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): endpoint to get obligations depending upon obligation level #2611
base: main
Are you sure you want to change the base?
feat(rest): endpoint to get obligations depending upon obligation level #2611
Conversation
1085858
to
072a633
Compare
…tion level. Signed-off-by: Rudra Chopra <[email protected]>
072a633
to
dfa0948
Compare
Testing this PR |
@RequestMapping(value = PROJECTS_URL + "/{id}/obligation", method = RequestMethod.GET) | ||
public ResponseEntity<HalResource> getObligations(Pageable pageable, | ||
@Parameter(description = "Project ID.") @PathVariable("id") String id, | ||
@Parameter(description = "Obligation Level") |
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 provide value set of supported values as OblLevel
is a string.
public ResponseEntity<HalResource> getObligations(Pageable pageable, | ||
@Parameter(description = "Project ID.") @PathVariable("id") String id, | ||
@Parameter(description = "Obligation Level") | ||
@RequestParam(value = "obligationLevel", required = true) String OblLevel) |
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.
@RequestParam(value = "obligationLevel", required = true) String OblLevel) | |
@RequestParam(value = "obligationLevel", required = true) String oblLevel) |
@@ -437,6 +439,28 @@ public ObligationList getObligationData(String linkedObligationId, User user) th | |||
return sw360ProjectClient.getLinkedObligations(linkedObligationId, user); | |||
} | |||
|
|||
public Map<String, ObligationStatusInfo> setObligationsFromAdminSection(User user, Map<String, ObligationStatusInfo> obligationStatusMap, | |||
Project project, String OblLevel) throws TException { |
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.
Project project, String OblLevel) throws TException { | |
Project project, String oblLevel) throws TException { |
Issue: #2610
Description: endpoint to get obligations depending upon obligation level (Possible values are: License, Project, Component, Organization).