-
Notifications
You must be signed in to change notification settings - Fork 526
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
Rename "shout" event to "message:created" #156
Comments
@reichert621 I could take a stab at this? |
sure @kolharsam! just wanted to note -- after looking into this a bit more, we'll want to keep the |
@reichert621 how do you want to keep the support? Both on the back-end and the front-end or how should I proceed if I want to pick this up? :) |
hey @eikooc! as mentioned above, let's make sure we continue supporting so the backend change will probably look something like # just make "shout" an alias for "message:created" for backward compatibility
def handle_in("shout", payload, socket),
do: handle_in("message:created", payload, socket)
def handle_in("message:created", payload, socket) do
# existing logic
end ...or something like that. what do you think? |
@reichert621 that was also what I was thinking. I just didn't know if you wanted the front-end to also be backwards-compatible such that if two installations happened to use the same database but different versions of the front-end, they would both work. |
hmm yeah... didn't think about that edge case 🤔 maybe for now let's just focus on the backend update and make sure both "shout" and "message:created" work the same (this ticket has been a bit of a low priority, so no rush on this btw -- just think it would be nice to do sooner rather than later if possible) |
Deprecate "shout" event for conversation channel in favor of "message:created".
Deprecate "shout" event for conversation channel in favor of "message:created".
Deprecate "shout" event for conversation channel in favor of "message:created".
Deprecate "shout" event for conversation channel in favor of "message:created".
Deprecate "shout" event for conversation channel in favor of "message:created".
Deprecate "shout" event for conversation channel in favor of "message:created".
Deprecate "shout" event for conversation channel in favor of "message:created".
Deprecate "shout" event for conversation channel in favor of "message:created".
Deprecate "shout" event for conversation channel in favor of "message:created".
This name is just the default event used when generating new channels in Phoenix, but let's make our event names a bit more descriptive... we already have
conversation:created
andconversation:updated
events, so let's be consistent and addmessage:created
in place ofshout
.(Note: we'll probably need to keep "shout" around for backwards compatibility)
The text was updated successfully, but these errors were encountered: