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

Fix and refactor upsert command #860

Merged
merged 3 commits into from
May 8, 2024

Conversation

julien-nc
Copy link
Member

@julien-nc julien-nc commented May 7, 2024

  • Fix unique-uid default value
  • Add 'group-provisioning' option
  • Refactor upsert command to avoid future mistakes
  • Explicitly define default values for boolean provider settings

closes #858

@julien-nc julien-nc added bug Something isn't working enhancement New feature or request labels May 7, 2024
@julien-nc julien-nc requested a review from juliusknorr May 7, 2024 16:01
@julien-nc julien-nc force-pushed the fix/858/fix-and-refactor-upsert-command branch 2 times, most recently from 2c173e4 to 30f8765 Compare May 7, 2024 16:17
@@ -44,6 +44,35 @@ class UpsertProvider extends Base {
/** @var ICrypto */
private $crypto;

private const EXTRA_OPTIONS = [
'unique-uid' => ['shortcut' => null, 'mode' => InputOption::VALUE_OPTIONAL, 'description' => 'Flag if unique user ids shall be used or not. 1 to enable (default), 0 to disable', 'default' => null, 'setting_key' => ProviderService::SETTING_UNIQUE_UID],
Copy link
Member

Choose a reason for hiding this comment

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

Would prefer to add linebreaks to the nested array to make it a bit more readable ;)

Copy link
Member

@juliusknorr juliusknorr left a comment

Choose a reason for hiding this comment

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

Looks good, just a readability nitpick :)

…or upsert command

Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
@julien-nc julien-nc force-pushed the fix/858/fix-and-refactor-upsert-command branch from ab34683 to c6d2948 Compare May 8, 2024 22:27
@julien-nc julien-nc enabled auto-merge May 8, 2024 22:27
@julien-nc julien-nc merged commit 895e789 into main May 8, 2024
38 checks passed
@julien-nc julien-nc deleted the fix/858/fix-and-refactor-upsert-command branch May 8, 2024 22:29
@julien-nc
Copy link
Member Author

Thanks for the review.
Laziness + Vim macros == happiness

@julien-nc julien-nc mentioned this pull request Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Perform "Update Provider" function via occ command
2 participants