Repository navigation
Fixes issues when renaming favorite file - #13272
Conversation
|
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. |
|
Can this have a test? |
|
|
👍 tested, and works, but find another bug, see #13283 |
|
Refer to this link for build results (access rights to CI server needed): 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. 💣 |
|
@owncloud-bot retest this please |
|
Works 👍 I tested all 3 scenarios and all work now. |
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.
a0d061b to
8cc1303
Compare
|
Sorry, pushed to the wrong branch. Please ignore. @nickvergessen I have pushed/squashed unit tests |
|
Refer to this link for build results (access rights to CI server needed): |
|
👍 |
Fixes issues when renaming favorite file
|
The inspection completed: 4 new issues, 1 updated code elements |
Fixes #13215 (star disappears after rename)
Fixes #12944 (cannot rename file twice in favorite view)
Please review @icewind1991 @MorrisJobke @LukasReschke @nickvergessen