Skip to content

Commit

Permalink
[HOTBUGFIXING] Include ouMode in Events query
Browse files Browse the repository at this point in the history
  • Loading branch information
vgarciabnz committed Sep 26, 2019
1 parent 973b227 commit 7d281df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ final class EventEndpointCallFactory {
Callable<List<Event>> getCall(final EventQuery eventQuery) {
return () -> {

Call<Payload<Event>> call = service.getEvents(eventQuery.orgUnit(), eventQuery.program(),
eventQuery.trackedEntityInstance(), EventFields.allFields, Boolean.TRUE,
Call<Payload<Event>> call = service.getEvents(eventQuery.orgUnit(), eventQuery.ouMode().name(),
eventQuery.program(), eventQuery.trackedEntityInstance(), EventFields.allFields, Boolean.TRUE,
eventQuery.page(), eventQuery.pageSize(), eventQuery.lastUpdatedStartDate(), true);

return apiCallExecutor.executePayloadCall(call);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@

interface EventService {
String ORG_UNIT = "orgUnit";
String OU_MODE = "ouMode";
String PROGRAM = "program";
String TRACKED_ENTITY_INSTANCE = "trackedEntityInstance";
String FIELDS = "fields";
Expand All @@ -61,6 +62,7 @@ interface EventService {
@GET(EVENTS)
Call<Payload<Event>> getEvents(
@Query(ORG_UNIT) String orgUnit,
@Query(OU_MODE) String orgUnitMode,
@Query(PROGRAM) String program,
@Query(TRACKED_ENTITY_INSTANCE) String trackedEntityInstance,
@Query(FIELDS) @Which Fields<Event> fields,
Expand Down

0 comments on commit 7d281df

Please sign in to comment.