Repository navigation
Introduce Interaction support to Slacker - #432
Merged
earlduque merged 11 commits intoOct 25, 2024
Merged
Conversation
added: Interaction table added: Payload type to Payload to discern events and Interactivity added: New endpoint to insert Interactions updated: Filters on payload table BRs updated: Updated repo event endpoint to handle Interactions
change: Add interactions path test: Change Deployment repository
added: first interaction handler and path
* feat: introduce interactivity support added: Interaction table added: Payload type to Payload to discern events and Interactivity added: New endpoint to insert Interactions updated: Filters on payload table BRs updated: Updated repo event endpoint to handle Interactions * Add Interactions path for workflow change: Add interactions path test: Change Deployment repository * feat: Migrate the quiz functionality to an Interaction added: first interaction handler and path
earlduque
approved these changes
Oct 25, 2024
earlduque
left a comment
Collaborator
There was a problem hiding this comment.
Github side of things looks fine. i rather just push the xml side live and see what happens!
Collaborator
|
all testing went well. old parsers working, new quiz parser working. great work astrid! |
This was referenced Oct 26, 2024
This was
unlinked from
issues
Oct 26, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
#360 introduced a Quiz parser which incorporated interactivity. Before that, #369 and #387 implemented buttons which by default trigger interactivity. Additionally, existing functionality for a code-snippets related interaction and slash command was introduced, which currently leverages the interactivity URL and throws messages in a specific channel when buttons are used, as per #429.
This PR introduces support for Interactivity in the app as a first-class object alongside parsers. This implements:
Resolves #429
Usage
Interaction is designed to be used with interactive Slack block components. In particular, this implementation looks for a regex match within the action_id that the user interacts with. The first example of this is the Quiz Parser, which sets a standard prefix for its action_id. The Interaction handler includes this prefix and will match these events. Other interactions that don’t match will be disregarded silently, which means no error messages to the user which otherwise occur when the interactivity components is not configured appropriately.
Set up
In order to activate the Interaction functionality, the following steps must occur
On Slack App:
On DPR:
On GitHub:
Remaining activities to do (will document as issues):