Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lucene search UI changes #1401

Merged
merged 161 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
161 commits
Select commit Hold shift + click to select a range
860e70a
Demo implementation for Diamond #1152
patrick-austin Jul 7, 2022
d02a122
Filters on datafileSearchTable for ISIS demo #1152
patrick-austin Jul 25, 2022
7ab6f13
Migrate to Mui5 and fix tests
kennethnym Aug 3, 2022
a5e10a3
Merge branch 'develop' into feature/free-text-search-#1152
kennethnym Aug 4, 2022
4defcd2
Update yarn lock file
kennethnym Aug 4, 2022
61d0b9c
Merge branch 'develop' into feature/free-text-search-#1152
kennethnym Aug 19, 2022
b140bfa
Reformat code with prettier
kennethnym Aug 19, 2022
4f06bfc
Query dataset counts for visible cells only
kennethnym Aug 22, 2022
ca7d4fb
Fix misaligned papers and tab label in search UI
kennethnym Aug 22, 2022
1bd09a7
Make "my data" checkbox visible only if logged in
kennethnym Aug 22, 2022
876dc15
Fix performance issue for dataset search table
kennethnym Aug 22, 2022
934a352
My data checkbox changes in search UI
kennethnym Aug 22, 2022
6217f4f
Minor search UI refactor
kennethnym Aug 22, 2022
f6f1774
Migrate investigation search table test to RTL
kennethnym Aug 24, 2022
b62d440
Fix type error in investigation search table test
kennethnym Aug 24, 2022
ac0e8ee
Migrate dataset search table tests to RTL
kennethnym Aug 25, 2022
c76417d
Fix broken datagateway-search tests
kennethnym Aug 25, 2022
cbaa9ed
Reformat code
kennethnym Aug 26, 2022
2f7c35d
Fix test and reformat code
kennethnym Aug 26, 2022
b798e80
Attempt to fix dg search e2e tests
kennethnym Aug 31, 2022
c5c5fef
Merge branch 'develop' into feature/free-text-search-#1152
kennethnym Sep 7, 2022
2d9b7ec
Add toLocaleDateString stub in tests
kennethnym Sep 8, 2022
325acec
Fix datafileSearchTable not full width
kennethnym Sep 8, 2022
21fac44
Remove unnecessary settings check in dg-download
kennethnym Sep 9, 2022
9965f7c
Rename parameterFacetList file
kennethnym Sep 9, 2022
6112c57
Remove datagateway-search-settings.json.DEV
kennethnym Nov 7, 2022
20edcb1
Remove datagateway-search-settings.json.TESTING
kennethnym Nov 7, 2022
91583fa
Port search changes to searchBoxContainerSide
kennethnym Nov 7, 2022
cb07a61
Update searchBoxContainer test
kennethnym Nov 7, 2022
6de192d
Export CVCustomFilters from cardView
kennethnym Nov 7, 2022
4982ce0
Remove unused code in datasetSearchCardView
kennethnym Nov 7, 2022
2e2d2ba
Add tests for myDataCheckbox
kennethnym Nov 7, 2022
c3c72d1
Add tests for sortSelect
kennethnym Nov 7, 2022
bf14baa
Add tests for loadMinNumResults action
kennethnym Nov 8, 2022
26a06cb
Add test for handling minNumResult action
kennethnym Nov 8, 2022
33d50c1
Add table cellRenderers tests
kennethnym Nov 8, 2022
35d4a31
Remove console logs and update comments
kennethnym Nov 8, 2022
2d70564
Tidy up comments
kennethnym Nov 8, 2022
ccc92e6
Remove console logs in searchPageCardView
kennethnym Nov 8, 2022
cbaf3a4
Pin dg-search dependencies
kennethnym Nov 8, 2022
635febe
Merge branch 'develop' into feature/free-text-search-#1152
kennethnym Nov 8, 2022
c2828b4
Fix lockfile conflict
kennethnym Nov 8, 2022
0670eb5
Fix e.g. links in search box erases search options
kennethnym Nov 8, 2022
de21a92
Add fallback ArrowTooltip title
kennethnym Nov 8, 2022
0c286da
Remove unused SearchTableProps interface
kennethnym Nov 8, 2022
36880d8
Remove unneeded cy intercepts
kennethnym Nov 8, 2022
27424f8
WIP: Facet filter panel
kennethnym Nov 15, 2022
60ad621
Fix facet panel not reacting to clear filter
kennethnym Nov 16, 2022
2388770
Add filter panel to dataset search table
kennethnym Nov 16, 2022
fa1ec92
Implement filter chips that show selected filters
kennethnym Nov 17, 2022
705442e
Add filter panel to datafile search table
kennethnym Nov 17, 2022
2cdf380
Add comments; add test for selectedFilterChips
kennethnym Nov 21, 2022
32bde43
Add tests for facet filter panel
kennethnym Nov 21, 2022
d6439b7
Add test for useFacetFilter hook
kennethnym Nov 22, 2022
6c67732
Refactor search query logic for search tables
kennethnym Nov 23, 2022
77098c6
Port search query changes to card views
kennethnym Nov 23, 2022
4d2333e
Fix search result count not updating in some cases
kennethnym Nov 24, 2022
76f49e3
Update useFacetFilters test
kennethnym Nov 24, 2022
0b79212
Add useSearchResultCounter tests
kennethnym Nov 24, 2022
2944b17
Update datafile search table tests
kennethnym Nov 25, 2022
64c09f1
Add test for filter panel in datafile search table
kennethnym Nov 25, 2022
e2bc833
Update tests for search tabs and search tables
kennethnym Nov 30, 2022
4021989
Update e2e tests for the facet filter UI
kennethnym Dec 7, 2022
eb97043
Update tests for search card views
kennethnym Dec 14, 2022
8f4ae76
Update tests for search card views
kennethnym Dec 14, 2022
4011a47
Merge branch 'develop' into feature/free-text-search-#1152
kennethnym Dec 19, 2022
8ba2628
Fix dg-search tests
kennethnym Jan 11, 2023
951cf10
Update lucene hook tests & test snapshots
kennethnym Jan 13, 2023
57d032c
Revert deleted code in card view
kennethnym Jan 16, 2023
5b2404d
Update snapshots
kennethnym Jan 16, 2023
f392563
WIP: rework parameter filter UI
kennethnym Jan 23, 2023
e8b3e1d
Implement param filter apply logic + refactor
kennethnym Jan 24, 2023
5dd6a84
Show empty message when no filters are available
kennethnym Jan 24, 2023
cd2d8b8
Minor UI tweaks
kennethnym Jan 24, 2023
a436c6c
Add btn to remove parameter filters in facet panel
kennethnym Jan 24, 2023
b316c3a
Add test for newParameterFilterCreator
kennethnym Jan 27, 2023
4827a7c
Add test for param value selectors
kennethnym Jan 27, 2023
3b830e3
Add test for parameterNumericRange
kennethnym Jan 30, 2023
de3007d
Add test for parameterFacetsFromSearchResponse
kennethnym Jan 30, 2023
3c62cfc
Add test for parameterFilterItem
kennethnym Jan 30, 2023
15ece53
Add more tests for parameterFilters
kennethnym Jan 30, 2023
c613417
Update facetPanel tests
kennethnym Jan 30, 2023
2b1ae64
Remove duplicate queries after applying filters
kennethnym Jan 31, 2023
cb2d376
Some minor fixes
kennethnym Jan 31, 2023
5698fdc
Update translation file + minor fixes
kennethnym Jan 31, 2023
db599f1
Only show apply btn when filter is modified
kennethnym Jan 31, 2023
88b97fb
Minor fix
kennethnym Jan 31, 2023
0aee6a3
Merge develop into feature/free-text-search
kennethnym Jan 31, 2023
f9cb663
Delete why-did-you-render setup file
kennethnym Feb 1, 2023
019d796
Improve handling of bad search text & timeouts
kennethnym Feb 2, 2023
b7e973b
Update help text with new features etc. #1363
patrick-austin Aug 8, 2022
2feb34e
Correct search help section titles #1363
patrick-austin Aug 10, 2022
785a7c2
Update search help dialog style & rewrite tests
kennethnym Feb 2, 2023
05bd409
Update doc on faceted search
kennethnym Feb 2, 2023
cfc5f59
Fix failing tests
kennethnym Feb 2, 2023
bd78724
Remove unused code and console.logs
kennethnym Feb 8, 2023
ecfbd41
Fix filters being added twice in certain case
kennethnym Feb 8, 2023
ddbbd88
Prevent filters from being shown inside card view
kennethnym Feb 8, 2023
2e27ae4
Rework date format in investigation details panel
kennethnym Feb 8, 2023
92322fd
Refactor visit details panel date time formatting
kennethnym Feb 9, 2023
7a0cf93
Rollback investigation details panel type change
kennethnym Feb 9, 2023
25c3ec8
Hide filters inside investigation card view
kennethnym Feb 9, 2023
598e097
Merge branch 'develop' into feature/free-text-search-#1152
kennethnym Feb 9, 2023
e8543c9
Keep up to date with main branch
kennethnym Apr 12, 2023
9996d02
Fix import error causing pageContainer tests to fail
louise-davies Apr 24, 2023
13e3861
Fix act warning in pageContainer test
louise-davies Apr 24, 2023
cf1e702
Fix warnings in unit tests
louise-davies Apr 24, 2023
48f9b2a
Fix tests
kennethnym Apr 25, 2023
0e680fe
please work
kennethnym May 4, 2023
6c52934
#1152 - fix search unit tests & fix bug in how search tabs were synced
louise-davies Jun 28, 2023
72473d1
Remove logging statements & fix warnings generating log output
louise-davies Jun 28, 2023
2d607d7
Merge branch 'develop' into feature/free-text-search-#1152
louise-davies Jun 28, 2023
c4dfb7f
Fix TS error and speed up lint command by using tsc instead of building
louise-davies Jun 29, 2023
28c2262
#1152 - fix tests failing on CI because of timezone issues
louise-davies Jun 29, 2023
03165f5
#1152 - improve test coverage
louise-davies Jun 29, 2023
8dc4bfe
Merge branch 'develop' into feature/free-text-search-#1152
louise-davies Jun 30, 2023
9b3ae0b
Fix broken checksum in lockfile
louise-davies Jun 30, 2023
e0567eb
Fix package.json merge conflicts
kennethnym Jul 6, 2023
8890730
Fix dg-search e2e test attempt 1
kennethnym Jul 6, 2023
4d63bd0
Merge branch 'develop' into feature/free-text-search-#1152
kennethnym Aug 3, 2023
8cfd1c7
Remove obsolete test snapshot
kennethnym Aug 3, 2023
7ed1118
Merge branch 'develop' into feature/free-text-search-#1152
louise-davies Sep 13, 2023
1547842
#1152 - fix cypress warnings in new e2e tests
louise-davies Sep 13, 2023
0193e68
Fix datafileSearch investigationfacilitycycle and new facet requests …
patrick-austin Sep 28, 2023
c0298fd
#1152 - fix handling of string ID from lucene
louise-davies Oct 3, 2023
5618130
Revert "#1152 - fix handling of string ID from lucene"
louise-davies Oct 3, 2023
cdc01f2
#1152 - allow for facet counts to be undefined so we can choose not t…
louise-davies Oct 4, 2023
187c354
#1152 - fix unit tests & update datafileSearch to be a proper e2e test
louise-davies Oct 5, 2023
dea54e1
#1152 - update CI to run on new snapshot versions & add correct permi…
louise-davies Oct 5, 2023
4be9515
#1152 - fix broken lucene api test
louise-davies Oct 5, 2023
dee3742
#1152 - fix capitalisation in public steps script
louise-davies Oct 5, 2023
84d7d1a
#1152 - find icatadmin script by path
louise-davies Oct 5, 2023
9c3fb73
Debug GA
louise-davies Oct 5, 2023
947fe4f
#1152 - use ansible branch that supports new server properties
louise-davies Oct 6, 2023
fc2cec2
Debug CI
louise-davies Oct 6, 2023
2d460b9
#1152 - refactor investigationSearch e2e tests to use real API
louise-davies Oct 10, 2023
6d50f49
#1152 - fix more e2e tests
louise-davies Oct 11, 2023
7cab324
#1152 - update datasetSearch tests and improve datafile & investigati…
louise-davies Oct 12, 2023
4df9c64
#1152 - fix saving filter params when switching tabs
louise-davies Oct 17, 2023
83a3d64
#1152 - improve facet count look & don't display facet counts for ins…
louise-davies Oct 17, 2023
98ec307
#1152 - add e2e tests for saved filters & no instrument facet count
louise-davies Oct 17, 2023
523d43e
Merge branch 'develop' into feature/free-text-search-#1152
louise-davies Nov 3, 2023
e02de1b
Use icat-ansible master again
louise-davies Nov 3, 2023
2cc6b17
Merge branch 'develop' into feature/free-text-search-#1152
louise-davies Feb 21, 2024
9e8621c
#1152 - move @types/lodash.isequal to dependencies to fix docker build
louise-davies Feb 21, 2024
5b45788
#1152 - improve search load more rows e2e test
louise-davies Feb 22, 2024
de99b96
#1152 - fix card view pagination bug
louise-davies Feb 23, 2024
161e8de
#1152 - remove unused functionality from count endpoints
louise-davies Feb 23, 2024
d8d2ed3
#1152 - fix typo in e2e test
louise-davies Feb 23, 2024
efd2d9b
#1152 - fix anon search
louise-davies Feb 27, 2024
442c5ae
Fix vscode typescript (wouldn't detect rtl jest dom)
louise-davies Feb 29, 2024
cebbadd
#1152 - fix search e2e tests broken by restrict change
louise-davies Feb 29, 2024
0904f90
Exclude unit test files from docker build
louise-davies Feb 29, 2024
be235bd
Switch to different release action
louise-davies Feb 29, 2024
ac458fb
#1152 - Guard against empty arrays for investigationfacilitycycles
louise-davies Feb 29, 2024
473f346
Merge branch 'develop' into feature/free-text-search-#1152
louise-davies May 15, 2024
06539eb
#1152 - fix colour of facet accordian headers in dark mode
louise-davies May 15, 2024
1971ea4
#1152 - fix overflow issues when filter chips were present
louise-davies May 17, 2024
f05912f
Upgrade datagateway-api CI version
louise-davies May 17, 2024
9eec463
Merge branch 'develop' into feature/free-text-search-#1152
louise-davies Jul 23, 2024
bdb9c6c
Fix results amount assertion in datafileSearch tests
louise-davies Jul 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ CODEOWNERS
LICENSE.md
README.md
Dockerfile
**/*.test.*
**/setupTests*
**/testData*
50 changes: 50 additions & 0 deletions .github/add_icat_rules.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
from icat.client import Client

client = Client(
"https://localhost:8181",
checkCert=False,
)
client.login("simple", {"username": "root", "password": "pw"})

public_tables = [
"Instrument",
"ParameterType",
"InvestigationType",
"DatasetType",
"SampleType",
"DatafileFormat",
"Facility",
"FacilityCycle",
]

client.createRules("R", public_tables)

public_steps = [
("Datafile", "dataset"),
("Dataset", "investigation"),
("Sample", "investigation"),
("Instrument", "instrumentScientists"),
("Investigation", "investigationFacilityCycles"),
("InstrumentScientist", "user"),
("Investigation", "publications"),
("Sample", "type"),
("InvestigationUser", "user"),
("Investigation", "investigationUsers"),
("Investigation", "investigationInstruments"),
("Dataset", "sample"),
("Dataset", "datafiles"),
("Investigation", "datasets"),
("Investigation", "samples"),
("Sample", "parameters"),
("Investigation", "parameters"),
("Dataset", "parameters"),
("Datafile", "parameters"),
]

public_step_objects = []

for step in public_steps:
ps = client.new("PublicStep", origin=step[0], field=step[1])
public_step_objects.append(ps)

client.createMany(public_step_objects)
30 changes: 13 additions & 17 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:
with:
repository: ral-facilities/datagateway-api
path: datagateway-api
ref: v9.0.1
ref: v9.0.2

# DataGateway API file setup
- name: Create search_api_mapping.json
Expand Down Expand Up @@ -301,7 +301,7 @@ jobs:
with:
repository: ral-facilities/datagateway-api
path: datagateway-api
ref: v9.0.1
ref: v9.0.2

# DataGateway API file setup
- name: Create search_api_mapping.json
Expand Down Expand Up @@ -396,6 +396,12 @@ jobs:
- name: Replace default payara user with Actions user
run: |
sed -i -e "s/^payara_user: \"glassfish\"/payara_user: \"runner\"/" icat-ansible/group_vars/all/vars.yml
- name: Change icat.server version
run: |
echo "icat_server_version: '6.1.0-SNAPSHOT'" >> icat-ansible/group_vars/all/vars.yml
- name: Change icat.lucene version
run: |
echo "icat_lucene_version: '3.0.0-SNAPSHOT'" >> icat-ansible/group_vars/all/vars.yml
- name: Amending roles
run: |
sed -i 's/role: authn_uows_isis/role: authn_anon/' icat-ansible/icat_test_hosts.yml
Expand Down Expand Up @@ -430,7 +436,7 @@ jobs:
with:
repository: ral-facilities/datagateway-api
path: datagateway-api
ref: v9.0.1
ref: v9.0.2

# DataGateway API file setup
- name: Create search_api_mapping.json
Expand All @@ -449,24 +455,14 @@ jobs:
- name: Add dummy data to icatdb
run: |
cd datagateway-api/; poetry run python -m util.icat_db_generator
- name: Add ICAT rules & public steps
run: cd datagateway-api/; poetry run python ../.github/add_icat_rules.py

# Recreate Lucene indexes
- name: Login to ICAT
run: |
curl -k --request POST 'https://localhost:8181/icat/session' --header 'Content-Type: application/x-www-form-urlencoded' --data-urlencode 'json={"plugin":"simple", "credentials": [{"username":"root"}, {"password":"pw"}]}' > login_output
- name: Recreate Datafile index
run: |
curl -k --request POST 'https://localhost:8181/icat/lucene/db/Datafile/0' --header 'Content-Type: application/x-www-form-urlencoded' --data-urlencode 'sessionId='`jq -r '.sessionId' login_output`
- name: Recreate Dataset index
run: |
curl -k --request POST 'https://localhost:8181/icat/lucene/db/Dataset/1' --header 'Content-Type: application/x-www-form-urlencoded' --data-urlencode 'sessionId='`jq -r '.sessionId' login_output`
- name: Recreate Investigation index
run: |
curl -k --request POST 'https://localhost:8181/icat/lucene/db/Investigation/1' --header 'Content-Type: application/x-www-form-urlencoded' --data-urlencode 'sessionId='`jq -r '.sessionId' login_output`
- name: Use icatadmin to reindex all indexes
run: ~/bin/icatadmin https://localhost:8181 simple username root password pw -- populate --delete
- name: Let reindexes complete
run: sleep 30
- name: Remove session ID data
run: rm -f login_output

- name: Start API
run: cd datagateway-api/; nohup poetry run python -m datagateway_api.src.main > api-output.txt &
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"scripts": {
"build": "yarn workspaces foreach --interlaced --verbose --parallel --jobs 3 --exclude datagateway-common run build",
"lint": "yarn workspaces foreach --interlaced --verbose --parallel --jobs 3 run lint:js --max-warnings=0",
"lint": "yarn workspaces foreach --interlaced --verbose --parallel --jobs 4 run lint:js",
"tsc": "yarn workspace datagateway-common tsc",
"test": "yarn test:unit && yarn test:e2e",
"test:unit": "yarn workspaces foreach --interlaced --verbose --parallel --jobs 4 --exclude datagateway run test --runInBand",
Expand Down
46 changes: 0 additions & 46 deletions packages/datagateway-common/src/api/datafiles.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -301,52 +301,6 @@ describe('datafile api functions', () => {
expect(result.current.data).toEqual(mockData.length);
});

it('sends axios request to fetch datafile count and returns successful response using the stored filters', async () => {
(axios.get as jest.Mock).mockResolvedValue({
data: mockData.length,
});

const { result, waitFor } = renderHook(
() =>
useDatafileCount(
[
{
filterType: 'distinct',
filterValue: JSON.stringify(['name', 'title']),
},
],
{
name: { value: 'test2', type: 'include' },
},
'investigation'
),
{
wrapper: createReactQueryWrapper(history),
}
);

await waitFor(() => result.current.isSuccess);

params.append(
'where',
JSON.stringify({
name: { ilike: 'test2' },
})
);
params.append('distinct', JSON.stringify(['name', 'title']));

expect(axios.get).toHaveBeenCalledWith(
'https://example.com/api/datafiles/count',
expect.objectContaining({
params,
})
);
expect((axios.get as jest.Mock).mock.calls[0][1].params.toString()).toBe(
params.toString()
);
expect(result.current.data).toEqual(mockData.length);
});

it('sends axios request to fetch datafile count and calls handleICATError on failure', async () => {
(axios.get as jest.Mock).mockRejectedValue({
message: 'Test error',
Expand Down
9 changes: 2 additions & 7 deletions packages/datagateway-common/src/api/datafiles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,17 +161,12 @@ export const fetchDatafileCountQuery = (
};

export const useDatafileCount = (
additionalFilters?: AdditionalFilters,
storedFilters?: FiltersType,
currentTab?: string
additionalFilters?: AdditionalFilters
): UseQueryResult<number, AxiosError> => {
const apiUrl = useSelector((state: StateType) => state.dgcommon.urls.apiUrl);
const location = useLocation();

const filters =
currentTab === 'datafile' || !storedFilters
? parseSearchToQuery(location.search).filters
: storedFilters;
const filters = parseSearchToQuery(location.search).filters;

return useQuery<
number,
Expand Down
46 changes: 0 additions & 46 deletions packages/datagateway-common/src/api/datasets.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -366,52 +366,6 @@ describe('dataset api functions', () => {
expect(result.current.data).toEqual(mockData.length);
});

it('sends axios request to fetch dataset count and returns successful response using the stored filters', async () => {
(axios.get as jest.Mock).mockResolvedValue({
data: mockData.length,
});

const { result, waitFor } = renderHook(
() =>
useDatasetCount(
[
{
filterType: 'distinct',
filterValue: JSON.stringify(['name', 'title']),
},
],
{
name: { value: 'test2', type: 'include' },
},
'datafile'
),
{
wrapper: createReactQueryWrapper(history),
}
);

await waitFor(() => result.current.isSuccess);

params.append(
'where',
JSON.stringify({
name: { ilike: 'test2' },
})
);
params.append('distinct', JSON.stringify(['name', 'title']));

expect(axios.get).toHaveBeenCalledWith(
'https://example.com/api/datasets/count',
expect.objectContaining({
params,
})
);
expect((axios.get as jest.Mock).mock.calls[0][1].params.toString()).toBe(
params.toString()
);
expect(result.current.data).toEqual(mockData.length);
});

it('sends axios request to fetch dataset count and calls handleICATError on failure', async () => {
(axios.get as jest.Mock).mockRejectedValue({
message: 'Test error',
Expand Down
11 changes: 3 additions & 8 deletions packages/datagateway-common/src/api/datasets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const useDataset = (
[string, number, AdditionalFilters?]
>(
['dataset', datasetId, additionalFilters],
(params) => {
(_) => {
return fetchDatasets(apiUrl, { sort: {}, filters: {} }, [
{
filterType: 'where',
Expand Down Expand Up @@ -194,16 +194,11 @@ export const fetchDatasetCountQuery = (
};

export const useDatasetCount = (
additionalFilters?: AdditionalFilters,
storedFilters?: FiltersType,
currentTab?: string
additionalFilters?: AdditionalFilters
): UseQueryResult<number, AxiosError> => {
const apiUrl = useSelector((state: StateType) => state.dgcommon.urls.apiUrl);
const location = useLocation();
const filters =
currentTab === 'dataset' || !storedFilters
? parseSearchToQuery(location.search).filters
: storedFilters;
const filters = parseSearchToQuery(location.search).filters;

return useQuery<
number,
Expand Down
Loading
Loading