I have created voucher Code Suffix in network models, to update conversion to domain
I have modified existed tests
I have created columns for suffix in QuestionDB and I have updated conversion to db models and tests
I have created question migration
I have created new field visible_voucher_uid on survey db and domain models
I have created survey migration
I have created VoucherSuffixDomainService to calculate suffix and I have created tests
The visible vocuher uid is shown on alert after send survey and in survey list
The push send voucheruid without suffix to server
:boom: How can it be tested?
Add suffix to questions in server configuration according to requirements document and login with user HN_TEST_IPC
UseCase 1: create a new survey with voucher uid and select Contraceptive methods counselling the visible voucher uid should be xxxxxx_MAC
UseCase 2: create a new survey with voucher uid and select Medical consultation the visible voucher uid should be xxxxxx_SSR
UseCase 3: create a new survey with voucher uid and select HIV testing the visible voucher uid should be xxxxxx_PVC
UseCase 4: create a new survey with voucher uid and select Citology the visible voucher uid should be xxxxxx_CIT
UseCase 5: create a new survey with voucher uid and select Other STI the visible voucher uid should be xxxxxx_ITS
UseCase 6: create a new survey with voucher uid and select Contraceptive methods counselling, Medical consultation, HIV testing, Citology and Other STI the visible voucher uid should be xxxxxx_MAC_SSR_PVC_CIT_ITS
Last, change variant to EreferralsStaging and run unit and instrumentation tests.
Remember change variant againto EreferralsDebug
:floppy_disk: Requires DB migration?
[ ] Nope, we can just merge this branch.
[ ] Yes, but we need to apply it before merging this branch.
[x] Yes, it's already applied.
:art: UI changes?
[x] Nope, the UI remains as beautiful as it was before!
:pushpin: References
:gear: branches
app: Origin: maintenance/voucher_code_suffix Target: v1.4_connect bugshaker-android: Origin: downgrade_gradle_version
EyeSeeTea-SDK: Origin: development
:tophat: What is the goal?
Customize voucher codes in the format of: [vouchercode] + ‘’ + [servicecode1] (+ ‘’ + [service_codeX] ...)
:memo: How is it being implemented?
To every question with suffix should have the next structure:
:boom: How can it be tested?
Add suffix to questions in server configuration according to requirements document and login with user HN_TEST_IPC
UseCase 1: create a new survey with voucher uid and select Contraceptive methods counselling the visible voucher uid should be xxxxxx_MAC
UseCase 2: create a new survey with voucher uid and select Medical consultation the visible voucher uid should be xxxxxx_SSR
UseCase 3: create a new survey with voucher uid and select HIV testing the visible voucher uid should be xxxxxx_PVC
UseCase 4: create a new survey with voucher uid and select Citology the visible voucher uid should be xxxxxx_CIT
UseCase 5: create a new survey with voucher uid and select Other STI the visible voucher uid should be xxxxxx_ITS
UseCase 6: create a new survey with voucher uid and select Contraceptive methods counselling, Medical consultation, HIV testing, Citology and Other STI the visible voucher uid should be xxxxxx_MAC_SSR_PVC_CIT_ITS
Last, change variant to EreferralsStaging and run unit and instrumentation tests. Remember change variant againto EreferralsDebug
:floppy_disk: Requires DB migration?
:art: UI changes?