-
Notifications
You must be signed in to change notification settings - Fork 21
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
TRIB-174: Ensure user count is included when attribute is returned #152
Conversation
Let's review this one in person in tonight's meeting. Nothing really wrong, but there's more work, and it's easier to discuss in person. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #152 +/- ##
=============================================
- Coverage 75.42% 75.34% -0.09%
+ Complexity 652 646 -6
=============================================
Files 98 99 +1
Lines 1994 1983 -11
Branches 269 260 -9
=============================================
- Hits 1504 1494 -10
- Misses 446 451 +5
+ Partials 44 38 -6 ☔ View full report in Codecov by Sentry. |
…seId method temporarily
- Project JOIN query result to PhraseWithUserCountDTO
750ec99
to
8809b11
Compare
public record PhraseWithUserCountDTO(Long id, Long adverbId, Long verbId, Long prepositionId, Long nounId, | ||
Long userCount) { | ||
|
||
@Override |
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.
Why do you override the equals() method, rather than use the generated method?
Also, we need to create another ticket to change the rest of the DTOs to records, so we can maintain consistency.
Based on our meeting discussions, attribute user count should be included in the information returned when an attribute is requested by its ID. This would eliminate the need for a separate endpoint that fetches attribute user count, so this PR removes that endpoint and ensures that user count is incorporated in the information returned upon attribute requests.