Skip to content

feat: occ user:sync - support abbreviations for backend classes for e… #40640

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

Merged
merged 1 commit into from
Feb 15, 2023

Conversation

DeepDiver1975
Copy link
Member

@DeepDiver1975 DeepDiver1975 commented Feb 15, 2023

…asier usage

Description

It is quite inconvenient to type in the full php class name as argument to this command.
To provide a better UX abbreviations are now possible and act as alias for the php classes

 ➭ php7.4 ./occ help user:sync 
Description:
  Synchronize users from a given backend to the accounts table.

Usage:
  user:sync [options] [--] [<backend-class>]

Arguments:
  backend-class                                        The quoted PHP class name for the backend, eg
                                                       - LDAP:          "OCA\User_LDAP\User_Proxy"
                                                       - Samba:         "OCA\User\SMB"
                                                       - Shibboleth:    "OCA\User_Shibboleth\UserBackend"
                                                       For easier usage of these three cases you can also use 'ldap', 'samba' or 'shibboleth

Motivation and Context

Better UX

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:
  • Changelog item, see TEMPLATE

@update-docs
Copy link

update-docs bot commented Feb 15, 2023

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 7 Code Smells

54.2% 54.2% Coverage
0.0% 0.0% Duplication

@DeepDiver1975 DeepDiver1975 merged commit 5a55283 into master Feb 15, 2023
@delete-merged-branch delete-merged-branch bot deleted the feat/user-sync-easy-mode branch February 15, 2023 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants