Skip to content
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

Merged
merged 15 commits into from
Feb 21, 2024

Conversation

maryamkhan14
Copy link
Contributor

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.

@haxwell
Copy link
Contributor

haxwell commented Feb 13, 2024

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.

Copy link

codecov bot commented Feb 21, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (7f7cf57) 75.42% compared to head (8809b11) 75.34%.

Files Patch % Lines
...m/savvato/tribeapp/services/PhraseServiceImpl.java 93.75% 0 Missing and 2 partials ⚠️
...ain/java/com/savvato/tribeapp/entities/Phrase.java 50.00% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

public record PhraseWithUserCountDTO(Long id, Long adverbId, Long verbId, Long prepositionId, Long nounId,
Long userCount) {

@Override
Copy link
Contributor

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.

@haxwell haxwell merged commit 768b067 into savvato-software:develop Feb 21, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants