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

fix: revert #955 and add Query/HasParent into x/collection #959

Merged
merged 7 commits into from
Apr 10, 2023

Conversation

0Tech
Copy link
Collaborator

@0Tech 0Tech commented Apr 10, 2023

Description

This patch would fix the panic on x/collection Query/Parent and add Query/HasParent.

Motivation and context

#955 was our client's request, so we introduce a new api Query/HasParent as another request, while reverting #955.

Checklist:

  • I followed the contributing guidelines and code of conduct.
  • I have added a relevant changelog to CHANGELOG.md
  • I have added tests to cover my changes.
  • I have updated the documentation accordingly.
  • I have updated API documentation client/docs/swagger-ui/swagger.yaml

@0Tech 0Tech added A: bug Something isn't working C:x/collection labels Apr 10, 2023
@0Tech 0Tech self-assigned this Apr 10, 2023
@0Tech 0Tech requested review from dudong2 and tkxkd0159 April 10, 2023 10:52
@0Tech 0Tech marked this pull request as ready for review April 10, 2023 10:52
@codecov
Copy link

codecov bot commented Apr 10, 2023

Codecov Report

Merging #959 (038ade2) into rc/v0.47.0-alpha1 (0c74e6f) will increase coverage by 0.00%.
The diff coverage is 88.00%.

Additional details and impacted files

Impacted file tree graph

@@                Coverage Diff                 @@
##           rc/v0.47.0-alpha1     #959   +/-   ##
==================================================
  Coverage              62.50%   62.50%           
==================================================
  Files                    655      655           
  Lines                  79921    79934   +13     
==================================================
+ Hits                   49951    49961   +10     
- Misses                 27286    27288    +2     
- Partials                2684     2685    +1     
Impacted Files Coverage Δ
x/collection/keeper/grpc_query.go 94.47% <88.00%> (-0.45%) ⬇️

loin3
loin3 previously approved these changes Apr 10, 2023
tkxkd0159
tkxkd0159 previously approved these changes Apr 10, 2023
@0Tech 0Tech dismissed stale reviews from tkxkd0159 and loin3 via 038ade2 April 10, 2023 11:43
@0Tech 0Tech merged commit b842111 into Finschia:rc/v0.47.0-alpha1 Apr 10, 2023
@0Tech 0Tech deleted the query-panic-fix branch April 10, 2023 11:59
zemyblue added a commit to zemyblue/finschia-sdk that referenced this pull request Apr 21, 2023
* rc/v0.47.0-alpha1: (34 commits)
  ci: update docker action (Finschia#983)
  fix: revert Finschia#952 (Finschia#984)
  refactor: refactor x/token,collection query errors (Finschia#980)
  fix: not to throw error when no txs in block (Finschia#982)
  chore: change import path to `github.com/Finschia/finschia-sdk` (Finschia#970)
  fix: remove legacy events on x/collection and x/token (Finschia#966)
  chore: provide specific error messages on x/collection queries (Finschia#965)
  fix: check event determinism on original modules (Finschia#963)
  fix: refactor queries of x/collection and x/token (Finschia#957)
  chore: address generation of the empty coins in x/foundation (Finschia#952)
  fix: do not loop enum in x/collection (Finschia#961)
  fix: fix default next class ids of x/collection (Finschia#960)
  fix: revert Finschia#955 and add Query/HasParent into x/collection (Finschia#959)
  fix: replace query errors on the original modules into gRPC ones (Finschia#956)
  fix: return nil where the parent not exists in x/collection Query/Parent (Finschia#955)
  fix: remove duplicated events in x/collection Msg/Modify (Finschia#954)
  fix: allow zero amount of coin in x/collection Query/Balance (Finschia#953)
  fix: unpack proposals in x/foundation import-genesis (Finschia#947)
  fix: fix broken x/foundation invariant on treasury (Finschia#946)
  docs: update comments in the x/token,collection events proto (Finschia#944)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: bug Something isn't working C:x/collection
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants