Skip to content

refactor: remove module-based api from client#5184

Merged
mversic merged 3 commits intohyperledger-iroha:mainfrom
aoyako:revise_client_query_api
Oct 24, 2024
Merged

refactor: remove module-based api from client#5184
mversic merged 3 commits intohyperledger-iroha:mainfrom
aoyako:revise_client_query_api

Conversation

@aoyako
Copy link
Copy Markdown
Contributor

@aoyako aoyako commented Oct 23, 2024

Resolves #4892
Context: #4833 (comment)

Solution

This PR removes helper query functions (such as asset::all_definitions()) in the client. Instead, an API similar to the one in smartcontracts is preferred (FindAllAssetDefinitions::new()).

Checklist

  • I've read CONTRIBUTING.md.
  • (optional) I've written unit tests for the code changes.
  • All review comments have been resolved.
  • All CI checks pass.

@github-actions github-actions bot added the api-changes Changes in the API for client libraries label Oct 23, 2024
@aoyako aoyako changed the title refactor: revise http client query api refactor: remove module-based api from client Oct 23, 2024
@aoyako aoyako marked this pull request as draft October 23, 2024 09:09
@aoyako aoyako force-pushed the revise_client_query_api branch 3 times, most recently from eebcbaf to 7629d73 Compare October 23, 2024 09:19
@aoyako aoyako marked this pull request as ready for review October 23, 2024 09:21
Comment thread crates/iroha_data_model/src/query/mod.rs Outdated
nxsaken
nxsaken previously approved these changes Oct 23, 2024
Copy link
Copy Markdown
Contributor

@0x009922 0x009922 left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Lohachov Mykhailo <lohachov@soramitsu.co.jp>
Signed-off-by: Lohachov Mykhailo <lohachov@soramitsu.co.jp>
Signed-off-by: Lohachov Mykhailo <lohachov@soramitsu.co.jp>
@mversic mversic force-pushed the revise_client_query_api branch from 2367c41 to 323d901 Compare October 24, 2024 06:54
@mversic mversic enabled auto-merge (squash) October 24, 2024 06:55
@mversic mversic merged commit 36ebb23 into hyperledger-iroha:main Oct 24, 2024
@aoyako aoyako deleted the revise_client_query_api branch October 24, 2024 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api-changes Changes in the API for client libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

revise query API on client

4 participants