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

User and group management CLI #8754

Closed
6 of 10 tasks
leovalais opened this issue Sep 4, 2024 · 3 comments · Fixed by #9734
Closed
6 of 10 tasks

User and group management CLI #8754

leovalais opened this issue Sep 4, 2024 · 3 comments · Fixed by #9734
Assignees
Labels
area:editoast Work on Editoast Service kind:enhancement Improvement of existing features

Comments

@leovalais
Copy link
Contributor

leovalais commented Sep 4, 2024

Part of #8749

Description and goal

Implement a CLI to manage users and roles.

  • editoast subject info SUBJECT
  • editoast subject delete --force SUBJECT
  • editoast group create NAME
  • editoast group rename SUBJECT_ID NAME
  • editoast user list and editoast user list --without-group
  • editoast user add IDENTITY [NAME]
  • editoast group list
  • editoast group include GROUP_SUBJECT_ID [USER_SUBJECT*]
  • editoast group include --interactive # list users with no group, can interactively add to a group or skip
  • editoast group exclude GROUP_SUBJECT_ID [USER_SUBJECT*]

Acceptance criteria

The CLI is available.

@leovalais leovalais added the area:editoast Work on Editoast Service label Sep 4, 2024
@leovalais leovalais mentioned this issue Oct 1, 2024
4 tasks
@leovalais leovalais added the kind:enhancement Improvement of existing features label Oct 22, 2024
@flomonster flomonster self-assigned this Nov 7, 2024
@leovalais
Copy link
Contributor Author

Note: it would be convenient to use something like fzf to handle the interactive part (which gives us multi selection for free btw). There's a crate to wrap its usage: https://crates.io/crates/fzf-wrapped

@flomonster
Copy link
Contributor

Note: it would be convenient to use something like fzf to handle the interactive part (which gives us multi selection for free btw). There's a crate to wrap its usage: https://crates.io/crates/fzf-wrapped

Why not, let's be fancy. @woshilapin Are you akay to add this dependency to editoast (this is probably temporary until we have a proper admin interface).

@woshilapin
Copy link
Contributor

woshilapin commented Nov 18, 2024

Yes, and no. I like the concept of adding a fuzzy searcher, but fzf is not Rust, which means complexity for the compilation and possibly deployment (some lib has to be installed, or some binary has to be available). That said, we have other qualitative options for fuzzy search, which are Rust native: skim and nucleo. From what I know about them, skim has a CLI fully compatible with fzf so I would expect something equivalent. That said, documentation is nonexistent, so it might be hard to use it (and also, no release since a year). nucleo is younger, but is developed for and with the helix editor, and documentation exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:editoast Work on Editoast Service kind:enhancement Improvement of existing features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants