-
Notifications
You must be signed in to change notification settings - Fork 43
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
Fix unknown collections of obj #2061
Merged
Merged
Changes from 36 commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
63a9bff
unknown tests
VenelinMartinov 1c3797a
rename accidentally repeated test name
VenelinMartinov 9cca15c
add description for the tests
VenelinMartinov 989d6f1
correct test case
VenelinMartinov d77e1a0
fix proposed new unknown blocks
VenelinMartinov c76fba8
correct set test
VenelinMartinov 143b87b
remove duplicated known check
VenelinMartinov 8257844
add check test
VenelinMartinov 2146474
fix unknown collection of obj
VenelinMartinov 6ae7900
uncomment test
VenelinMartinov 9ebe339
fix non prc tests
VenelinMartinov da0353b
Merge branch 'master' into vvm/fix_unknown_collections_of_obj
VenelinMartinov f596124
support all types of unknowns
VenelinMartinov a572732
use autogold for the cli output
VenelinMartinov 65e1e4a
Merge branch 'master' into vvm/fix_unknown_collections_of_obj
VenelinMartinov 9a70d46
Merge branch 'master' into vvm/fix_unknown_collections_of_obj
VenelinMartinov e5f0908
lint
VenelinMartinov a322aac
add test with unknown and known in a list
VenelinMartinov d980b07
nested tests
VenelinMartinov 7624356
Merge branch 'master' into vvm/fix_unknown_collections_of_obj
VenelinMartinov 67e2bae
add some more tests, debugging
VenelinMartinov ff51402
add note about plugin sdk behaviour
VenelinMartinov 6931e6a
more tests for updating with computed
VenelinMartinov 6524b9d
commit tests
VenelinMartinov 3e9a8a8
update tests
VenelinMartinov e61d153
Merge branch 'vvm/more_unknown_tests' into vvm/fix_unknown_collection…
VenelinMartinov ac7747f
inline tf unknown
VenelinMartinov c4dde52
update test
VenelinMartinov a96ce40
remove debug logging
VenelinMartinov 6b1e2be
remove debug logging
VenelinMartinov 026a0df
update resources
VenelinMartinov 2a6ebd3
update test
VenelinMartinov 68de606
update unused code
VenelinMartinov 480acc6
add todos
VenelinMartinov bc61456
another todo
VenelinMartinov a44380f
add note about odd test
VenelinMartinov ef39d9d
lint
VenelinMartinov 54f438b
fix todo
VenelinMartinov 06929b5
fix needs update check
VenelinMartinov 4b4fc3b
Merge branch 'master' into vvm/fix_unknown_collections_of_obj
VenelinMartinov 8a48049
fix test
VenelinMartinov f91d224
more lint
VenelinMartinov 725ea59
diff tests for sdkv2
VenelinMartinov d8395ff
make new config and state for each test
VenelinMartinov 9d05430
separate setup for each test
VenelinMartinov 0573b9b
move schemaconvert
VenelinMartinov b5177ec
lint
VenelinMartinov 1973687
lint
VenelinMartinov fc38c75
add a v2 override
VenelinMartinov f97793e
Merge branch 'vvm/diff_tests_for_sdkv2' into vvm/fix_unknown_collecti…
VenelinMartinov beea3a3
go mod tidy
VenelinMartinov 8e17f48
rework schema.go to support both strategies for unknowns
VenelinMartinov bae090b
implement all providers
VenelinMartinov 82616ba
update tests
VenelinMartinov 71cdfd0
Revert "add a v2 override"
VenelinMartinov faeb1d4
go mod tidy
VenelinMartinov 4692119
Merge branch 'vvm/diff_tests_for_sdkv2' into vvm/fix_unknown_collecti…
VenelinMartinov 3affc4a
lint
VenelinMartinov d029d6e
lint
VenelinMartinov c910839
address review comments
VenelinMartinov ddc6c06
Merge branch 'master' into vvm/fix_unknown_collections_of_obj
VenelinMartinov 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
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.
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.
What does this supposed to compute?
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 is to determine if we should add an Update method - InternalValidate fails for schemas which don't need an update but have it.
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
for
loop doesn't do anything here. It only has conditionalcontinue
statements. If we don't need to check the value of fields, we should remove thefor
loop and just returnres.UpdateContext == nil
. Otherwise we need to make sure thatresNeedsUpdate
is under test for whatever functionality it supports.