Rework admin commands #977

Open
tezlm wants to merge 11 commits from better-admin-commands into next
tezlm commented 2023-10-05 06:38:12 +00:00 (Migrated from gitlab.com)

This changes admin commands a bit. Notably, it

  • moves commands into subcommands (note: instead of help listing every command,
  • adds some new commands for managing room aliases and the room directory
  • adds pagination to room list (formerly list-rooms) as well as putting it output in html tables

I'm relatively new to rust/conduit so the code quality might be dubious, and there are TODO comments for things I'm not sure about or are ripe for bikeshedding (ie. rooms list or room list?)

image


  • I ran cargo fmt and cargo test
  • I agree to release my code and all other changes of this MR under the Apache-2.0 license
This changes admin commands a bit. Notably, it - moves commands into subcommands (note: instead of `help` listing every command, - adds some new commands for managing room aliases and the room directory - adds pagination to `room list` (formerly `list-rooms`) as well as putting it output in html tables I'm relatively new to rust/conduit so the code quality might be dubious, and there are TODO comments for things I'm not sure about or are ripe for bikeshedding (ie. `rooms list` or `room list`?) ![image](/uploads/964f2c4f305322dc398615cbdfd86444/image.png) ----------------------------------------------------------------------------- - [x] I ran `cargo fmt` and `cargo test` - [x] I agree to release my code and all other changes of this MR under the Apache-2.0 license
tezlm commented 2023-10-14 13:47:19 +00:00 (Migrated from gitlab.com)

added 1 commit

Compare with previous version

added 1 commit <ul><li>816bba25 - Make commands plural</li></ul> [Compare with previous version](/famedly/conduit/-/merge_requests/552/diffs?diff_id=815882620&start_sha=f77e26c525650468d9475a97d4b8fb3fcedb0815)
tezlm commented 2023-10-14 13:47:45 +00:00 (Migrated from gitlab.com)

marked this merge request as ready

marked this merge request as **ready**
tezlm commented 2023-10-14 13:49:22 +00:00 (Migrated from gitlab.com)

It's marked as ready, but there's still probably more that could be cleaned up.

It's marked as ready, but there's still probably more that could be cleaned up.
tezlm commented 2023-10-14 14:13:32 +00:00 (Migrated from gitlab.com)

added 1 commit

  • 046acc37 - split out room info into its own function

Compare with previous version

added 1 commit <ul><li>046acc37 - split out room info into its own function</li></ul> [Compare with previous version](/famedly/conduit/-/merge_requests/552/diffs?diff_id=815885787&start_sha=816bba25cfec7e10760fe7c16fdbabef585c1244)
This pull request is broken due to missing fork information.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin better-admin-commands:better-admin-commands
git checkout better-admin-commands

Merge

Merge the changes and update on Forgejo.
git checkout next
git merge --no-ff better-admin-commands
git checkout next
git merge --ff-only better-admin-commands
git checkout better-admin-commands
git rebase next
git checkout next
git merge --no-ff better-admin-commands
git checkout next
git merge --squash better-admin-commands
git checkout next
git merge --ff-only better-admin-commands
git checkout next
git merge better-admin-commands
git push origin next
Sign in to join this conversation.
No reviewers
No labels
Android
CS::needs customer feedback
CS::needs follow up
CS::needs on prem installation
CS::waiting
Chrome
Design:: Ready
Design:: in progress
Design::UX
E2EE
Edge
Firefox
GDPR
Iteration 13 IM
Linux
MacOS
Need::Discussion
Need::Steps to reproduce
Need::Upstream fix
Needs:: Planning
Needs::Dev-Team
Needs::More information
Needs::Priority
Needs::Product
Needs::Refinement
Needs::Severity
Priority::1-Critical
Priority::2-Max
Priority::3-Impending
Priority::4-High
Priority::5-Medium
Priority::6-Low
Priority::7-None
Progress::Backlog
Progress::Review
Progress::Started
Progress::Testing
Progress::Triage
Progress::Waiting
Reporter::Sentry
Safari
Target::Community
Target::Customer
Target::Internal
Target::PoC
Target::Security
Team:Customer-Success
Team:Design
Team:Infrastructure
Team:Instant-Messaging
Team:Product
Team:Workflows
Type::Bug
Type::Design
Type::Documentation
Type::Feature
Type::Improvement
Type::Support
Type::Tests
Windows
blocked
blocked-by-spec
cla-signed
conduit
contribution::advanced
contribution::easy
contribution::help needed
from::review
iOS
p::ti-tenant
performance
product::triage
proposal
refactor
release-blocker
s: dart_openapi_codegen
s::Famedly-Patient
s::Org-Directory
s::Passport-Generator
s::Requeuest
s:CRM
s:Famedly-App
s:Famedly-Web
s:Fhiroxide
s:Fhiroxide-cli
s:Fhiroxide-client
s:Fhirs
s:Hedwig
s:LISA
s:Matrix-Dart-SDK
s:Role-Manager
s:Synapse
s:User-Directory
s:WFS-Matrix
s:Workflow Engine
s:dtls
s:famedly-error
s:fcm-shared-isolate
s:matrix-api-lite
s:multiple-tab-detector
s:native-imaging
severity::1
severity::2
severity::3
severity::4
technical-debt
voip
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Matthias/conduit#977
No description provided.