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

Create use case for getting file type search results in a collection #170

Closed
ekraffmiller opened this issue Jul 30, 2024 · 1 comment · Fixed by #181
Closed

Create use case for getting file type search results in a collection #170

ekraffmiller opened this issue Jul 30, 2024 · 1 comment · Fixed by #181
Assignees
Labels
FY25 Sprint 4 FY25 Sprint 4 GREI Re-arch GREI re-architecture-related Original size: 10 Size: 10 A percentage of a sprint. 7 hours. SPA: Collection Page SPA.Q3.1 Collection page results of all types

Comments

@ekraffmiller
Copy link
Contributor

ekraffmiller commented Jul 30, 2024

For the Collection page, we need to display the files that belong to the collection.
The file items will be read from the search results of that collection, and be returned as FilePreview objects.

Here is a sample search result for file type:

{
       "name": "MetaVideoGame2011-04-27_2011-04-30.tab",
       "type": "file",
       "url": "http://localhost:8080/api/access/datafile/12",
       "file_id": "12",
       "description": "Metadata video description",
       "published_at": "2024-07-29T18:12:42Z",
       "file_type": "Tab-Delimited",
       "file_content_type": "text/tab-separated-values",
       "size_in_bytes": 1978,
       "md5": "baaddf33c34f281d8b5c8c6adec30a1a",
       "checksum": {
         "type": "MD5",
         "value": "baaddf33c34f281d8b5c8c6adec30a1a"
       },
       "unf": "UNF:6:zFwFCrc+bxF7TBUNdf7vTw==",
       "dataset_name": "Second Dataset",
       "dataset_id": "11",
       "dataset_persistent_id": "doi:10.5072/FK2/SZZHLN",
       "dataset_citation": "Admin, Dataverse, 2024, \"Second Dataset, with updated\", https://doi.org/10.5072/FK2/SZZHLN, Root, DRAFT VERSION, UNF:6:zFwFCrc+bxF7TBUNdf7vTw== [fileUNF]"
     },
@ekraffmiller ekraffmiller added SPA: Collection Page GREI Re-arch GREI re-architecture-related labels Jul 30, 2024
@GPortas GPortas assigned GPortas and unassigned GPortas Aug 8, 2024
@GPortas GPortas added the Size: 10 A percentage of a sprint. 7 hours. label Aug 8, 2024
@GPortas
Copy link
Contributor

GPortas commented Aug 8, 2024

@ekraffmiller In this issue we can include publicationStatus, both for datasets and files, without having to create a separate issue, since in this issue the use case and models for the collection results will be modified.

@GPortas GPortas moved this to This Sprint 🏃‍♀️ 🏃 in IQSS Dataverse Project Aug 8, 2024
@GPortas GPortas self-assigned this Aug 13, 2024
@cmbz cmbz added the FY25 Sprint 4 FY25 Sprint 4 label Aug 14, 2024
@GPortas GPortas added SPA.Q3.1 Collection page results of all types Original size: 10 labels Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FY25 Sprint 4 FY25 Sprint 4 GREI Re-arch GREI re-architecture-related Original size: 10 Size: 10 A percentage of a sprint. 7 hours. SPA: Collection Page SPA.Q3.1 Collection page results of all types
Projects
None yet
3 participants