Skip to content

update script for new server-to-server sharing - #13286

Merged
schiessle merged 1 commit into
masterfrom
sharing_upgrade
Jan 14, 2015
Merged

schiessle merged 1 commit into
masterfrom
sharing_upgrade

Conversation

@schiessle

Copy link
Copy Markdown
Contributor

set accept to 1 (=true) for all server-to-server shares on update, at this point in time all shares are created by the first version of server-to-server sharing and are accepted if they were added to the table.

@schiessle schiessle added this to the 8.0-current milestone Jan 12, 2015
@karlitschek

Copy link
Copy Markdown
Contributor

looks good 👍

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

2015? 🙈

@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/6443/
👍 Test PASSed. 👍

Comment thread apps/files_sharing/tests/migration.php Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

so basically the same share could be added multiple times? Does that make sense?
I'd expect some unique constraint here then (here as in the schema definition - no in this PR)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The mountpoint_hash needs to be unique. That's why I use the counter $i as "hash" to populate the table with some dummy values.

… this point in time all shares are created by the first version of server-to-server sharing and are accepted if they were added to the table
@ghost

ghost commented Jan 13, 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/6618/

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/git419155173840311009.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/13286/merge^{commit} # timeout=10 > git branch -a --contains 490889ab7577c3280efbf1e1b4658d27a120dc1b # timeout=10 > git rev-parse remotes/origin/pr/13286/merge^{commit} # timeout=10Checking out Revision 490889ab7577c3280efbf1e1b4658d27a120dc1b (origin/pr/13286/merge) > git config core.sparsecheckout # timeout=10 > git checkout -f 490889ab7577c3280efbf1e1b4658d27a120dc1bFirst 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 0 seconds
💣 Test FAILed. 💣

@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: 3 new issues, 5 updated code elements

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

inject the DB connection into the Migration object ?

@PVince81

Copy link
Copy Markdown
Contributor

In my test case with master it seemed that accepted was already set on 1.
I guess this PR is for cases where for some reason the value wasn't 1 ?

I'm ok with this 👍

@PVince81

Copy link
Copy Markdown
Contributor

Jenkins PR here: #13339

@LukasReschke

Copy link
Copy Markdown
Contributor

I guess this PR is for cases where for some reason the value wasn't 1 ?

In 7.0 there was no accepted, thus old shares needs to get this applied otherwise they won't appear as accepted. – At least that's what I understand from our code.

@schiessle

Copy link
Copy Markdown
Contributor Author

@LukasReschke yes, that's correct

@schiessle

Copy link
Copy Markdown
Contributor Author

Test finished successfully

schiessle added a commit that referenced this pull request Jan 14, 2015
update script for new server-to-server sharing
@schiessle
schiessle merged commit 9a487f0 into master Jan 14, 2015
@schiessle
schiessle deleted the sharing_upgrade branch January 14, 2015 10:57
@jnfrmarks

Copy link
Copy Markdown

@schiesbn @LukasReschke

Is there an upgrade test case here that needs to be validated?

@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.

8 participants