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

refactor: remove module-based api from client #5184

Merged
merged 3 commits into from
Oct 24, 2024

Conversation

aoyako
Copy link
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
nxsaken
nxsaken previously approved these changes Oct 23, 2024
Copy link
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

@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
10 of 12 checks passed
@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