-
Notifications
You must be signed in to change notification settings - Fork 356
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
fix: return proper error message when moving a project with a matching names #9795
fix: return proper error message when moving a project with a matching names #9795
Conversation
✅ Deploy Preview for determined-ui ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9795 +/- ##
==========================================
- Coverage 54.07% 54.04% -0.03%
==========================================
Files 1260 1260
Lines 155574 155585 +11
Branches 3503 3503
==========================================
- Hits 84120 84090 -30
- Misses 71308 71349 +41
Partials 146 146
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
the PR title is truncated
silent: false, | ||
type: ErrorType.Server, | ||
}); | ||
if (e instanceof DetError && e.type === ErrorType.Server) { |
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.
only difference here is publicMessage
, so i think we can use ternary operator.
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.
Updated
Ticket
ET-626
Description
Display message for matching name error when moving projects
Test Plan
Create two projects with the same name in separate workspaces. Move one project to the workspace of the other and confirm that the error message is
Project with name '{project_name}' already exists in target workspace
Checklist
docs/release-notes/
See Release Note for details.