Skip to content

Commit

Permalink
Merge pull request #105 from GenomicDataInfrastructure/fix-filters
Browse files Browse the repository at this point in the history
fix: remove fl attribute from ckan
  • Loading branch information
admy7 authored Aug 28, 2024
2 parents 574fd55 + d0fed1f commit 59f309a
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public List<String> collect(DatasetSearchQuery query, String accessToken) {
var response = ckanQueryApi.packageSearch(
query.getQuery(),
facetsQuery,
CKAN_IDENTIFIER_FIELD,
null,
CKAN_PAGINATION_MAX_SIZE,
0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ public List<SearchedDataset> search(List<String> datasetIds,
var response = ckanQueryApi.packageSearch(
null,
facetsQuery,
null,
sort,
rows,
start,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ public FacetGroup build(DatasetSearchQuery query, String accessToken) {
null,
null,
null,
null,
selectedFacets,
accessToken
);
Expand Down
6 changes: 0 additions & 6 deletions src/main/openapi/ckan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ paths:
required: false
schema:
type: string
- name: fl
in: query
description: dataset fields to be returned
required: false
schema:
type: string
- name: sort
in: query
description: Sorting of search results
Expand Down
2 changes: 1 addition & 1 deletion src/test/resources/mappings/package_search_ids.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"priority": 3,
"request": {
"method": "GET",
"urlPattern": "/api/3/action/enhanced_package_search.*fl=identifier.*"
"urlPattern": "/api/3/action/enhanced_package_search.*q=.*&rows=.*"
},
"response": {
"status": 200,
Expand Down

0 comments on commit 59f309a

Please sign in to comment.