-
Notifications
You must be signed in to change notification settings - Fork 16
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
167 - Files table UI [1/2] - Integration filters and search #171
167 - Files table UI [1/2] - Integration filters and search #171
Conversation
@MellyGray Can you please resolve the conflicts in this PR? |
…tps://github.com/IQSS/dataverse-frontend into feature/167-integration-dataset-page-filters
@GPortas conflicts resolved! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tested the search bar and I have found the following issues.
1) The search works correctly when pressing enter but not when clicking on the search button
Pressing enter:
Clicking search button:
1) The search resets when choosing a sort option after the search results have been filtered
SPA behavior:
See how the search criteria is preserved in JSF:
I think it would be good to check that similar "reset" errors don't occur in the filters as well (File type, access, file tags). For detecting this kind of issues, it is useful to compare both SPA-JSF applications by doing the same sequence of actions on each one.
Yeah! I know, I have a test for this, but it's in the files count info PR, sorry, I only realised that when I was working on the other PR https://github.com/IQSS/dataverse-frontend/pull/173/files#diff-7c286c2739f2de315501ef53b6f4c9d699055fcf4c5d6389c216ccba7771c362
Yep, sorry, I tried to explain this in the PR description if you go to the Special notes for your reviewer, so the Filters do not work correctly without files count info, if you look at the e2e tests, there is a long test that I skipped to test all the filter sequentially to ensure that one filter does not erase another. This test is skipped because of fileCountInfo but it's working in the files count info PR
I was thinking what if I merge filescountinfo PR here? Because this PR doesn't provide value by its own, the filters don't work in the UI without the files count info integration @GPortas |
…//github.com/IQSS/dataverse-frontend into feature/168-integration-file-counts
Merging this into feature/167-integration-dataset-page-filters because filters won't work without files count integration
I merged feature/168-integration-file-counts here and updated the PR description @GPortas |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just tested it now and it works great. Thanks @MellyGray!
I only left a minor comment related to the code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
…-page-filters 167 - Files table UI [1/2] - Integration filters and search
What this PR does / why we need it:
This PR adds the integration of the js-dataverse use cases to get the files with filters and search text, including the files count info use case.
Which issue(s) this PR closes:
Special notes for your reviewer:
Changes
Notes
During the integration I realised that the getDatasetFileCounts needs an additional argument to take into account the filtered files. So we'll address that in this new issue
The e2e tests are failing in the Github Action because the dataverse branch haven't been merged yet. But they should work locally npm run test:e2e
Suggestions on how to test this:
Step 1: Run the development environment
npm I
cd packages/design-system && npm run build
cd ../../
.env
file such as the .env.example, with theVITE_DATAVERSE_BACKEND_URL=http://localhost:8000
variablecd dev-env
./run-env.sh 9834-files-api-extension-file-counts
Step 2: Test Dataset View mode with the implemented changes for the getDatasetFiles
?persistentId=doi:10.5072/FK2/LHGRHP&version=DRAFT
Does this PR introduce a user interface change? If mockups are available, please link/include them here:
No
Is there a release notes update needed for this change?:
Files Table filters and search integrated with the backend
Additional documentation: