Skip to content
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

CHE-4670: make copy file operation more informative #4926

Merged
merged 1 commit into from
Apr 26, 2017
Merged

CHE-4670: make copy file operation more informative #4926

merged 1 commit into from
Apr 26, 2017

Conversation

svor
Copy link
Contributor

@svor svor commented Apr 26, 2017

What does this PR do?

Makes copy file operation more informative.
If a file with its name already exists the window will be shown:
selection_003

What issues does this PR fix or reference?

#4670

Changelog

Make copy file operation more informative

@svor svor requested review from vzhukovs and vparfonov April 26, 2017 13:31
@svor svor self-assigned this Apr 26, 2017
@svor svor added this to the 5.10 milestone Apr 26, 2017
@@ -544,7 +544,9 @@ private NewProjectConfigDto asDto(MutableProjectConfig config) {
checkArgument(!source.getLocation().isRoot(), "Workspace root is not allowed to be copied");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

translate this statement with using return promises.reject(...)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this class we have many validations like this:
checkArgument(expression, errorMessage)
So, I think we should change many of them but not in this issue.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then ok

@svor svor merged commit 929c431 into master Apr 26, 2017
@svor svor deleted the CHE-4670 branch April 26, 2017 14:01
@codenvy-ci
Copy link

@skabashnyuk skabashnyuk modified the milestones: 5.10, 5.10.0 Apr 28, 2017
@slemeur slemeur added the kind/enhancement A feature request - must adhere to the feature request template. label May 25, 2017
@slemeur
Copy link
Contributor

slemeur commented May 25, 2017

@vparfonov For this kind of PR, you need to notify PM. and request approval
The title of the popup is not appropriate: it's not an error.
It's not "cannot", as we can overwrite.

Could we change the messages to:

  • Title: "File already exists. Do you want to replace it?"
  • Message: "A file with the same name already exists in the destination folder. Do you want to replace it?"
  • Actions: "Rename" "Cancel" "Replace"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants