Skip to content

Conversation

@ekraffmiller
Copy link
Contributor

@ekraffmiller ekraffmiller commented Jun 2, 2025

What this PR does / why we need it:

Update the return type of the use case so it more closely matches what is being returned by the API

Which issue(s) this PR closes:

Special notes for your reviewer:

Note that this is a breaking change, so it would be good to wait to merge this until the PR for the frontend change is ready also: IQSS/dataverse-frontend#734.

Suggestions on how to test this:

Review test code

@ekraffmiller ekraffmiller marked this pull request as draft June 2, 2025 19:01
@ekraffmiller ekraffmiller marked this pull request as ready for review June 3, 2025 13:08
@ekraffmiller ekraffmiller added SPA.Q2.1 Account Page: My Data Section GREI Re-arch GREI re-architecture-related FY25 Sprint 24 FY25 Sprint 24 (2025-05-21 - 2025-06-04) Size: 3 A percentage of a sprint. 2.1 hours. Original size: 3 labels Jun 3, 2025
@ekraffmiller ekraffmiller moved this to Ready for Review ⏩ in IQSS Dataverse Project Jun 3, 2025
@g-saracca g-saracca moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project Jun 3, 2025
@g-saracca g-saracca self-assigned this Jun 3, 2025
@ekraffmiller ekraffmiller removed their assignment Jun 3, 2025
g-saracca
g-saracca previously approved these changes Jun 3, 2025
@github-project-automation github-project-automation bot moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project Jun 3, 2025
@g-saracca g-saracca removed their assignment Jun 3, 2025
@ofahimIQSS ofahimIQSS moved this from Ready for QA ⏩ to Ready for Review ⏩ in IQSS Dataverse Project Jun 3, 2025
@ekraffmiller
Copy link
Contributor Author

ekraffmiller commented Jun 4, 2025

Hi @g-saracca, I had to update the imports for PublicationStatus to get this to work in my frontend PR (IQSS/dataverse-frontend#737). It seems that including 'src' in the relative path doesn't cause a compile error, but causes an error when using the library. Can you review again please? (I also added PublicationStatus to the exports, but I'm not sure if I need to do that)

g-saracca
g-saracca previously approved these changes Jun 4, 2025
Copy link
Contributor

@g-saracca g-saracca left a comment

Choose a reason for hiding this comment

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

@ekraffmiller, looks good and yes, you only need to export a type from the library if you need it from the consumer application. In the SPA side we have our own PublicationStatus enum, but anyways is ok if you leave that enum export

@github-project-automation github-project-automation bot moved this from Ready for Review ⏩ to Ready for QA ⏩ in IQSS Dataverse Project Jun 4, 2025
@cmbz cmbz added the FY25 Sprint 25 FY25 Sprint 25 (2025-06-04 - 2025-06-18) label Jun 4, 2025
@g-saracca g-saracca moved this from Ready for QA ⏩ to In Progress 💻 in IQSS Dataverse Project Jun 5, 2025
@g-saracca g-saracca self-assigned this Jun 5, 2025
@g-saracca g-saracca moved this from In Progress 💻 to Ready for Review ⏩ in IQSS Dataverse Project Jun 5, 2025
@github-project-automation github-project-automation bot moved this from Ready for Review ⏩ to Ready for QA ⏩ in IQSS Dataverse Project Jun 5, 2025
@ofahimIQSS ofahimIQSS merged commit 05f7d3f into develop Jun 5, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Ready for QA ⏩ to Merged 🚀 in IQSS Dataverse Project Jun 5, 2025
@ofahimIQSS
Copy link
Contributor

Tests passing- merging

@ofahimIQSS ofahimIQSS deleted the 304-mydata-collection-items-return-type branch June 5, 2025 20:41
@pdurbin pdurbin moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project Jun 16, 2025
@cmbz cmbz added the FY26 Sprint 4 FY26 Sprint 4 (2025-08-13 - 2025-08-27) label Aug 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY25 Sprint 24 FY25 Sprint 24 (2025-05-21 - 2025-06-04) FY25 Sprint 25 FY25 Sprint 25 (2025-06-04 - 2025-06-18) FY26 Sprint 4 FY26 Sprint 4 (2025-08-13 - 2025-08-27) GREI Re-arch GREI re-architecture-related Original size: 3 Size: 3 A percentage of a sprint. 2.1 hours. SPA.Q2.1 Account Page: My Data Section

Projects

Status: Done 🧹

Development

Successfully merging this pull request may close these issues.

Update the return type of getMyData use case

5 participants