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: post global events even when filtering by env #4672

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

nunogois
Copy link
Member

https://linear.app/unleash/issue/2-1276/deal-with-events-without-an-environment

This makes it so that global events (events not tied to a specific environment) are always received, no matter the configured environment filter.

It also includes a respective test and small sentence on the UI explaining the behavior.

image

@vercel
Copy link

vercel bot commented Sep 12, 2023

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

Name Status Preview Comments Updated (UTC)
unleash-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 12, 2023 3:16pm
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview Sep 12, 2023 3:16pm

Copy link
Contributor

@gastonfournier gastonfournier left a comment

Choose a reason for hiding this comment

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

Looks fine! Great with the test!

@nunogois nunogois merged commit 4de8ea2 into main Sep 13, 2023
19 checks passed
@nunogois nunogois deleted the fix-addon-global-events-no-env-filter branch September 13, 2023 07:22
nunogois added a commit that referenced this pull request Sep 14, 2023
https://linear.app/unleash/issue/2-1392/fix-flaky-unhandled-events

- Reverts part of #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](https://docs.getunleash.io/reference/environments#addons);
- Adds support for events without a specific project, including a test,
similar to #4672
 - Misc cleanups;


![image](https://github.com/Unleash/unleash/assets/14320932/3fcd085c-a60f-42f6-9739-b600db7a7cee)
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.

None yet

2 participants