-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add more attributes to output DTOs for negotiator resources #598
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #598 +/- ##
============================================
- Coverage 84.63% 84.61% -0.02%
Complexity 1011 1011
============================================
Files 150 150
Lines 3795 3797 +2
Branches 237 237
============================================
+ Hits 3212 3213 +1
- Misses 414 415 +1
Partials 169 169
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
please see comment, plus I would rather add unit tests for the mappers not heavy integration tests to test something as simple as mapping of attributes.
@@ -43,4 +43,7 @@ public class OrganizationDTO { | |||
|
|||
@Schema(description = "URI of the organization", example = "https://organization.org") | |||
private String uri; | |||
|
|||
@Schema(description = "Indicates if the organization is withdrawn", example = "false") |
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.
What does withdrawn mean? :)
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.
Changed to "revoked" in 4ec4c46
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.
what does revoked mean? :)
backend/src/main/java/eu/bbmri_eric/negotiator/governance/resource/ResourceModelMapper.java
Outdated
Show resolved
Hide resolved
@Nullable private String description; | ||
|
||
@Nullable private String contactEmail; | ||
|
||
@Nullable private String uri; | ||
|
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.
again this DTO is deprecated. The ResourceResponseModel and ResourceWithStatusDTO are used
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.
The problem here is that it has been deprecated, but several tests, changed in this PR, still use this class. Should we change again the tests and definitely remove this class ? Same in the code, for example ResourceModelMapper is still using it.
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.
do not remove the class for now, its fine that some tests use it
754b961
to
668da0c
Compare
… tests accordingly
3876d0f
to
ddcaa08
Compare
Negotiator pull request:
Description:
Not all attributes for Organizations, resources and Network are currently provided in the DTOs output objects (and so they are not available in the Frontend). This PR adds these attributes to the DTOs objects.
Checklist:
Make sure you tick all the boxes below if they are true or do not apply before you ask for review