Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add options to create/remove groups via occ #10334

Merged
merged 1 commit into from
Aug 24, 2018

Conversation

denismosolov
Copy link
Contributor

@denismosolov denismosolov commented Jul 22, 2018

Add options to create and remove groups via command line.
Requested in #8317
Syntax:
occ group:add groupid creates a new group, groupid - the new groups name
occ group:delete groupid removes group, cannot remove the group named 'admin'

@tterranigma , @EpeR1 what do you think?

Signed-off-by: Denis Mosolov denismosolov@gmail.com

@rullzer
Copy link
Member

rullzer commented Jul 24, 2018

Nice stuff!

Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

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

We require you to sign off on your commits.

git commit --amend -s

Should do the trick

Also, could you run:

bash build/autoloaderchecker.sh

To make sure the autoloader is up to date?

@@ -0,0 +1,67 @@
<?php
/**
Copy link
Member

Choose a reason for hiding this comment

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

Could you make the file strict?

declare(strict_types=1);

return 1;
} else {
$this->groupManager->createGroup($groupName);
$group = $this->groupManager->get($groupName);
Copy link
Member

Choose a reason for hiding this comment

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

createGroup already returns the group no need for the get.

@rullzer rullzer requested a review from MorrisJobke July 24, 2018 12:07
@denismosolov denismosolov changed the title [WIP] Add option to create groups via occ Add option to create groups via occ Jul 24, 2018
@denismosolov denismosolov force-pushed the group-add branch 3 times, most recently from eb6bb4e to 2cb8f22 Compare July 26, 2018 20:33
@denismosolov denismosolov changed the title Add option to create groups via occ Add options to create/remove groups via occ Jul 26, 2018
@denismosolov denismosolov added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Aug 2, 2018
Signed-off-by: Denis Mosolov <denismosolov@gmail.com>
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

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

Tested and works 🚀

@ChristophWurst
Copy link
Member

Tested and works rocket

bildschirmfoto von 2018-08-24 10-19-23

(ignore the xdebug warning, this is an issue on my setup)

@ChristophWurst ChristophWurst added this to the Nextcloud 15 milestone Aug 24, 2018
@ChristophWurst
Copy link
Member

Too late to add this to NC14 IMO, so tagging this for 15.

@denismosolov
Copy link
Contributor Author

Thanks guys!

@ChristophWurst
Copy link
Member

denismosolov merged commit a0b84bc into nextcloud:master

#10334 (comment) -> @MorrisJobke @rullzer shall we revert this change? This is a new feature and we're past feature freeze.

@rullzer
Copy link
Member

rullzer commented Aug 24, 2018

I'm fine with having this. Isolated new commands.

@MorrisJobke
Copy link
Member

@denismosolov In the future please wait for the approval for merge by others if it is stated like this in the comments. We are currently shortly before the RC 1 release and want to have this stable.

@MorrisJobke
Copy link
Member

For this one it's fine.

@denismosolov
Copy link
Contributor Author

Sorry for the accident. I didn't know what to do after getting 2 reviews. Just clicked the merge button because UI alowed me to do that.

@rullzer rullzer mentioned this pull request Aug 24, 2018
3 tasks
@MorrisJobke MorrisJobke mentioned this pull request Aug 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants