Skip to content

Extend custom_operations_api::get_storage_info API#2620

Merged
abitmore merged 3 commits into
developfrom
pr-2139-custom-ops-apis
Aug 6, 2022
Merged

Extend custom_operations_api::get_storage_info API#2620
abitmore merged 3 commits into
developfrom
pr-2139-custom-ops-apis

Conversation

@abitmore

@abitmore abitmore commented Aug 6, 2022

Copy link
Copy Markdown
Member

For issue #2139.

  • Add api-limit-get-storage-info node startup option
  • Extend custom_operations_api::get_storage_info API to accept 5 parameters:
    vector<account_storage_object> get_storage_info( account, catalog, key, limit, start_id );
    
    • All parameters are optional.
    • The account can be a name or an ID.
    • The default limit now is 101 (was unlimited).
    • The result is sorted by ID (was by key).
    *    By passing @a null to various optional parameters, or omitting where applicable,
    *    this API can be used to query stored objects by
    *    a) account, catalog and key, or
    *    b) account and catalog, or
    *    c) account, or
    *    d) catalog and key, or
    *    e) catalog, or
    *    f) unconditionally.
    
    Note: queries with keys without a catalog are not allowed.

@abitmore
abitmore marked this pull request as ready for review August 6, 2022 08:03
@sonarqubecloud

sonarqubecloud Bot commented Aug 6, 2022

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

100.0% 100.0% Coverage
0.0% 0.0% Duplication

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.

Pagination support and other improvements for custom_operations_api::get_storage_info API

1 participant