Fix cli mode of edit-db-privs #71

Closed
opened 2024-08-19 02:33:03 +02:00 by oysteikt · 2 comments
Owner

In the current implementation of edit-db-privs with the -p flag, the user would need to provide all privileges for all users on all databases. The intended effect is to modify the privileges which have matching users and databases, as well as add any new db-user pairs, but the resulting diff would remove any existing privileges that the user forgot to include in their -p flags.

However, if we make it so that the -p flag only modifies/adds new stuff, it would make it impossible to remove privileges. Maybe we should think of something new?

In the current implementation of `edit-db-privs` with the `-p` flag, the user would need to provide all privileges for all users on all databases. The intended effect is to modify the privileges which have matching users and databases, as well as add any new db-user pairs, but the resulting diff would remove any existing privileges that the user forgot to include in their `-p` flags. However, if we make it so that the `-p` flag only modifies/adds new stuff, it would make it impossible to remove privileges. Maybe we should think of something new?
oysteikt added the bugquestion labels 2024-08-19 02:33:03 +02:00
Author
Owner

chmod does something fundamentally similar, but with less variables at play. Could we take inspiration from here?

`chmod` does something fundamentally similar, but with less variables at play. Could we take inspiration from here?
oysteikt started working 2025-11-25 11:21:52 +01:00
Author
Owner

Fixed in 03a761a0ff

Fixed in 03a761a0ff55c270db60444ad7194aaa711f4220
oysteikt worked for 11 seconds 2025-11-25 11:22:03 +01:00
oysteikt added this to the Initial release milestone 2025-11-25 11:22:11 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Total Time Spent: 11 seconds
oysteikt
11 seconds
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Projects/muscl#71