Skip to content

Conversation

@filipecabaco
Copy link
Member

What kind of change does this PR introduce?

Sets a default value for slot_name_suffix so we avoid issues during deployments

Plus sets the SynHandler as conflict resolution for :syn on the Application.ex level

@vercel
Copy link

vercel bot commented Oct 23, 2023

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

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
realtime-demo ⬜️ Ignored (Inspect) Visit Preview Oct 23, 2023 11:58am

Sets a default value for slot_name_suffix so we avoid issues during deployments

Plus sets the SynHandler as conflict resolution for :syn on the Application.ex level
@filipecabaco filipecabaco force-pushed the fix/slot-name-suffix-default branch from 8f81a1c to c3ed74b Compare October 23, 2023 10:39
setup do
slot_name_suffix = Application.get_env(:realtime, :slot_name_suffix)

on_exit(fn -> Application.put_env(:realtime, :slot_name_suffix, slot_name_suffix) end)
Copy link
Contributor

Choose a reason for hiding this comment

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

why does it need to put this key on the exit?

Copy link
Member Author

Choose a reason for hiding this comment

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

resetting the env to be equal to what it was in the start since we're changing application setup

Copy link
Contributor

@abc3 abc3 left a comment

Choose a reason for hiding this comment

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

LGTM!

@filipecabaco filipecabaco merged commit bab0992 into main Oct 23, 2023
@filipecabaco filipecabaco deleted the fix/slot-name-suffix-default branch October 23, 2023 12:06
@kiwicopple
Copy link
Member

🎉 This PR is included in version 2.25.8 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants