Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • funkwhale funkwhale
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 409
    • Issues 409
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 18
    • Merge requests 18
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • funkwhalefunkwhale
  • funkwhalefunkwhale
  • Merge requests
  • !954

Server CLI: user management

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Agate requested to merge cli into develop Nov 14, 2019
  • Overview 7
  • Commits 10
  • Pipelines 2
  • Changes 13

it was asked recently via https://monsterpit.net/@multiple_creatures/103134500987250281, and it was due anyway to make automation easier, so I took the morning to work on this.

This makes a new python.manage.py fw command namespace available on the server. I've used click as the CLI library, because it's really easy to use and allow quite complex operations (like having command namespaces or reading option values from env vars). Whitin this namespace, 3 commands are available:

  • python manage.py fw users create: create a user (and not only an admin users, as python manage.py createsuperuser does)
  • python manage.py fw users set: update attributes such as password, permissions, active status or upload quota on one or more users
  • python manage.py fw users rm: remove one or more user accounts

The MR also includes:

  • Tests
  • Documentation

cc @funkwhale/reviewers-python @funkwhale/reviewers-sysadmin @Sporiff (for docs)

Edited Nov 25, 2019 by Agate
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: cli