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: attributes from TET are exported even when TET is not connected to programs [DHIS2-16397] #16148

Merged
merged 4 commits into from
Jan 12, 2024

Conversation

gnespolino
Copy link
Contributor

The current implementation of the analytic table export job has a limitation. When processing attributes, the job only exports columns for attributes that are connected to a program. However, this is not entirely accurate. There can be attributes for a Tracked Entity Type (TET) that are not referenced by any program but should still be exported. Fortunately, this issue has been addressed by this pull request (PR) that resolves the problem.

Copy link

codecov bot commented Jan 11, 2024

Codecov Report

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

Comparison is base (f25e152) 66.47% compared to head (d335785) 66.48%.

Additional details and impacted files
@@            Coverage Diff            @@
##             master   #16148   +/-   ##
=========================================
  Coverage     66.47%   66.48%           
- Complexity    31624    31625    +1     
=========================================
  Files          3513     3513           
  Lines        131125   131125           
  Branches      15298    15298           
=========================================
+ Hits          87171    87174    +3     
+ Misses        36830    36827    -3     
  Partials       7124     7124           
Flag Coverage Δ
integration 50.02% <37.50%> (+<0.01%) ⬆️
integration-h2 32.64% <0.00%> (+<0.01%) ⬆️
unit 30.37% <0.00%> (ø)

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

Files Coverage Δ
.../analytics/table/JdbcTeiAnalyticsTableManager.java 77.16% <37.50%> (+0.78%) ⬆️

... and 3 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 f25e152...d335785. Read the comment docs.

@gnespolino gnespolino added the run-api-analytics-tests Enables analytics e2e tests label Jan 11, 2024
Copy link

sonarcloud bot commented Jan 12, 2024

@gnespolino gnespolino merged commit aa03324 into master Jan 12, 2024
17 checks passed
@gnespolino gnespolino deleted the DHIS2-16397_TET-attrib branch January 12, 2024 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-api-analytics-tests Enables analytics e2e tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants