Skip to content

Add use cases for file tab data visualization#80

Merged
kcondon merged 27 commits intodevelopfrom
77-files-display-data-use-cases
Aug 25, 2023
Merged

Add use cases for file tab data visualization#80
kcondon merged 27 commits intodevelopfrom
77-files-display-data-use-cases

Conversation

@GPortas
Copy link
Contributor

@GPortas GPortas commented Jul 20, 2023

What this PR does / why we need it:

Adds the use case logic to support the frontend files tab display data.

The new use case logic needs the API changes implemented in IQSS/dataverse#9692 to work.

In particular, this PR adds the following new use cases to the package:

  • getDatasetFiles
  • getFileDownloadCount
  • getFileDataTables
  • getUserPermissionsOnFile

In addition, the dataset use cases have been refactored. In particular, the old getDatasetById and getDatasetByPersistentId use cases are merged into a single getDataset use case, which is inferring the type of id specified.

Which issue(s) this PR closes:

Suggestions on how to test this:

  • Visual inspection of the code
  • Check unit and integration tests execution in GitHub actions

Is there a release notes update needed for this change?:

New use cases for files:

  • getDatasetFiles
  • getFileDownloadCount
  • getFileDataTables
  • getUserPermissionsOnFile

@GPortas GPortas self-assigned this Jul 20, 2023
@GPortas GPortas marked this pull request as ready for review July 24, 2023 10:33
@GPortas GPortas removed their assignment Jul 24, 2023
@pdurbin pdurbin changed the title 77 - Add use cases for file tab data visualization Add use cases for file tab data visualization Jul 24, 2023
@GPortas GPortas added the Size: 10 A percentage of a sprint. 7 hours. label Aug 2, 2023
@GPortas GPortas self-assigned this Aug 2, 2023
@GPortas GPortas added Size: 3 A percentage of a sprint. 2.1 hours. Size: 10 A percentage of a sprint. 7 hours. and removed Size: 10 A percentage of a sprint. 7 hours. Size: 3 A percentage of a sprint. 2.1 hours. labels Aug 2, 2023
@GPortas GPortas removed their assignment Aug 9, 2023
Copy link
Contributor

@MellyGray MellyGray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Tests passing
✅ Code looks good overall (Just a few comments, not critical things so I don't want to block this PR)

@GPortas GPortas removed their assignment Aug 18, 2023
@GPortas GPortas requested a review from MellyGray August 18, 2023 08:39
@MellyGray MellyGray assigned GPortas and unassigned GPortas Aug 18, 2023
Copy link
Contributor

@MellyGray MellyGray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All threads solved! There is some refactoring going on in another PR to not block this one. Moving this to QA!

@MellyGray MellyGray removed their assignment Aug 18, 2023
@kcondon kcondon self-assigned this Aug 25, 2023
@kcondon kcondon merged commit 01f9e16 into develop Aug 25, 2023
@kcondon kcondon deleted the 77-files-display-data-use-cases branch August 25, 2023 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Size: 10 A percentage of a sprint. 7 hours.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Spike] [1/2] Add use case logic to get display file data for the frontend files tab

3 participants