Skip to content
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

feat: add proto + logic for streaming sequence #1266

Merged
merged 33 commits into from
Apr 12, 2023
Merged

Conversation

leahecole
Copy link
Contributor

@leahecole leahecole commented Mar 7, 2023

Hi Noah! Per our conversation on Friday, @galz10 and I are proposing these changes to the proto - we think it should be the same as AttemptSequence in the proto but the underlying logic will be different, and that the other methods are reusable. Let us know if we're off base!

@leahecole leahecole requested a review from noahdietz March 7, 2023 19:25
@leahecole leahecole requested a review from a team as a code owner March 7, 2023 19:25
@leahecole leahecole force-pushed the sequence_streaming branch 2 times, most recently from a2c715a to 9614706 Compare March 7, 2023 19:26
@leahecole leahecole marked this pull request as draft March 7, 2023 19:27
@leahecole leahecole changed the title add proto descriptions for streaming sequence feat: add proto descriptions for streaming sequence Mar 7, 2023
@leahecole leahecole marked this pull request as ready for review March 7, 2023 19:35
@leahecole leahecole marked this pull request as draft March 7, 2023 19:39
@leahecole
Copy link
Contributor Author

Moving back to draft status while things are failing - guessing it's because we're modifying the proto and not the logic, but that's just a guess

@leahecole leahecole force-pushed the sequence_streaming branch 2 times, most recently from b6e8382 to e28f6fe Compare March 8, 2023 15:05
@leahecole
Copy link
Contributor Author

(sorry for all of the force pushes - not my norm. I was rebasing to try to get co-authors working and there was a bit of trial and error with syntax - finally figured it out!)

@leahecole leahecole force-pushed the sequence_streaming branch from e28f6fe to 4bc5146 Compare March 8, 2023 18:32
leahecole and others added 5 commits March 15, 2023 14:14
Co-authored-by: Leah Cole <coleleah@google.com>
Co-authored-by: Gal Zahavi <galzahavi@google.com>
Co-authored-by: Leah Cole <coleleah@google.com>
Co-authored-by: Gal Zahavi <galzahavi@google.com>
Co-authored-by: Leah Cole <coleleah@google.com>
Co-authored-by: Gal Zahavi <galzahavi@google.com>
Co-authored-by: Leah Cole <coleleah@google.com>
Co-authored-by: Gal Zahavi <galzahavi@google.com>
@leahecole leahecole force-pushed the sequence_streaming branch from 4bc5146 to ebcb42c Compare March 15, 2023 18:14
galz10 and others added 6 commits March 22, 2023 11:10
Co-authored-by: Leah E. Cole <leahecole@users.noreply.github.com>
Co-authored-by: Leah E. Cole <leahecole@users.noreply.github.com>
Co-authored-by: Leah E. Cole <leahecole@users.noreply.github.com>
@leahecole leahecole requested a review from shollyman March 27, 2023 19:43
@noahdietz
Copy link
Collaborator

@noahdietz Do you know what part of the sequence.proto generates GetStreamsequence ?

I think the RPC name is GetStreamingSequenceReport with the ing in Streaming. Different from what you wrote above. Is that the issue?

@galz10
Copy link
Contributor

galz10 commented Apr 6, 2023

i accidentally miss typed in the comment , if you look at the failing tests its not missing the ing in streaming

@noahdietz Do you know what part of the sequence.proto generates GetStreamsequence ?

I think the RPC name is GetStreamingSequenceReport with the ing in Streaming. Different from what you wrote above. Is that the issue?

@noahdietz
Copy link
Collaborator

Oh, ok I just suggested a fix. The getters on a generated message e.g. CreateStreamingSequence will take the snake_case field name and name the function Get{CamelCaseOfFieldName}. That's why we use snake_case in protos for field names.

Co-authored-by: Noah Dietz <noahdietz@users.noreply.github.com>
@galz10
Copy link
Contributor

galz10 commented Apr 6, 2023

Oh, ok I just suggested a fix. The getters on a generated message e.g. CreateStreamingSequence will take the snake_case field name and name the function Get{CamelCaseOfFieldName}. That's why we use snake_case in protos for field names.

still failing

@noahdietz
Copy link
Collaborator

Oh, ok I just suggested a fix. The getters on a generated message e.g. CreateStreamingSequence will take the snake_case field name and name the function Get{CamelCaseOfFieldName}. That's why we use snake_case in protos for field names.

still failing

Was everything regenerated? Any time a proto is changed, the code needs to be regenerated and the handlers need to be updated

@galz10
Copy link
Contributor

galz10 commented Apr 6, 2023

Oh, ok I just suggested a fix. The getters on a generated message e.g. CreateStreamingSequence will take the snake_case field name and name the function Get{CamelCaseOfFieldName}. That's why we use snake_case in protos for field names.

still failing

Was everything regenerated? Any time a proto is changed, the code needs to be regenerated and the handlers need to be updated

yes it was regenerated, even if i change the GetStreamingsequence to GetStreamingSequence and regenerate it generates GetStreamingsequence

@galz10
Copy link
Contributor

galz10 commented Apr 7, 2023

@noahdietz So it looks like line 53 in sequence.proto needs to be streaming_sequence to generate GetStreamingSequence correctly

@noahdietz
Copy link
Collaborator

Update your branch as #1293 has been merged. Then reinstall genrest and regenerate locally.

@galz10 galz10 requested a review from noahdietz April 11, 2023 16:37
Copy link
Collaborator

@noahdietz noahdietz left a comment

Choose a reason for hiding this comment

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

Implementation is looking great, just the one question on the proto

Copy link
Collaborator

@noahdietz noahdietz left a comment

Choose a reason for hiding this comment

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

Great job the both of you.

@galz10 galz10 merged commit 82814d8 into main Apr 12, 2023
@galz10 galz10 deleted the sequence_streaming branch April 12, 2023 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants