Skip to content

Conversation

@m7913d
Copy link
Contributor

@m7913d m7913d commented May 24, 2021

Signed-off-by: Dries Mys [email protected]

@m7913d
Copy link
Contributor Author

m7913d commented May 25, 2021

@kesselb The failed check (continuous-integration/drone/pr) seems to be unrelated to this commit. Should I do something to continue the PR? Note that my first commit run this check successful and the second commit only fixed the indentation.

@kesselb kesselb added 3. to review Waiting for reviews and removed 2. developing Work in progress labels May 25, 2021
@kesselb
Copy link
Contributor

kesselb commented May 25, 2021

@kesselb The failed check (continuous-integration/drone/pr) seems to be unrelated to this commit. Should I do something to continue the PR? Note that my first commit run this check successful and the second commit only fixed the indentation.

Thanks for your pull request 👍 Please ignore the ci failure.

}
$this->groupManager->createGroup($groupid);
$group = $this->groupManager->createGroup($groupid);
if ($displayname !== '') {
Copy link
Member

Choose a reason for hiding this comment

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

Please also check if not null

Copy link
Member

@blizzz blizzz May 25, 2021

Choose a reason for hiding this comment

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

for null, the parameter list needs to be adjusted. but it might be that null is passed when displayname was not provided by the client - at least i believe to remember, but didn't doublecheck. Integration tests pass, should be ok

Copy link
Member

Choose a reason for hiding this comment

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

I'm just repeating what psalm is saying 😉 🦜

Copy link
Contributor Author

@m7913d m7913d Jun 2, 2021

Choose a reason for hiding this comment

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

@skjnldsv I added a null check and I throw an exception if it is the case. However, this results in a failure of the nodb test (see continuous integration). Shouldn't I throw an exception in this case or is the failing nodb test wrong? It seems to me appropriate that an error message is returned in case the group creation failed.

@blizzz
Copy link
Member

blizzz commented May 25, 2021

@MorrisJobke MorrisJobke removed their request for review May 25, 2021 19:58
@skjnldsv skjnldsv added this to the Nextcloud 22 milestone May 26, 2021
@MorrisJobke MorrisJobke mentioned this pull request May 26, 2021
98 tasks
@blizzz blizzz mentioned this pull request Jun 2, 2021
57 tasks
@m7913d
Copy link
Contributor Author

m7913d commented Jun 2, 2021

I would prefer having integration tests here, extending on https://github.com/nextcloud/server/blob/master/build/integration/features/provisioning-v1.feature#L199-L217

@blizzz I added some test: see my last commit. Do I need to add other test cases?

@blizzz
Copy link
Member

blizzz commented Jun 2, 2021

CI is unhappy

@skjnldsv skjnldsv modified the milestones: Nextcloud 22, Nextcloud 23 Jun 2, 2021
@m7913d
Copy link
Contributor Author

m7913d commented Jun 2, 2021

CI is unhappy

I know, a nodb test is failing, because I throw now an exception in case the group creation failed. This seems appropriate to me to report the failure to the api caller. See my remark to @skjnldsv who requested a null check. What solution do you suggest? Not throwing or changing the failing nodb test?

@m7913d m7913d force-pushed the feature/addGroupDisplayNames branch from 6490308 to e16682a Compare June 5, 2021 20:28
@m7913d
Copy link
Contributor Author

m7913d commented Jun 5, 2021

@blizzz @skjnldsv I corrected the failed test as the test environment did not return a valid group. The acceptance-user test is still failing, but I assume this is unrelated to this PR as after rebasing this feature branch to the latest master branch, another scenario of this test failed with the following reason: "The user disabledUser in the list of users is not shown yet after 100 seconds".

@m7913d m7913d requested a review from skjnldsv June 9, 2021 18:32
@blizzz
Copy link
Member

blizzz commented Jun 9, 2021

I saw it failing somewhere else, too, let me restart nevertheless

@m7913d
Copy link
Contributor Author

m7913d commented Jun 9, 2021

@blizzz Thanks for rerunning the failed check. Now all checks have passed/

@blizzz blizzz requested review from ArtificialOwl and Pytal June 9, 2021 21:51
@Pytal Pytal merged commit a416d50 into nextcloud:master Jun 9, 2021
@welcome
Copy link

welcome bot commented Jun 9, 2021

Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22

@Pytal Pytal added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jun 9, 2021
@MorrisJobke MorrisJobke mentioned this pull request Jun 10, 2021
59 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants