Skip to content

chore: remove dhis-api EventService.get(id) DHIS2-17677 #17873

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

Merged
merged 1 commit into from
Jul 1, 2024
Merged

Conversation

teleivo
Copy link
Contributor

@teleivo teleivo commented Jun 24, 2024

Big picture

Tracker has multiple services for each entity like tracked entity, enrollment and event. One is in dhis-api and one in dhis-service-tracker. Our goal is to provide one API (service) per entity that is part of the tracker domain/team.

Trackers architecture splits read/write into exporter services and an importer. So if you want to get data you use an exporter. If you want to insert, update or delete you have to go through the importer. Only then can we ensure integrity of tracker data.

Another goal is that code that provides tracker functionality and is thus owned by the tracker team lives in ideally one maven module (We can settle on a name later on maybe dhis-service-tracker or dhis-tracker).

This is a big task that we are going to implement in many small steps.

This PR

Finding an event by an internal DB id is only used in tests. We do not
want to expose it in our tracker exporter services. We therefore remove it from the dhis-api service.

@teleivo teleivo force-pushed the DHIS2-17638 branch 2 times, most recently from d147b56 to e69d8f2 Compare June 28, 2024 08:55
@teleivo teleivo changed the title wip: move event service to tracker module DHIS2-17638 chore: move event service to tracker module DHIS2-17638 Jun 28, 2024
@teleivo teleivo marked this pull request as ready for review June 28, 2024 09:17
@teleivo teleivo requested a review from a team June 28, 2024 09:17
Finding an event by an internal DB id is only used in tests. We do not
want to expose it in our tracker exporter services.
Copy link

@teleivo teleivo requested a review from a team June 28, 2024 12:08
@teleivo teleivo enabled auto-merge (squash) July 1, 2024 05:52
@teleivo teleivo changed the title chore: move event service to tracker module DHIS2-17638 chore: remove dhis-api EventService.get(id) DHIS2-17638 Jul 1, 2024
@teleivo teleivo changed the title chore: remove dhis-api EventService.get(id) DHIS2-17638 chore: remove dhis-api EventService.get(id) DHIS2-17677 Jul 1, 2024
@teleivo teleivo merged commit 5210112 into master Jul 1, 2024
15 checks passed
@teleivo teleivo deleted the DHIS2-17638 branch July 1, 2024 08:57
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