-
Notifications
You must be signed in to change notification settings - Fork 97
Add subscription permission by source and name #1043
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
base: main
Are you sure you want to change the base?
Changes from all commits
a7d5c05
3f5874c
7ef2003
3a6cb84
db50077
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -340,10 +340,12 @@ message SubscribedQualityUpdate { | |
|
||
message TrackPermission { | ||
// permission could be granted either by participant sid or identity | ||
string participant_sid = 1; | ||
string participant_sid = 1 [deprecated = true]; | ||
bool all_tracks = 2; | ||
repeated string track_sids = 3; | ||
repeated string track_sids = 3 [deprecated = true]; | ||
string participant_identity = 4; | ||
repeated TrackSource track_sources = 5; | ||
repeated string track_names = 6; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would make this another message to have There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oh, that's a good point! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe it doesn't even have to be repeated 🤔 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think a repeated pairing makes sense. That will allow something like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it has to be repeated to support multiple sources...?
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes |
||
} | ||
|
||
message SubscriptionPermission { | ||
|
@@ -353,8 +355,10 @@ message SubscriptionPermission { | |
|
||
message SubscriptionPermissionUpdate { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wait, this is the wrong message 🤦 |
||
string participant_sid = 1; | ||
string track_sid = 2; | ||
string track_sid = 2 [deprecated = true]; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is a response message, shouldn't this be in request? Also, checking with a customer about this also. Maybe, keep There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. haha jinx, commented above There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. keeping There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah true, I am just trying to think if it will be useful in any situation as that gives a very specific thing and that is already in the system. Tracks can be published without having a source or name. But, track_sid is always there. I cannot think of a case, but just feels like there is something that would need that specificity. We can remove and bring it back later if needed I guess. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
jinx again, I was adding a note about it too. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
ideally both server/client would only have to think about name/source for permissions but idk if we can do this without breaking the api...? also to Raja's point even though we're deprecating this i don't think we're going to clean up the code immediately and if customers have use cases that the new model doesn't support we'll get push-back. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maybe not deprecate here. This is just an info message. It can have the current SID server sees. Also not sure if we want to include source/name in this message. I guess we can, but not sure if it is needed. It is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it's not purely informational, we also use it client side to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah true, so I guess having SID is a good thing then? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't have an opinion on whether or not track_sid should stay here, it's just an additional step for the server to translate between source + name on the request to the trackSid |
||
bool allowed = 3; | ||
optional TrackSource track_source = 4; | ||
optional string track_name = 5; | ||
} | ||
|
||
message SyncState { | ||
|
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.
change comment if
participant_sid
is marked deprecated?