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 config flag to keep empty groups #911

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

marcojarjour
Copy link

@marcojarjour marcojarjour commented Nov 27, 2024

  • Add config flag to keep empty groups

Ref: #833

@marcojarjour marcojarjour changed the title Add config flag to keep empty groups Draft: Add config flag to keep empty groups Nov 27, 2024
Signed-off-by: Marco Jarjour <77099126+marcojarjour@users.noreply.github.com>
@marcojarjour marcojarjour changed the title Draft: Add config flag to keep empty groups Add config flag to keep empty groups Nov 27, 2024
Copy link
Member

@blizzz blizzz left a comment

Choose a reason for hiding this comment

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

Hey @marcojarjour,

thank you for this contribution!

Generally this is an improvement we surely can have.

I'd like to ask you to switch the config away from config.php and turn it into an app-config via $this->config->getAppValue().

One word on whether to have this setting IdP-dependent or as a general flag, like you implemented it. The first one allows more fine-grained control, but I am doubtful this is necessary. So going with the global approach is fine.

You may consider adding a global configuration knob for this as well, but it would regard it optional for acceptance. It's ok to have it as a hidden flag in the beginning.

In the ideal case, equip this with an integration test. While preferred, I would take it also without one since the change is simple and not dangerous. It's just that code may change over time and having one makes it more robust.

@blizzz
Copy link
Member

blizzz commented Dec 3, 2024

P.S.: and please sign your commit to let the DCO test pass, cf. https://github.com/nextcloud/user_saml/pull/911/checks?check_run_id=33591334717

Copy link

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🏗️ In progress
Development

Successfully merging this pull request may close these issues.

2 participants