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: no access to tracker programs or no tracker programs DHIS2-17959 #19905

Merged
merged 3 commits into from
Feb 12, 2025

Conversation

teleivo
Copy link
Contributor

@teleivo teleivo commented Feb 11, 2025

Fixes bug introduced in #17343 (https://dhis2.atlassian.net/browse/DHIS2-17236)

The fix makes the assumption on which https://dhis2.atlassian.net/browse/DHIS2-17236 is built. TEs are meant to be tracked in tracker programs. Thus, a user must be able to enroll a TE into a tracker program to have access to the TE when its not enrolled yet.

This means that an instance without tracker programs can be treated like the above case.

Other changes

  • Renamed the params fields to make it clearer what they contain as it was not clear to me what program vs programs meant. They are mutually exclusive so we could think of ways to ensure this is the case on master (don't want to refactor more here).

Tests

@teleivo teleivo changed the title fix: wip DHIS2-17959 fix: DHIS2-17959 Feb 11, 2025
@teleivo teleivo changed the title fix: DHIS2-17959 fix: no access to tracker programs or no tracker programs DHIS2-17959 Feb 11, 2025
@teleivo teleivo marked this pull request as ready for review February 12, 2025 13:51
@teleivo teleivo requested a review from radnov February 12, 2025 13:51
To reduce the amount of backporting we have to do. Instructions on master
should work for all supported major versions.
@teleivo teleivo merged commit 24ce264 into 2.40 Feb 12, 2025
15 checks passed
@teleivo teleivo deleted the DHIS2-17959 branch February 12, 2025 14:49
teleivo added a commit that referenced this pull request Feb 13, 2025
…#19905)

* chore: make query param field names clearer

* chore: reuse docker config using anchors

* docs: refer to master for Docker related docs

To reduce the amount of backporting we have to do. Instructions on master
should work for all supported major versions.
teleivo added a commit that referenced this pull request Feb 13, 2025
…#19905) (#19917)

* chore: make query param field names clearer

* chore: reuse docker config using anchors

* docs: refer to master for Docker related docs

To reduce the amount of backporting we have to do. Instructions on master
should work for all supported major versions.
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