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

fix: relationship used enrollment mapper for order DHIS2-15666 #16085

Merged
merged 2 commits into from
Jan 8, 2024

Conversation

teleivo
Copy link
Contributor

@teleivo teleivo commented Jan 5, 2024

  • fix relationship used enrollment mapper for order

    We used the relationship mapper to validate any order field can be ordered by. We then
    accidentally used the enrollment mapper to map from view names to internal domain names.
    That worked in this case since relationships can only be ordered by createdAt/Client
    which is also supported by enrollment

  • fix test names. these tests are in the export package and have nothing to do with import. Remove Import from their names. This allows IntelliJ to find their implementation again.

these tests are in the export package and have nothing to
do with import. Remove Import from their names. This allows
IntelliJ to find their implementation again
@teleivo teleivo requested review from enricocolasante and a team January 5, 2024 14:11
Copy link

codecov bot commented Jan 5, 2024

Codecov Report

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

Comparison is base (9264de8) 66.39% compared to head (b724c60) 66.40%.

Additional details and impacted files
@@            Coverage Diff            @@
##             master   #16085   +/-   ##
=========================================
  Coverage     66.39%   66.40%           
- Complexity    31529    31533    +4     
=========================================
  Files          3507     3507           
  Lines        130575   130575           
  Branches      15242    15242           
=========================================
+ Hits          86701    86712   +11     
+ Misses        36791    36784    -7     
+ Partials       7083     7079    -4     
Flag Coverage Δ
integration 50.30% <0.00%> (+<0.01%) ⬆️
integration-h2 32.36% <0.00%> (+<0.01%) ⬆️
unit 30.37% <50.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
.../relationship/RelationshipRequestParamsMapper.java 90.69% <50.00%> (ø)

... and 4 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9264de8...b724c60. Read the comment docs.

We used the relationship mapper to validate any order field can be ordered by. We then
accidentally used the enrollment mapper to map from view names to internal domain names.
That worked in this case since relationships can only be ordered by createdAt/Client
which is also supported by enrollment
@teleivo teleivo changed the title chore: fix wrongly renamed test files fix: relationship used enrollment mapper for order DHIS2-15666 Jan 5, 2024
@teleivo teleivo enabled auto-merge (squash) January 5, 2024 14:26
@teleivo teleivo requested review from enricocolasante and a team January 5, 2024 14:26
Copy link

sonarcloud bot commented Jan 5, 2024

@teleivo teleivo requested a review from a team January 8, 2024 08:37
@teleivo teleivo merged commit 4ce5291 into master Jan 8, 2024
17 checks passed
@teleivo teleivo deleted the tracker-fix-test-names branch January 8, 2024 15:21
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.

3 participants