forked from stateful/vscode-runme
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Connect refactor #4
Open
hotpocket
wants to merge
22
commits into
main
Choose a base branch
from
connect-refactor
base: main
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.
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
21c62b2
move reusable grpc components into a base class
hotpocket 1000516
Add ConnectSerializer and the code to select and run it. Refactor ker…
hotpocket c616b3c
handle error on missing tls similar to kernelServer. Add missing call…
hotpocket ea26204
add missing config block
hotpocket a302049
creating the maskedNotebook using `new` causes cells to be copied by …
hotpocket a9b0554
Merge branch 'main' into connect-refactor
hotpocket 68ea437
getOutputsUri no longer resides on GrpcSerializer and thus broke this…
hotpocket 49fe3a7
replace GrpcSerializer with ConnectSerializer and fix types as needed.
hotpocket 827354a
client init in serializer.ts now calls `getTLSEnabled()` which needs`…
hotpocket 052b70f
i have no idea what's going on here but this makes it work.
hotpocket 10c9c8e
Merge branch 'main' into connect-refactor
hotpocket 70fc30d
fix struct and data items that differ in new implementation.
hotpocket af02abc
fix typo
hotpocket 81c8c03
fix invalid proto prop reference
hotpocket 14b0f52
combine grpc base and grpc serializer. reorder changes to minimize PR…
hotpocket 99964a2
more diff consolidation for PR
hotpocket f9f3e1b
pr diff cleanup
hotpocket f1e08e3
Merge branch 'main' into connect-refactor
hotpocket e4c2507
fix old schema via foyle npm update
hotpocket 64f5b2b
Merge branch 'main' into connect-refactor
hotpocket 1aa7dfe
expose TLS methods to avoid code duplication
hotpocket f9144e2
remove stale comment
hotpocket File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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.
Oops, something went wrong.
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
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
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
Oops, something went wrong.
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.
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.
I am concerned about this because I have no idea why this is needed. The typescript error on this was very hairy. If someone smarter than me knows what is going on here please let me know.
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.
Why would this code need to change at all if its running on head? What was the error you got?
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.
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.
Ok, after testing the wall thoroughly with my forehead I have found a loose brick. It seems this graphql stuff was generated and it seems from the timostam-ts proto type. On line 2014 in graphql.ts there exists a line
executionOrder?: InputMaybe<UInt32>;
which conforms to the timostam-ts type Notebook.Cell.CellExecutionSummary.executionOrder which isexecutionOrder?: UInt32Value;
which is in contrast to the es type, which is, as you'd guess, anumber
... so my guess is this graphql.ts needs to be regenerated.Can you say more about what you mean by "running on head"? I am on this branch looking for issues caused by this code. I assume you mean the head of the upstream repo? If this is not correct please elaborate.
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.
Yes I mean making sure your branch is up to date with upstream changes
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.
Can this graphql code continue to use the timeostamp protos in this PR?
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 brings us back to the "can we make these two coexist" question as I see it, which was attempted for quite a long time until it was determined they could not coexist, and the original GrpcSerializer was modified so that there would not be two implementations. From what I can tell this will need to be regenerated, or we can force cast (as I have done in this branch) and pray it doesn't cause any runtime errors. I ran the tests for this and didn't get any failures, but I'm not sure this specific case is being tested.
I don't see where graphql.ts gets generated. Should I post a question on discord?
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.
Oh sorry I didn't realize from the diff this was using grpcSerializer. Yeah if its using grpcSerializer it might need to change. Sure ask in discord.