-
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): Add size parameter to clearing request. #2642
feat(rest): Add size parameter to clearing request. #2642
Conversation
72fc0f3
to
7a056d3
Compare
Testing this PR. |
8103c82
to
1916a1b
Compare
@akshitjoshii When increasing the number of releases in a project, the size of the CR should increase accordingly. However, I observed that when fetching a CR by ID from an endpoint, the size parameter in the response does not reflect the updated size value, even though the size field in the database updates as expected. |
5010d20
to
7d441e0
Compare
@sameed20 , made the changes. Pls check |
Test successful. |
.../java/org/eclipse/sw360/rest/resourceserver/clearingrequest/Sw360ClearingRequestService.java
Outdated
Show resolved
Hide resolved
5a71bae
to
76dbdc3
Compare
...ce-server/src/main/java/org/eclipse/sw360/rest/resourceserver/core/RestControllerHelper.java
Outdated
Show resolved
Hide resolved
76dbdc3
to
8c8f4cb
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.
Changes looks good.
@afsahsyeda can you please review the changes for auto merge of this branch? |
8c8f4cb
to
46288b2
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.
Approved but with some remarks with code style.
backend/moderation/src/main/java/org/eclipse/sw360/moderation/ModerationHandler.java
Outdated
Show resolved
Hide resolved
@akshitjoshii Please resolve the merge conflict and if possible revert the glob on imports. |
Signed-off-by: Akshit Joshi <[email protected]>
c016baa
46288b2
to
c016baa
Compare
@heliocastro, merge conflicts resolved and fixed global import. |
Add a new field size to the clearing request which determines the size of the clearing request based on the number of open releases in the project for which the CR is created.
Size based on the table below :
1- 20 = Very Small
21- 50 = Small
50-75 = Medium
75-150 = Large
150 and above = Very large
The CR size should be dynamic. if release are uploaded after CR creation, it should reflect in the
CR Size
.