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

Problem: x/supply is not marked as deprecated #724

Merged
merged 2 commits into from
Mar 10, 2022

Conversation

devashishdxt
Copy link
Collaborator

Solution: Marked x/supply grpc and cli as deprecated. Fixes #720.

Solution: Marked `x/supply` grpc and cli as deprecated. Fixes crypto-org-chain#720.
@codecov
Copy link

codecov bot commented Mar 10, 2022

Codecov Report

Merging #724 (a654240) into master (f3685b9) will increase coverage by 3.19%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #724      +/-   ##
==========================================
+ Coverage   19.05%   22.24%   +3.19%     
==========================================
  Files          69       69              
  Lines        8000     8131     +131     
==========================================
+ Hits         1524     1809     +285     
+ Misses       5969     5772     -197     
- Partials      507      550      +43     
Flag Coverage Δ
integration_tests 19.10% <100.00%> (+0.05%) ⬆️
unit_tests 9.58% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
x/nft/types/query.pb.gw.go 0.23% <ø> (+0.01%) ⬆️
x/supply/module.go 69.69% <ø> (ø)
x/supply/types/query.pb.go 13.86% <ø> (ø)
x/supply/client/cli/query.go 65.38% <100.00%> (ø)
app/app.go 5.26% <0.00%> (-94.74%) ⬇️
x/nft/keeper/querier.go 8.67% <0.00%> (+1.15%) ⬆️
x/nft/keeper/invariants.go 3.92% <0.00%> (+3.92%) ⬆️
config/config.go 75.00% <0.00%> (+8.33%) ⬆️
x/nft/types/validation.go 50.00% <0.00%> (+11.53%) ⬆️
x/nft/keeper/keeper.go 83.33% <0.00%> (+21.21%) ⬆️
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f3685b9...a654240. Read the comment docs.

@@ -20,7 +20,6 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/grpclog"
"google.golang.org/grpc/metadata"
Copy link
Contributor

Choose a reason for hiding this comment

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

what are these changes in the generated pb?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not sure. Should I revert these? Integration tests seems to work fine with these changes.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Maybe because of different protoc version on my machine?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure whether these metadata settings are anyhow critical for e.g. security headers or if one puts it behind LB. @yihuang do you know?

maybe the best is to align it with how the generated code is in other projects? (cronos, ethermint, Cosmos SDK...)

Copy link
Collaborator Author

@devashishdxt devashishdxt Mar 10, 2022

Choose a reason for hiding this comment

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

I've confirmed in Cosmos SDK. .pb.gw.go files in Cosmos SDK also doesn't have import for google.golang.org/grpc/metadata and any function call to NewContextWithServerTransportStream. (Verified with code on tag v0.45.1)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Merging this PR.

@devashishdxt devashishdxt merged commit a7f75b6 into crypto-org-chain:master Mar 10, 2022
@devashishdxt devashishdxt deleted the supply-deprecation branch March 10, 2022 10:50
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.

Problem: x/supply is not marked as deprecated
2 participants