-
Notifications
You must be signed in to change notification settings - Fork 101
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 attachmentUsages for a project. #2103
Conversation
0743fb9
to
91a11c4
Compare
Hi @smrutis1, additional fields removed. |
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.
Requesting some minor changes
@@ -118,6 +118,7 @@ | |||
import org.springframework.web.bind.annotation.RestController; | |||
import org.springframework.web.multipart.MultipartFile; | |||
import org.springframework.web.servlet.support.ServletUriComponentsBuilder; | |||
import org.eclipse.sw360.rest.resourceserver.release.ReleaseController; |
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 remove unused imports
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.
removed the unused imports.
for (Map.Entry<String, Object> entry : releaseIdToUsage.entrySet()) { | ||
Map<String, Object> originalValue = (Map<String, Object>) entry.getValue(); | ||
if (originalValue != null) { | ||
originalValue.remove("setCreatedBy"); |
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.
It would be good to create constants of the fields like "setCreatedBy" etc. and remove all from the map
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.
done
91a11c4
to
071152d
Compare
...ce-server/src/main/java/org/eclipse/sw360/rest/resourceserver/project/ProjectController.java
Outdated
Show resolved
Hide resolved
Signed-off-by: rudra-superrr <rudra.chopra@siemens.com>
071152d
to
acc553b
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.
Code looks good. Tested successfully.
Issue: closes #2094
Description: updated the existing attachmentUsages endpoint with more fields in response structure.