Closed MellyGray closed 9 months ago
Looks good.
We need also to export the
FilesSubset
model in theindex.ts
file of the files folder, just as we do with theDatasetPreviewSubset
I addressed the change. But I'm worried about what would had happened if you hadn't noticed. I think that somehow we need some tests to test the package from the outside. To force the check on these index exports, and also ensure that the package functions properly when used as a library
Looks good. We need also to export the
FilesSubset
model in theindex.ts
file of the files folder, just as we do with theDatasetPreviewSubset
I addressed the change. But I'm worried about what would had happened if you hadn't noticed. I think that somehow we need some tests to test the package from the outside. To force the check on these index exports, and also ensure that the package functions properly when used as a library
Yes. There is an open issue related to functional tests that would be useful for what you mention: https://github.com/IQSS/dataverse-client-javascript/issues/81
I just updated the issue to link to this comment.
What this PR does / why we need it:
This PR introduces
totalFilesCount
to theGetDatasetFiles
use case, which is essential for pagination. This ensures consistency with the pagination implementation, as seen inDatasetPreviewSubset
.Which issue(s) this PR closes:
Related Dataverse PRs:
Special notes for your reviewer:
The implementation should be consistent with GetAllDatasetPreviews implementation, so just compare the code with that use case
Suggestions on how to test this:
Run integration tests or review GitHub action execution