-
Notifications
You must be signed in to change notification settings - Fork 61
Never Undo User's Actions #774
Comments
/stop |
You have been unassigned from the bounty @wannacfuture |
/wallet 0x9e4EF4353C928cD3eb473E8f12aeCF58C2089999 |
Updated the wallet address for @wannacfuture successfully! Your new address: |
/start |
Skipping |
/wallet 0x9e4EF4353C928cD3eb473E8f12aeCF58C208ef40 |
Updated the wallet address for @wannacfuture successfully! Your new address: |
/query @wannacfuture |
@wannacfuture's wallet address is 0x9e4EF4353C928cD3eb473E8f12aeCF58C208ef40, multiplier is 1 and access levels are
|
@rndquu @0xcodercrane can you help me figure out the architecture for this? |
I understand neither the original issue nor the proposed solution.
If a user doesn't have the "edit price label" permission or assistive pricing is enabled then why we should not undo the action? Those features were added to prevent malicious intents. |
This was originally inspired by two issues we are working on solving:
The purpose of the current task is to create a generalized solution becuase I anticipate more issues like this down the road as we add new features. |
Hmm... the solution might look like this: maybe the bot will be needed to check the user's actions history when he wants to do something and if he realize he is going to do something which is opposite to the user's action he might be needed to give up. But what I'm thinking is : adding this check feature to all the bot's actions(there will be tons of them) vs making hotfixes about the cases(like above) every time we meet during the progress. Tbh, I'm not too sure about the first method cuz we don't exactly know what to expect. Rfc, @pavlovcik , @rndquu |
The thing is that I believe we need to teach the bot what is the opposite action. How does it know the api call to remove an assignee is the opposite of setting it to @pavlovcik? Perhaps there is some type of regex we can do and ensure that it doesn't try and hit the same restful endpoint twice in a response? |
Maybe we can add that info to config. (manually)
👀👀👀 |
From an architecture perspective we need to handle everything in a single bot runtime instead of chaining together like three separate cold starts to complete a user interaction. After that, we have the ability to implement ideas like what I proposed. I'm not 100% this is the case currently but thats what I am under the impression of based on how it undoes things. |
If some user wants to assign a bounty hunter to an issue then perhaps we should check an "assign user permission" (not implemented). Then if user has that permission then bounty hunter will be assigned to an issue without undoing anything (i.e. permission takes precedence over whatever the bot thinks the right way to do).
Again, if user has a "price label permission" then the bot should allow setting the price label. I want to say that if user has enough permissions to do an action then it should take precedence over the bot's logic. |
We have a list of handlers that invoke the bot from user input. Perhaps there is a neat way to:
Lets figure a design in the comments here and I'll add it to the spec.
Originally posted by @pavlovcik in #685 (comment)
The text was updated successfully, but these errors were encountered: