-
Notifications
You must be signed in to change notification settings - Fork 4
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
Customize completed/deleted movement targets #13
Comments
This is another great idea! I definitely need to think on the "lifecycle" idea in a more general way. I really like the idea of configurable targets The idea of just suffixing Maybe there's an idea here also of making the "completed/deleted" stacks not be just named stacks, but be something a little more special. A simpler idea could just be to validate the stack name is not already suffixed with a state name. I could also use some different character and say it's a reserved character in stack names (e.g. a colon) These kind of changes would potentially break people, though. So maybe the idea here is twofold:
|
On an unrelated note, creating another term for the set of related stacks that transitions occur within would be pretty helpful. Calling it a stack seems disingenuous since it is a set of stacks. Possibly call it a database or repository would work better.
You can do a pretty simple regex pattern to match against a list of suffixes and store a list of valid suffixes for each database/repository/set of stacks. Given a user has a Just ensuring that suffixes are alphanumeric (and possibly additional set of supported characters) would then ensure that no shenanigans could occur with regex escaping. IMO, the best implementation would be a set of valid targets for each stack within a repository since then you would have a directed graph validating all transitions. Though, I'm not sure a lot of people would want to configure that. |
On a slightly different track, being able to customize the movement between the stack and the suffixed stacks (eg.
${stack}_completed
,${stack}_deleted
) would be pretty awesome.For example, the
watch-later
stack items could be moved intowatch-later_${rating}
(eg.watch-later_thumbsup
,watch-later_3
, and so on) where the end stack is the rating. These could be anything, so it really empowers the user to use this for anything. You could do a pseudo Kanban system where you move the task through a sequence of stacks without touching the original message. A nice-to-have would be the ability to define the valid targets preemptively. So if its target is not in the predefined set of targets (eg. {1,2,3,4,5}, {thumbsup,thumbsdown}), the command does nothing and protects the user from themselves.The text was updated successfully, but these errors were encountered: