Skip to content

Commit

Permalink
fix: remove sorting
Browse files Browse the repository at this point in the history
Signed-off-by: Lohachov Mykhailo <[email protected]>
  • Loading branch information
aoyako committed Dec 18, 2024
1 parent ee14787 commit 054cc26
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 529 deletions.
3 changes: 1 addition & 2 deletions crates/iroha/tests/pagination.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fn fetch_size_should_work() -> Result<()> {
// use the lower-level API to inspect the batch size
use iroha::data_model::query::{
builder::QueryExecutor as _,
parameters::{FetchSize, QueryParams, Sorting},
parameters::{FetchSize, QueryParams},
QueryWithFilter, QueryWithParams,
};

Expand All @@ -69,7 +69,6 @@ fn fetch_size_should_work() -> Result<()> {
.into(),
QueryParams::new(
Pagination::new(Some(nonzero!(7_u64)), 1),
Sorting::default(),
FetchSize::new(Some(nonzero!(3_u64))),
),
);
Expand Down
346 changes: 0 additions & 346 deletions crates/iroha/tests/sorting.rs

This file was deleted.

4 changes: 1 addition & 3 deletions crates/iroha_core/src/query/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ mod tests {
use iroha_data_model::{
permission::Permission,
prelude::SelectorTuple,
query::parameters::{FetchSize, Pagination, QueryParams, Sorting},
query::parameters::{FetchSize, Pagination, QueryParams},
};
use iroha_primitives::json::Json;
use iroha_test_samples::ALICE_ID;
Expand All @@ -297,11 +297,9 @@ mod tests {
let fetch_size = FetchSize {
fetch_size: Some(nonzero!(1_u64)),
};
let sorting = Sorting::default();

let query_params = QueryParams {
pagination,
sorting,
fetch_size,
};

Expand Down
Loading

0 comments on commit 054cc26

Please sign in to comment.