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
app.action listener should accept block_id-only constraints for bolt-js feature parity #988
Comments
Hi @darkfoxprime, thanks for taking the time to share this feedback! Indeed, the document should clearly mention this. We will improve it later on. Since a block_actions event can occur per a block element w/ action_id, thie is by design. Thus, please set a unique action_id for each interactive block element in your blocks. |
The requirement for a "unique" |
For this particular scenario, we currently recommend appending a prefix to the auto-generated action_id string values. Then pass a regexp that matches the prefix to an If we receive the same request more in the future (actually this is the first time to learn this need for us), we may consider enhancing the dictionary constraint to support only having block_id. However, I have to say that it's not our team's primary focus for us at this moment. It'd appreciated if you could understand this. |
In that case, please fix the documentation so that it clearly states that the |
Hi @darkfoxprime, I am so sorry that I was wrong here. The document is in alignment with bolt-js, and the behavior of bolt-js is like you expect. Therefore, I must retract my above statement. We will improve bolt-python's behavior to be consistent with bolt-js. Though I'm presently occupied with a different task, I'm confident that I can make a new patch release including the fix for this issue within the next few business days. |
action_id
even though the documentation says it's not required…traints for bolt-js feature parity
(Filling out the following details about bugs will help us solve your issue sooner.)
Reproducible in:
The
slack_bolt
versionPython runtime version
OS info
(
sw_vers
is not valid in RHEL-related OSes)Steps to reproduce:
Expected result:
Per the documentation...
Therefore, I expected to have an action handler that responded to any action from a block with id
response
.Actual result:
Requirements
Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.
The text was updated successfully, but these errors were encountered: