Skip to content

Backport of #9225 to stable6 - #11217

Merged
blizzz merged 11 commits into
stable6from
backport-9225-stable6
Oct 20, 2014
Merged

blizzz merged 11 commits into
stable6from
backport-9225-stable6

Conversation

@blizzz

@blizzz blizzz commented Sep 22, 2014

Copy link
Copy Markdown
Contributor

@voxsim can you help finish the port? The code itself works, but the tests do not run. Could you have a look?

fix in displayNamesInGroup: when specified limit N, we did complex search only in the first N users

change logic in displayNamesInGroup and add some unit tests

add more logic in displayNamesInGroup for big user bases

1. remove sizeof($filteredUsers) > 0 as condition
2. use count instead of sizeof. Latter is an alias to first one, practically we stick to count everywhere. Having it consistent helps with readability.
3. move whitespace so we have $groupUsers[] = $filteredUser; instead of $groupUsers []= $filteredUser;

Conflicts:
	tests/lib/group/manager.php
@blizzz blizzz changed the title Backport of #9225 Backport of #9225 to stable6 Sep 22, 2014
@ghost

ghost commented Sep 22, 2014

Copy link
Copy Markdown

💣 Test FAILed. 💣
Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser/7504/

@voxsim

voxsim commented Sep 24, 2014

Copy link
Copy Markdown

@blizzz, I don't know how to push properly my commits here btw my commits are here: https://github.com/voxsim/core/commits/backport-9225-stable6.
I cherry-picked some commits from the master branch and I fix two wrong lines from the rebase patch.

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@owncloud-bot retest this please

@ghost

ghost commented Sep 25, 2014

Copy link
Copy Markdown

💣 Test FAILed. 💣
Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser/7575/

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@voxsim

voxsim commented Sep 26, 2014

Copy link
Copy Markdown

Yeah i know, i can't push my commits here as i said above..

@voxsim

voxsim commented Sep 29, 2014

Copy link
Copy Markdown

@blizzz Is it possible to have any news?

@ghost

ghost commented Oct 6, 2014

Copy link
Copy Markdown

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

@PVince81

PVince81 commented Oct 9, 2014

Copy link
Copy Markdown
Contributor

@voxsim maybe send your changes as a pull request, from your new branch.
The alternative is to sign the contributor agreement and get push access to the core repo, which will make you able to push to this branch. (https://github.com/owncloud/core/blob/master/CONTRIBUTING.md#contributing-to-source-code)

@PVince81

PVince81 commented Oct 9, 2014

Copy link
Copy Markdown
Contributor

Is that fix the backport of the other PRs to stable6 ? (I'm a bit confused with all those different changes that are aimed to fix a single thing)

@PVince81

PVince81 commented Oct 9, 2014

Copy link
Copy Markdown
Contributor

Ok got it, it's the backport of #9225

@voxsim

voxsim commented Oct 9, 2014

Copy link
Copy Markdown

@PVince81 I only cherry-picked the right commits to backport everything without problems from stable7 to stable6. Btw i'll sign the agreement. If is it possible check if my backport works as expected.

@blizzz

blizzz commented Oct 16, 2014

Copy link
Copy Markdown
Contributor Author

I merged @voxsim 's branch herein.

@ghost

ghost commented Oct 16, 2014

Copy link
Copy Markdown

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

Build result: FAILURE

GitHub pull request #11217 of commit 4e6a4e5 automatically merged.Building remotely on vm-slave-02 (SLAVE) in workspace /var/jenkins/workspace/pull-request-analyser-ng-simple@35 > git rev-parse --is-inside-work-tree # timeout=10Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/owncloud/core.git # timeout=10Fetching upstream changes from https://github.com/owncloud/core.git > git --version # timeout=10 > git fetch --tags --progress https://github.com/owncloud/core.git +refs/pull/:refs/remotes/origin/pr/ > git rev-parse origin/pr/11217/merge^{commit} # timeout=10Checking out Revision 612c356de994b2d2899fc7641ba5910a288dac4b (detached) > git config core.sparsecheckout # timeout=10 > git checkout -f 612c356de994b2d2899fc7641ba5910a288dac4b > git rev-list 294eda2f1275f481ba326f09acca83f4e052a987 # timeout=10 > 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 » vm-slave-02Configuration pull-request-analyser-ng-simple » vm-slave-02 is still in the queue: Waiting for next available executor on vm-slave-02pull-request-analyser-ng-simple » vm-slave-02 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 8 second
💣 Test FAILed. 💣

@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: 23 new issues, 15 updated code elements

@PVince81

Copy link
Copy Markdown
Contributor

@owncloud-bot retest this please

@ghost

ghost commented Oct 16, 2014

Copy link
Copy Markdown

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

Build result: FAILURE

GitHub pull request #11217 of commit 4e6a4e5 automatically merged.Building remotely on vm-slave-02 (SLAVE) in workspace /var/jenkins/workspace/pull-request-analyser-ng-simple@12 > git rev-parse --is-inside-work-tree # timeout=10Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/owncloud/core.git # timeout=10Fetching upstream changes from https://github.com/owncloud/core.git > git --version # timeout=10 > git fetch --tags --progress https://github.com/owncloud/core.git +refs/pull/:refs/remotes/origin/pr/ > git rev-parse origin/pr/11217/merge^{commit} # timeout=10Checking out Revision 612c356de994b2d2899fc7641ba5910a288dac4b (detached) > git config core.sparsecheckout # timeout=10 > git checkout -f 612c356de994b2d2899fc7641ba5910a288dac4b > git rev-list fdd52d3e9a3cb630a802919fdc3d4da2e8f2069f # timeout=10 > 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 » vm-slave-02Configuration pull-request-analyser-ng-simple » vm-slave-02 is still in the queue: Waiting for next available executor on vm-slave-02pull-request-analyser-ng-simple » vm-slave-02 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 5 minutes
💣 Test FAILed. 💣

@blizzz

blizzz commented Oct 17, 2014

Copy link
Copy Markdown
Contributor Author

@owncloud-bot retest this please

@ghost

ghost commented Oct 17, 2014

Copy link
Copy Markdown

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

Build result: FAILURE

GitHub pull request #11217 of commit 4e6a4e5 automatically merged.Building remotely on vm-slave-02 (SLAVE) in workspace /var/jenkins/workspace/pull-request-analyser-ng-simple@7 > git rev-parse --is-inside-work-tree # timeout=10Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/owncloud/core.git # timeout=10Fetching upstream changes from https://github.com/owncloud/core.git > git --version # timeout=10 > git fetch --tags --progress https://github.com/owncloud/core.git +refs/pull/:refs/remotes/origin/pr/ > git rev-parse origin/pr/11217/merge^{commit} # timeout=10Checking out Revision 612c356de994b2d2899fc7641ba5910a288dac4b (detached) > git config core.sparsecheckout # timeout=10 > git checkout -f 612c356de994b2d2899fc7641ba5910a288dac4b > git rev-list 1358fd09fb80a3f38fb8f13eff0665bb7cc7fc3a # timeout=10 > 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 » vm-slave-02Configuration pull-request-analyser-ng-simple » vm-slave-02 is still in the queue: Waiting for next available executor on vm-slave-02pull-request-analyser-ng-simple » vm-slave-02 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 3 second
💣 Test FAILed. 💣

@LukasReschke

Copy link
Copy Markdown
Contributor

Jenkins is failing because there are no js unit test results

🚀 Test PASSed. 🚀

@blizzz

blizzz commented Oct 17, 2014

Copy link
Copy Markdown
Contributor Author

No, the original change is overwritten by the picks @voxsim

Therefore, manual test show the same behaviour as before.

never mind, pebcak

@blizzz

blizzz commented Oct 17, 2014

Copy link
Copy Markdown
Contributor Author

splendid 👍

One more?

@blizzz

blizzz commented Oct 17, 2014

Copy link
Copy Markdown
Contributor Author

@icewind1991 maybe?

@blizzz

blizzz commented Oct 17, 2014

Copy link
Copy Markdown
Contributor Author

@PVince81

Copy link
Copy Markdown
Contributor

Works as expected.

@PVince81

Copy link
Copy Markdown
Contributor

Looks good 👍

blizzz added a commit that referenced this pull request Oct 20, 2014
@blizzz
blizzz merged commit 6fc04c2 into stable6 Oct 20, 2014
@blizzz
blizzz deleted the backport-9225-stable6 branch October 20, 2014 09:42
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 15, 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.

9 participants