Skip to content

Commit

Permalink
fix: ckan client api
Browse files Browse the repository at this point in the history
  • Loading branch information
admy7 committed Aug 27, 2024
1 parent 6b77f57 commit 590d0c9
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
public interface DatasetsRepository {

List<SearchedDataset> search(List<String> datasetIds,
String returnFields,
String sort,
Integer rows,
Integer start,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ public DatasetsSearchResponse execute(DatasetSearchQuery query, String accessTok
.orElse(List.of());

var datasets = repository.search(datasetIds,
query.getReturnFields(),
query.getSort(),
query.getRows(),
query.getStart(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ public List<String> collect(DatasetSearchQuery query, String accessToken) {
query.getQuery(),
facetsQuery,
CKAN_IDENTIFIER_FIELD,
"",
null,
CKAN_PAGINATION_MAX_SIZE,
0,
"",
null,
accessToken
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ public CkanDatasetsRepository(

@Override
public List<SearchedDataset> search(List<String> datasetIds,
String returnFields,
String sort,
Integer rows,
Integer start,
Expand All @@ -71,13 +70,13 @@ public List<SearchedDataset> search(List<String> datasetIds,
.build());

var response = ckanQueryApi.packageSearch(
"",
null,
facetsQuery,
returnFields,
null,
sort,
rows,
start,
"",
null,
accessToken
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ public FacetGroup build(DatasetSearchQuery query, String accessToken) {
var response = ckanQueryApi.packageSearch(
query.getQuery(),
facetsQuery,
query.getReturnFields(),
query.getSort(),
0,
query.getStart(),
null,
null,
null,
null,
selectedFacets,
accessToken
);
Expand Down
4 changes: 0 additions & 4 deletions src/main/openapi/discovery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,6 @@ components:
title: Facets
items:
$ref: "#/components/schemas/DatasetSearchQueryFacet"
returnFields:
type: string
title: dataset fields to return
default: "*"
sort:
type: string
title: Sorting of search results
Expand Down

0 comments on commit 590d0c9

Please sign in to comment.