Skip to content

Add options to create/remove groups via occ - #10334

Merged
denismosolov merged 1 commit into
nextcloud:masterfrom
denismosolov:group-add
Aug 24, 2018
Merged

Add options to create/remove groups via occ#10334
denismosolov merged 1 commit into
nextcloud:masterfrom
denismosolov:group-add

Conversation

@denismosolov

@denismosolovdenismosolov commented Jul 22, 2018

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Member

Nice stuff!

rullzer
rullzer previously requested changes Jul 24, 2018

@rullzerrullzer left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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);

Comment threadcore/Command/Group/Add.php Outdated
return 1;
} else {
$this->groupManager->createGroup($groupName);
$group = $this->groupManager->get($groupName);

Copy link
Copy Markdown
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 MorrisJobkeJuly 24, 2018 12:07
@denismosolovdenismosolov changed the title [WIP] Add option to create groups via occAdd option to create groups via occJul 24, 2018
@denismosolov
denismosolovforce-pushed the group-add branch 3 times, most recently from eb6bb4e to 2cb8f22CompareJuly 26, 2018 20:33
@denismosolovdenismosolov changed the title Add option to create groups via occAdd options to create/remove groups via occJul 26, 2018
@denismosolovdenismosolov 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>

@ChristophWurstChristophWurst left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
Member

Tested and works rocket

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

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

@ChristophWurstChristophWurst added this to the Nextcloud 15 milestone Aug 24, 2018
@ChristophWurst

Copy link
Copy Markdown
Member

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

@denismosolov

Copy link
Copy Markdown
ContributorAuthor

Thanks guys!

@denismosolov
denismosolov merged commit a0b84bc into nextcloud:masterAug 24, 2018
@ChristophWurst

Copy link
Copy Markdown
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
Copy Markdown
Member

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

@MorrisJobke

Copy link
Copy Markdown
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
Copy Markdown
Member

For this one it's fine.

@denismosolov

Copy link
Copy Markdown
ContributorAuthor

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.

@rullzerrullzer mentioned this pull request Aug 24, 2018
3 tasks
@MorrisJobkeMorrisJobke mentioned this pull request Aug 24, 2018
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsenhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@denismosolov@rullzer@ChristophWurst@MorrisJobke