Skip to content

Fixes issues when renaming favorite file - #13272

Merged
nickvergessen merged 2 commits into
masterfrom
fav-renamekeepfav
Jan 12, 2015
Merged

nickvergessen merged 2 commits into
masterfrom
fav-renamekeepfav

Conversation

@PVince81

Copy link
Copy Markdown
Contributor

Fixes #13215 (star disappears after rename)
Fixes #12944 (cannot rename file twice in favorite view)

Please review @icewind1991 @MorrisJobke @LukasReschke @nickvergessen

@PVince81

Copy link
Copy Markdown
Contributor Author

Note: I know this is not the most elegant way to do it. In the future that "rename()" function should be moved to the ApiController or even removed completely and have the files app use WebDAV.
That would be out of scope for a bugfix.

@nickvergessen

Copy link
Copy Markdown
Contributor

Can this have a test?

@PVince81

Copy link
Copy Markdown
Contributor Author
  • add unit test

@dttpy

dttpy commented Jan 12, 2015

Copy link
Copy Markdown

👍 tested, and works, but find another bug, see #13283

@PVince81

Copy link
Copy Markdown
Contributor Author

@dttpy can you update the branch and test again ?

Fixes #13283

@ghost

ghost commented Jan 12, 2015

Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/6462/

Build result: FAILURE

[...truncated 16 lines...]Fetching upstream changes from https://github.com/owncloud/core.gitusing GIT_SSH to set credentials using .gitcredentials to set credentials > git config --local credential.helper store --file=/tmp/git1159476639888587759.credentials # timeout=10 > git -c core.askpass=true fetch --tags --progress https://github.com/owncloud/core.git +refs/pull/:refs/remotes/origin/pr/ > git config --local --remove-section credential # timeout=10 > git rev-parse origin/pr/13272/merge^{commit} # timeout=10 > git branch -a --contains 0d2e846de260b32bf5ac1a61be131d5b7bac0d70 # timeout=10 > git rev-parse remotes/origin/pr/13272/merge^{commit} # timeout=10Checking out Revision 0d2e846de260b32bf5ac1a61be131d5b7bac0d70 (origin/pr/13272/merge) > git config core.sparsecheckout # timeout=10 > git checkout -f 0d2e846de260b32bf5ac1a61be131d5b7bac0d70First time build. Skipping changelog. > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule update --init --recursiveTriggering pull-request-analyser-ng-simple » SLAVEpull-request-analyser-ng-simple » SLAVE completed with result FAILUREStarted calculate disk usage of buildFinished Calculation of disk usage of build in 0 secondsStarted calculate disk usage of workspaceFinished Calculation of disk usage of workspace in 1 second
💣 Test FAILed. 💣

@MorrisJobke

Copy link
Copy Markdown
Contributor

@owncloud-bot retest this please

@MorrisJobke

Copy link
Copy Markdown
Contributor

Works 👍

I tested all 3 scenarios and all work now.

Vincent Petry added 2 commits January 12, 2015 18:14
To make it possible for the web UI to correctly display the tag/favorite
information after a rename, this information is now returned in the
rename response
This fixes an issue when renaming files from a flat list view like
"Favorites" or "Shared with you", in which case the path needs to be
present in the response to make sure the data-path attribute is properly
set in the JS side.
@PVince81

Copy link
Copy Markdown
Contributor Author

Sorry, pushed to the wrong branch. Please ignore.

@nickvergessen I have pushed/squashed unit tests

@ghost

ghost commented Jan 12, 2015

Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/6472/
👍 Test PASSed. 👍

@nickvergessen

Copy link
Copy Markdown
Contributor

👍

nickvergessen added a commit that referenced this pull request Jan 12, 2015
Fixes issues when renaming favorite file
@nickvergessen
nickvergessen merged commit ec70246 into master Jan 12, 2015
@nickvergessen
nickvergessen deleted the fav-renamekeepfav branch January 12, 2015 18:12
@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: 4 new issues, 1 updated code elements

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

star gone after rename a favorite folder Can not rename folder twice in Favorites

5 participants