Update deps, general cleanup, improve roles UI, add role visibility.#389
Update deps, general cleanup, improve roles UI, add role visibility.#389jnms-me wants to merge 49 commits into
Conversation
Co-authored-by: nokoe <nokoe@mailbox.org>
Co-authored-by: nokoe <nokoe@mailbox.org>
Co-authored-by: nokoe <nokoe@mailbox.org>
Co-authored-by: nokoe <nokoe@mailbox.org>
Co-authored-by: nokoe <nokoe@mailbox.org>
* .editorconfig: Set ‘charset’, ‘end_of_line’, ‘insert_final_newline’, ‘trim_trailing_whitespace’.
…indicating source of the args.
…` to `clients_assigned_roles`.
316adda to
e4f3250
Compare
…nd `roles_limited_to_clients`.
8fc59c1 to
c557183
Compare
xerbalind
left a comment
There was a problem hiding this comment.
Nice addition, looks great. The workflow fails now due to the rust toolchain update.
Next time, try to keep the PR focused on one feature/fix imo. It was now hard to distinguish between auto formatted templates or rust code and manual changes.
What update? I only pinned the version in 58cf5cb. Or is the rust-toolchain action not respecting that?
GitHub does not support dependent PRs unfortunately. Otherwise I would have tried to.
I did take special care to put all style changes in separate commits, all manual code changes are in |
…`/`ClientAssignedRole` to match table name.
Fixes #388
TODO:
roles.client_idinto visibility:NULL=>globalNOT NULL=>limited, add(role_id, client_id)toroles_limited_to_clientsrole.client_idwith visibility.dfcacaa tools(guix): Add
manifest.scm.58cf5cb deps: Pin rust toolchain version.
775ae6f deps: Run
cargo update.266d348 deps: Run
cargo upgrade.cbccd14 deps(cargo): Update askama to 0.15.6.
313b008 deps(cargo): Complete the migration to askama 0.15.
8cbcfa7 lint: Fix rustc warnings.
ffbb39c style: Run
cargo fmt.b1aba1a feat: Add client column to the roles overview page.
579596b lint: Use
$cratein macros.a70e21a style: Organize imports.
9e11fee build: Make package.json a private module.
74b3a33 style(templates): Use uniform spacing for inline rust code.
d859777 style(editorconfig): Set html tab width to 2.
f32f356 style(editorconfig): Set charset and whitespace control flags.
f8caa77 lint(templates): Reformat and clean up html templates.
3cd3b17 refactor(templates): Replace match with if-let for Result types.
6320611 fix(ui): Correct typos in role page.
5c7e849 style(templates/roles): Use multilines for long input tags.
4402769 feat(frontend): Add editable description to the
show_rolepage.92c9fca fix: Set content-type to html for error pages.
dab468a tools(hooks): Remove preamble intended for
pre-pushfrompre-commit.416f704 feat(backend): Implement
role_controller::update_descriptionroute.55fa45a tools(hooks): Add optional
cargo sort-derivestopre-commithook.5d54687 style: Sort derives.
3ea25ed style: Use consistent order for route function args and add comments indicating source of the args.
f546b59 style: Order routes in
lib.rsin their function declaration order.b5745cb chore(gitignore): Add
.diesel_lock.9530567 fix(migrations): Fix diesel
schema.rsauto-generation, update docs.5397bf3 db: Rename
users_rolestousers_assigned_rolesandclients_rolestoclients_assigned_roles.723b492 db: Add
visibilityfield to roles;368365b db: Add
roles_limited_to_clientstable.ba8f62b feat(frontend): Add editable visibility to the
show_rolepage.5a9cba8 feat(frontend): Use drop-downs for client/user selection on the
show_rolepage.2f52d81 feat(backend): Implement
role_controller::update_visibilityroute.794927d style: Move
roles_controller::delete_roleto bottom of source file.3ffcc15 feat(frontend): Improve error/success messages returned by
roles_controller.6bacccd feat(backend): Implement
roles_controller::add_limited_to_clientroute.a28afee feat(backend): Implement
roles_controller::delete_limited_to_clientroute.5ef391d feat(frontend): List “limited to” clients on
show_rolepage.4946234 refactor(frontend): Use for-else for placeholders on
show_rolepage.de08d6c db: Fix down.sql of some old migrations.
3336a94 db: Remove
client_idfromroles, migrating data tovisibilityandroles_limited_to_clients.a79163d tests: Fix tests.
5c97e8f feat(backend): Implement
/.well-known/openid-configurationroute.c557183 dev(test_client): Improve python test_client.
dff5035 chore(models): Remove commented-out code in
user.rs.a1791a7 refactor(models): Rename
UserRole/ClientRoletoUserAssignedRole/ClientAssignedRoleto match table name.