-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
draft(subscriptions): Introduce RPCSubscriptionData class #6434
Draft
shruthilayaj
wants to merge
9
commits into
shruthi/ref/introduce-abstract-subscription-data-class
Choose a base branch
from
shruthi/feat/introduce-rpc-subscription-class
base: shruthi/ref/introduce-abstract-subscription-data-class
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
draft(subscriptions): Introduce RPCSubscriptionData class #6434
shruthilayaj
wants to merge
9
commits into
shruthi/ref/introduce-abstract-subscription-data-class
from
shruthi/feat/introduce-rpc-subscription-class
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shruthilayaj
changed the title
feat(subscriptions): Introduce RPCSubscriptionData class
draft(subscriptions): Introduce RPCSubscriptionData class
Oct 17, 2024
… into shruthi/feat/introduce-rpc-subscription-class
volokluev
reviewed
Oct 17, 2024
Comment on lines
+123
to
+130
@dataclass(frozen=True, kw_only=True) | ||
class RPCSubscriptionData(SubscriptionData): | ||
""" | ||
Represents the state of an RPC subscription. | ||
""" | ||
|
||
table_request: str | ||
|
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.
- the table_request is bytes, not a string
- we should be storing the name of the endpoint and the version of it. The API will evolve and we need to be able to change the model along with it
volokluev
reviewed
Oct 18, 2024
|
||
table_request: str | ||
|
||
def build_request( |
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.
returning a snuba Request
object here does not make sense. The RPC implementations will build whatever requests are necessary and execute them
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Draft, I want to make sure this is will do what I want it to do