-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avniproject/avni-client#1172 | Introduce new fields in RuleFailureTel…
…emetry
- Loading branch information
Showing
7 changed files
with
148 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
avni-server-api/src/main/java/org/avni/server/domain/enums/ruleFailure/AppType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package org.avni.server.domain.enums.ruleFailure; | ||
|
||
public enum AppType { | ||
Android, Web | ||
} |
5 changes: 5 additions & 0 deletions
5
avni-server-api/src/main/java/org/avni/server/domain/enums/ruleFailure/EntityType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package org.avni.server.domain.enums.ruleFailure; | ||
|
||
public enum EntityType { | ||
Individual, ProgramEnrolment, ProgramEncounter, Encounter, WorkList, Checklist, ReportCard; | ||
} |
5 changes: 5 additions & 0 deletions
5
avni-server-api/src/main/java/org/avni/server/domain/enums/ruleFailure/SourceType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package org.avni.server.domain.enums.ruleFailure; | ||
|
||
public enum SourceType { | ||
Decision, VisitSchedule, Validation, EnrolmentSummary, SubjectSummary, WorkListUpdation, ManualEnrolmentEligibilityCheckRule, EnrolmentEligibilityCheck, EncounterEligibilityCheck, Checklist, FormElement, FormElementGroup, OldRule, ReportCard | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
avni-server-api/src/main/resources/db/migration/V1_320__AddColumnsToRuleFailureTelemetry.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
ALTER TABLE public.rule_failure_telemetry | ||
ADD COLUMN IF NOT EXISTS source_type VARCHAR(255), | ||
ADD COLUMN IF NOT EXISTS source_id VARCHAR(255), | ||
ADD COLUMN IF NOT EXISTS entity_type VARCHAR(255), | ||
ADD COLUMN IF NOT EXISTS entity_id VARCHAR(255), | ||
ADD COLUMN IF NOT EXISTS app_type VARCHAR(255); | ||
|
||
ALTER TABLE public.rule_failure_telemetry | ||
RENAME COLUMN close_date_time TO closed_date_time; | ||
|
||
ALTER TABLE public.rule_failure_telemetry | ||
ALTER COLUMN rule_uuid DROP NOT NULL; |