Conditional roles #6
Labels
No Label
bug
documentation
duplicate
enhancement
feature
good first issue
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: NLL/Heimdallr#6
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Roles that are added to or removed from users based on a certain condition.
Any idea how that should work?
Just listening for specific events to accure and adding roles then?
The bot would listen for events, then check against the database if it matches any criteria to assign or unassign a role.
On the admin side we would need commands for adding and removing criteria and their roles.
What format do you think? Some custom "language" for the rules?
Database-wise, I'd say one row per rule. Perhaps something like this
condition_constraint
will likely be some JSON data or similar?Or we could do it the proper relational way and add another table for constraints :dogehehe:
Could be managed via commands. Could have different sub-commands if we add multiple types of conditions
So sth like an enum of types and constraints as objects?
I could read a bit more about different options. I can even make a graph database if that makes it any easier. 🤔
Yeah, something like that!
I've been considering using SurrealDB :p