Commit 4869b6c
authored
refactor: DTOSS-7517 - Continued adding config classes for the rest of the functions (#793)
* Added AddCohortDistributionDataConfig.cs and used in AddCohortDistributionData function
* Added config class + changed Program.cs in RetrieveParticipantData function
* Added config class to ValidateCohortDistributionRecord + used in program.cs
* Added config class and program.cs treatment to DemographicDataManagementFunction
* Added new config scheme to DemographicDurableFunction
* Added config class to RetrievePDSDemographic
* Added CreateExceptionConfig for CreateException function
* Added AddParticipantConfig to AddParticipant Function
* Add CheckParticipantExistsConfig to CheckParticipantExists function
* Added config class to GetParticipantReferenceData function
* Added config class to RemoveParticipant function
* Added config class to UpdateParticipant function
* Added config class to UpdateParticipantFromScreeningProvider function
* Added config class to CreateParticipant function app
* Added config class to GetValidationExceptions function
* Added config classes to 3 functions: markParticipantAsEligible, markParticipantAsIneligible, updateParticipantDetails
* Added config class to RemoveValidationException function
* Cleared environment variable usage from rest of RetrieveMeshFile function
* Removed env var direct usage from CreateCohortDistribution function
* Removed all direct calls to env vars in RetrieveParticipantData function
* Removed environment variable usage from ValidateCohortDistributionRecord function
* Removed direct usage of env vars from RetrievePDSDemographic and addParticipant functions
* Removed env var usage from RemoveParticipant function app
* Removed env var direct usage from updateParticipant
* Removed env var direct usage from createParticipant function
* Removed env var direct usage from markParticipantAsIneligible function
* Removed direct env var usage from updateParticipantDetails function
* Removed env var usage from FileValidation function, added config class
* Updated FileValidation function Program.cs to include new config class
* Removed env var usage from StaticValidation function, added new StaticValidationConfig class
* Removed required flag on markParticipantAsIneligible in updateParticipant function
* Corrected FileValidationTests to inject new config object
* Corrected MarkParticipantAsIneligible unit tests to inject new config class
* Corrected CreateParticipantTest.cs unit tests to inject new config object
* Corrected more unit tests with prefilled config object
* Expanded and corrected config setup for RetrieveMeshFileTest
* Updated RetrievePdsDemographicTests to include new config item
* Updated UpdateParticipantDetailsTests to include new config
* Removed incorrect change to CreateParticipantTest.cs
* cleaned up and fixed MarkParticipantAsIneligibleTests
* Made markParticipantAsIneligible in UpdateParticipantConfig Required1 parent 99578b1 commit 4869b6c
72 files changed
Lines changed: 950 additions & 269 deletions
File tree
- application/CohortManager/src/Functions
- CaasIntegration/RetrieveMeshFile
- CohortDistributionServices
- AddCohortDistributionData
- CreateCohortDistribution
- RetrieveParticipantData
- ValidateCohortDistributionRecord
- DemographicServices
- DemographicDataManagementFunction
- DemographicDurableFunction
- RetrievePDSDemographic
- ExceptionHandling/CreateException
- ParticipantManagementServices
- CheckParticipantExists
- GetParticipantReferenceData
- RemoveParticipant
- UpdateParticipantFromScreeningProvider
- addParticipant
- updateParticipant
- ScreeningValidationService
- FileValidation
- RemoveValidationException
- StaticValidation
- screeningDataServices
- GetValidationExceptions
- createParticipant
- markParticipantAsEligible
- markParticipantAsIneligible
- updateParticipantDetails
- tests/UnitTests
- CaasIntegrationTests/retrieveMeshFileTest
- CohortDistributionTests
- CreateCohortDistributionTests
- RetrieveParticipantDataTests
- ValidateCohortDistributionRecordTests
- DemographicServicesTests/RetrievePDSDemographicTests
- ParticipantManagementServicesTests
- AddParticipantTest
- RemoveParticipantTests
- UpdateParticipantTests
- ScreeningDataServicesTests
- CreateParticipantTests
- MarkParticipantAsIneligibleTests
- UpdateParticipantDetailsTests
- ScreeningValidationServiceTests
- FileValidation
- StaticValidation
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
application/CohortManager/src/Functions/CaasIntegration/RetrieveMeshFile/RetrieveMeshFileConfig.cs
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | | - | |
19 | 20 | | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | | - | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
26 | | - | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
35 | 40 | | |
| |||
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
67 | | - | |
| 72 | + | |
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
| |||
121 | 126 | | |
122 | 127 | | |
123 | 128 | | |
124 | | - | |
| 129 | + | |
125 | 130 | | |
126 | 131 | | |
127 | 132 | | |
128 | 133 | | |
129 | 134 | | |
130 | 135 | | |
131 | | - | |
| 136 | + | |
132 | 137 | | |
133 | 138 | | |
134 | 139 | | |
| |||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | | - | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| 24 | + | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
26 | | - | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| 37 | + | |
34 | 38 | | |
35 | 39 | | |
36 | 40 | | |
| |||
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
71 | | - | |
| 75 | + | |
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
| |||
0 commit comments