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

add support for attributes with nested types in providers schema #28055

Merged
merged 1 commit into from
Mar 12, 2021

Conversation

mildwonkey
Copy link
Contributor

This PR extends jsonprovider to support attributes with NestedTypes and extends test coverage in jsonprovider and the providers schemas tests. I've also cleaned up some comments and extracted the logic to parse the nesting mode so it can be used in both marshaling blocks and attributes.

Fixes #28050

This PR extends jsonprovider to support attributes with NestedTypes and extends test coverage in jsonprovider and the providers schemas tests. I've also cleaned up some comments and extracted the logic to parse the nesting mode so it can be used in both marshalling blocks and attributes.
@codecov
Copy link

codecov bot commented Mar 11, 2021

Codecov Report

Merging #28055 (8dccea6) into main (e553869) will increase coverage by 0.01%.
The diff coverage is 66.66%.

Impacted Files Coverage Δ
command/jsonprovider/block.go 66.66% <41.17%> (+0.95%) ⬆️
command/jsonprovider/attribute.go 92.00% <100.00%> (+5.33%) ⬆️
states/statefile/version4.go 58.19% <0.00%> (+0.23%) ⬆️

@mildwonkey mildwonkey requested a review from a team March 11, 2021 14:33
@mildwonkey mildwonkey added the 0.15-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged label Mar 11, 2021
mildwonkey added a commit that referenced this pull request Mar 16, 2021
Support for attributes with NestedTypes was added in #28055, and should have included a format version bump: this is a backwards-compatible change, but consumers will need to be updated in order to properly decode attributes (with NestedTypes) going forward.
mildwonkey added a commit that referenced this pull request Mar 22, 2021
Support for attributes with NestedTypes was added in #28055, and should have included a format version bump: this is a backwards-compatible change, but consumers will need to be updated in order to properly decode attributes (with NestedTypes) going forward.
@ghost
Copy link

ghost commented Apr 12, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked as resolved and limited conversation to collaborators Apr 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
0.15-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reflect protocol v6 changes in schema JSON output
3 participants