You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Need to instantiate a proper CurrentPage structure object.
pub(crate) struct CurrentPage {
#[allow(clippy::missing_docs_in_private_items)] // Type is pre documented
pub page: common::types::generic::query::pagination::Page,
#[allow(clippy::missing_docs_in_private_items)] // Type is pre documented
pub limit: common::types::generic::query::pagination::Limit,
#[allow(clippy::missing_docs_in_private_items)] // Type is pre documented
pub remaining: common::types::generic::query::pagination::Remaining,
}
Summary
Implement a proper
page
response filed setupcatalyst-voices/catalyst-gateway/bin/src/service/api/documents/post_document_index_query/mod.rs
Line 61 in 0c6d286
Description
Need to instantiate a proper
CurrentPage
structure object.page
andlimit
field could be defined from the endpoint request arguments.remaining
field should be calculated as a difference between the resulted number of elements returned by the query and the total amount of elements (applying the same filtering options).It will be needed to add a new sql request as this https://github.com/input-output-hk/catalyst-voices/blob/f83a33f7c2a11607485ee6d19f33269e066187da/catalyst-gateway/bin/src/db/event/signed_docs/sql/filtered_select_signed_documents.sql.jinja, but it should SELECT just a count of rows.
The text was updated successfully, but these errors were encountered: