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

feat(keepEmptyGroups): Add app configuration parameter to keep empty groups #911

Merged
merged 2 commits into from
Feb 26, 2025

Conversation

marcojarjour
Copy link
Contributor

@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
@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.)

@marcojarjour marcojarjour force-pushed the prevent-group-removal branch 2 times, most recently from 5e9ff63 to cf0b448 Compare January 15, 2025 06:49
@marcojarjour marcojarjour changed the title Add config flag to keep empty groups feat(keepEmptyGroups): Add app configuration parameter to keep empty groups Jan 15, 2025
@marcojarjour marcojarjour force-pushed the prevent-group-removal branch from cf0b448 to 13aa718 Compare January 21, 2025 09:05
@marcojarjour
Copy link
Contributor Author

@blizzz sorry for pinging you again, but maybe you missed my comment on the Issue. It would be great if you could review the pull request.

@blizzz
Copy link
Member

blizzz commented Jan 31, 2025

@marcojarjour indeed missed it, thank you for notifying me again!

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.

One suggested change to apply, otherwise good to go!

@blizzz
Copy link
Member

blizzz commented Feb 24, 2025

Um, could you remove the merge branch? If updating, then use "Update with rebase", please, but usually it is not necessary, unless there are conflicts (or known dependencies with recently merged pull requests)

@marcojarjour
Copy link
Contributor Author

Um, could you remove the merge branch? If updating, then use "Update with rebase", please, but usually it is not necessary, unless there are conflicts (or known dependencies with recently merged pull requests)

🤦 oh sorry, i am not really used to GitHub and erroneously did the merge update. Its removed. Sorry for the extra work and thanks for your patience.

@blizzz
Copy link
Member

blizzz commented Feb 26, 2025

Um, could you remove the merge branch? If updating, then use "Update with rebase", please, but usually it is not necessary, unless there are conflicts (or known dependencies with recently merged pull requests)

🤦 oh sorry, i am not really used to GitHub and erroneously did the merge update. Its removed. Sorry for the extra work and thanks for your patience.

No worries ☺️ and thanks for the effort brought in here 🙇

@blizzz blizzz merged commit d629b98 into nextcloud:master Feb 26, 2025
102 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ☑️ Done
Development

Successfully merging this pull request may close these issues.

2 participants