eclipse-sw360 / sw360

SW360 project
https://www.eclipse.org/sw360/
Other
119 stars 98 forks source link

feat(rest): Add endpoint to handle updation of clearing requests. #2480

Open sameed20 opened 4 months ago

sameed20 commented 4 months ago

Description

This endpoint is to update a clearing request using id. cr_endpoint

Closes: #2464 Closes: #2523

nikkuma7 commented 3 months ago

Test Successful.

image

akshitjoshii commented 1 month ago

Test successful after rebasing it latest main. image

amritkv commented 1 month ago

Hi @sameed20 & @akshitjoshii !

The update CR is accepting only preferredClearingDate in the body. But as per UI is should accept agreedClearingDate. And moreover on update a CR with preferredClearingDate, the db is not reflecting the changes. Can you please cross check this issue ?

UI Screen :

image

Postman API Response :

image

DB is not reflecting the changes in preferredClearingDate :

image

amritkv commented 1 month ago

preferredClearingDate

Hi @sameed20 ! Now It is accepting the agreedClearingDate. But, still the preferredClearingDate is not reflecting in DB although the api response to update the DB with preferredClearingDate is 200 OK.

sameed20 commented 1 month ago

preferredClearingDate

Hi @sameed20 ! Now It is accepting the agreedClearingDate. But, still the preferredClearingDate is not reflecting in DB although the api response to update the DB with preferredClearingDate is 200 OK.

Hi @amritkv As we discussed previously that the value of preferredClearingDate cannot be set less than it's current value and can only be updated by the user who has created that CR.