-
Notifications
You must be signed in to change notification settings - Fork 50
fix(project): Show backend conflict message with modified date when creating duplicate project #1174
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
base: main
Are you sure you want to change the base?
Conversation
Hey @Suhas2109 ! |
1a8d361 to
ab655b9
Compare
|
Hi @amritkv |
40ae777 to
6611ee2
Compare
|
Hi @amritkv |
| MessageService.success(t('Your project is created')) | ||
| router.push(`/projects/detail/${data._links.self.href.split('/').at(-1)}`) | ||
| return | ||
| } if (response.status === StatusCodes.CONFLICT) { |
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.
Hey @Suhas2109 !
Logically it would be great to use if - else if instead of if - if as the branches of these conditions are mutually exclusive
a797aa5 to
f181745
Compare
|
Hey @amritkv |
…reating duplicate project Signed-off-by: suhas-SHS <[email protected]>
f181745 to
61cf4e3
Compare

This PR improves project creation error handling.
When a duplicate project is created, the UI now displays the backend conflict message.
Example:
sw360 project with name 'DuplicateProject' already exists