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

Remove duplicate results for same asset_ids in get_assets rpc method #227

Conversation

AhzamAkhtar
Copy link
Contributor

Problem
In getAssets rpc method , a user can provide multiple same asset_id to search for, and the api will give that many duplicated results, instead we can return a single result.

Tasks

  • Remove duplicate results
  • tests

das_api/src/api/api_impl.rs Outdated Show resolved Hide resolved
das_api/src/api/api_impl.rs Outdated Show resolved Hide resolved
@AhzamAkhtar
Copy link
Contributor Author

suggested improvments implemented @Nagaprasadvr

Copy link
Contributor

@danenbm danenbm left a comment

Choose a reason for hiding this comment

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

LGTM

@Nagaprasadvr Nagaprasadvr requested a review from danenbm December 31, 2024 12:24
@AhzamAkhtar AhzamAkhtar force-pushed the das-60-in-get-assets-remove-duplicate-results-for-same-asset-id branch from dc2849f to 5032833 Compare January 7, 2025 11:48
@kespinola kespinola force-pushed the das-60-in-get-assets-remove-duplicate-results-for-same-asset-id branch from 5032833 to 46801b5 Compare January 7, 2025 14:53
Users can pass in duplicate asset ids when calling getAssets. This
remove the duplicates before processing the request.

Co-authored-by: Kyle Espinola <[email protected]>
@kespinola kespinola force-pushed the das-60-in-get-assets-remove-duplicate-results-for-same-asset-id branch from 46801b5 to 45f7219 Compare January 7, 2025 14:57
@kespinola kespinola merged commit 715ca79 into metaplex-foundation:main Jan 7, 2025
3 checks passed
@kespinola kespinola deleted the das-60-in-get-assets-remove-duplicate-results-for-same-asset-id branch January 7, 2025 15:14
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.

4 participants