-
Notifications
You must be signed in to change notification settings - Fork 10
Change return type of getMyDataCollectionItems use case #313
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
Conversation
|
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
left a comment
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.
@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
|
Tests passing- merging |
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