API: Enhance /v2/accounts to conditionally exclude app and asset parameters#6547
Merged
gmalouf merged 8 commits intoalgorand:masterfrom Feb 6, 2026
Merged
Conversation
…#6533. Add support for comma-delimited exclude values to allow selective exclusion of created-apps-params and created-assets-params. This reduces response size for accounts with many created applications or assets without excluding other account data. The exclude parameter now supports: - all: exclude all optional data (existing behavior) - none: include all data (default) - created-apps-params: exclude only created application parameters - created-assets-params: exclude only created asset parameters - Multiple values can be comma-separated
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6547 +/- ##
===========================================
- Coverage 63.74% 47.75% -16.00%
===========================================
Files 484 645 +161
Lines 67520 87846 +20326
===========================================
- Hits 43040 41950 -1090
- Misses 20976 43140 +22164
+ Partials 3504 2756 -748
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
jannotti
reviewed
Feb 4, 2026
algorandskiy
reviewed
Feb 4, 2026
…ck-nil-params Add nil params checks to copy functions in case of exclude
algorandskiy
approved these changes
Feb 6, 2026
cce
approved these changes
Feb 6, 2026
Contributor
cce
left a comment
There was a problem hiding this comment.
LGTM I guess there is some inconsistency in the nil checking but most of it happens after ValidateApps so 🤷 ?
This was referenced Mar 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enhance /v2/accounts exclude parameter to help address issue #6533.
Add support for comma-delimited exclude values to allow selective exclusion of created-apps-params and created-assets-params. This reduces response size for accounts with many created applications or assets without excluding other account data. The exclude parameter now supports:
Test Plan
Added additional test cases for ensuring can exclude app and asset params simultaneously, specifying all/none in comma-delimited form not being allowed. Other tests had to be updated as the params fields on Applications and Asset API types are now optional.