-
-
Notifications
You must be signed in to change notification settings - Fork 15
fix(stackable-versioned): Fix bugs in ConversionReviews integration #1061
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
Open
sbernauer
wants to merge
28
commits into
main
Choose a base branch
from
test/conversion
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
28 commits
Select commit
Hold shift + click to select a range
ee724da
fix: ConversionReview not working correctly.
sbernauer 35f1a8f
formatting
sbernauer 41776eb
Move tests into dedicated folder
sbernauer ca11c44
move fixtures
sbernauer db2f65c
Check Kind of send object
sbernauer a80857d
Add comment
sbernauer a42d579
changelog
sbernauer def0da2
Merge branch 'main' into test/conversion
sbernauer f88e0ad
clippy
sbernauer 1ef6561
Merge branch 'main' into test/conversion
sbernauer 073c481
Move kind check to from_json_value
sbernauer 548b300
Parse desired api version early
sbernauer 95a10ae
Remove leftover comment
sbernauer 9acd912
Update crates/stackable-versioned-macros/src/codegen/container/struct…
sbernauer 129d6b4
Update crates/stackable-versioned-macros/src/codegen/container/struct…
sbernauer 58b330b
Avoid stringify!
sbernauer d5a3109
adopt unexpected kind error message
sbernauer 4364c53
Add ParseApiVersionError variant
sbernauer 30b36dc
Update crates/stackable-versioned-macros/src/codegen/container/struct…
sbernauer 9fb395c
Apply suggestions from code review
sbernauer 4a79d52
Update crates/stackable-versioned/src/k8s.rs
sbernauer 8f77619
Move into tests folder
sbernauer cb3dbfe
to_string -> to_owned
sbernauer 119a845
Rename fn to try_from_json_object
sbernauer 83e2438
Remove try_prefix
sbernauer 7400d39
Move test inputs folder
sbernauer b7080ac
Rename run_for_file -> convert_via_file
sbernauer 3f9e21f
Derive copy, clone and debug
sbernauer 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 hidden or 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.
note: I'd like to avoid generating a bunch of match arms which should basically never be hit. The only benefit of this is compiler checking, which is basically already covered by our snapshot tests.
If we don't generate all non-noop combinations, the compiler error doesn't help. The snapshot tests are there to ensure this never happens.