Skip to content
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

fix: use postmessage in slack app addon #4688

Merged
merged 3 commits into from
Sep 14, 2023
Merged

Conversation

nunogois
Copy link
Member

@nunogois nunogois commented Sep 13, 2023

https://linear.app/unleash/issue/2-1392/fix-flaky-unhandled-events

  • Reverts part of fix: Change slackapp to using scheduleMessage #4490 and uses postMessage instead. This prevents an error where scheduling the message was flaky and some events ended up not being handled at all (see screenshot below). As a bonus, this simplifies our code and prevents having a delay. It seems like this method still works with the channel name instead of needing an id, which was the main motivation towards the changes in the aforementioned PR;
  • Removes FEATURE_UPDATED from the event options for the Slack App addon, as this event is deprecated;
  • Adds support for events without a specific project, including a test, similar to fix: post global events even when filtering by env #4672
  • Misc cleanups;

image

@vercel
Copy link

vercel bot commented Sep 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Sep 13, 2023 3:15pm
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Visit Preview Sep 13, 2023 3:15pm

Copy link
Member

@chriswk chriswk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. I could not find this method which supported the channel argument when I did this. 100% support the change.

@nunogois nunogois merged commit ba416e1 into main Sep 14, 2023
7 checks passed
@nunogois nunogois deleted the fix-slack-use-postmessage branch September 14, 2023 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants