-
Notifications
You must be signed in to change notification settings - Fork 309
api: Rename to ChannelDestination and ChannelPostPolicy from "stream" #846
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Khader-1! LGTM! On to the integration review.
11e3319
to
0bd2a12
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Khader-1! Merging the ChannelPostPolicy / StreamPostPolicy part of this.
On ChannelDestination, see below.
(The PR branch also contained #847. It's fine to stack one PR atop another one whenever that's helpful, but do be sure to mention it in the PR description because it's important context for reviewers. Since I closed #847 for reasons described there, I'm dropping those commits here too.)
lib/api/route/messages.dart
Outdated
StreamDestination() => { | ||
ChannelDestination() => { | ||
'type': RawParameter('stream'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a similar story to #847 — StreamDestination describes part of our outgoing API where we say "stream", and so I'd like to package the rename together with starting to say "channel" in what we send. The server does accept "channel" here:
https://zulip.com/api/send-message#parameter-type
0bd2a12
to
1964388
Compare
FTR since GitHub makes dropped commits hard to find: that StreamDestination / ChannelDestination commit was: |
Fixes parts of #631.
This focuses on two models:
ChannelDestination
ChannelPostPolicy