Skip to content

Commit

Permalink
Merge pull request #8 from codeforamerica/initial_modifications_and_d…
Browse files Browse the repository at this point in the history
…b_changes

Initial Updates - migration changes and some code tweaks
  • Loading branch information
bseeger authored Jan 17, 2024
2 parents 3b29403 + 25cab0c commit 78221f2
Show file tree
Hide file tree
Showing 16 changed files with 12 additions and 250 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@
import formflow.library.data.Submission;
import org.springframework.stereotype.Component;

import static org.mdbenefits.app.submission.actions.SetExperimentGroups.ExperimentGroup.APPLY;
import static org.mdbenefits.app.utils.SubmissionUtilities.inExperimentGroup;
import static org.mdbenefits.app.utils.SubmissionUtilities.isNolaParish;

@Component
public class EligibleForNolaWicEceApply implements Condition {

@Override
public Boolean run(Submission submission) {
return isNolaParish(submission) && inExperimentGroup(APPLY.name(), submission);
return isNolaParish(submission);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@
import formflow.library.data.Submission;
import org.springframework.stereotype.Component;

import static org.mdbenefits.app.submission.actions.SetExperimentGroups.ExperimentGroup.LINK;
import static org.mdbenefits.app.utils.SubmissionUtilities.inExperimentGroup;
import static org.mdbenefits.app.utils.SubmissionUtilities.isNolaParish;

@Component
public class EligibleForNolaWicEceLinks implements Condition {

@Override
public Boolean run(Submission submission) {
return isNolaParish(submission) && inExperimentGroup(LINK.name(), submission);
return isNolaParish(submission);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@
import formflow.library.data.Submission;
import org.springframework.stereotype.Component;

import static org.mdbenefits.app.submission.actions.SetExperimentGroups.ExperimentGroup.APPLY;
import static org.mdbenefits.app.utils.SubmissionUtilities.inExperimentGroup;
import static org.mdbenefits.app.utils.SubmissionUtilities.isNolaParish;

@Component
public class EligibleForOutsideNolaWicApply implements Condition {

@Override
public Boolean run(Submission submission) {
return !isNolaParish(submission) && inExperimentGroup(APPLY.name(), submission);
return !isNolaParish(submission);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@
import formflow.library.data.Submission;
import org.springframework.stereotype.Component;

import static org.mdbenefits.app.submission.actions.SetExperimentGroups.ExperimentGroup.LINK;
import static org.mdbenefits.app.utils.SubmissionUtilities.inExperimentGroup;
import static org.mdbenefits.app.utils.SubmissionUtilities.isNolaParish;

@Component
public class EligibleForOutsideNolaWicLinks implements Condition {

@Override
public Boolean run(Submission submission) {
return !isNolaParish(submission) && inExperimentGroup(LINK.name(), submission);
return !isNolaParish(submission);
}
}
6 changes: 6 additions & 0 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ spring:
demo:
- demo
- form-flow-library
staging:
- staging
- form-flow-library
prod:
- prod
- form-flow-library
security:
user:
name: ${DEFAULT_USER}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion src/main/resources/flows-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ flow:
nextScreens:
- name: householdPregnancy
householdPregnancy:
beforeSaveAction: SetExperimentGroups
nextScreens:
- name: householdPregnancyWho
condition: IsPregnant
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/templates/mdBenefitsFlow/wicLinks.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<span class="spacing-below-25" th:text="#{wic-links.at-the-end-of-this-app}"></span>
</div>
<th:block
th:replace="~{fragments/form :: form(action=('/flow/' + ${flow} + '/'+ ${screen} + '/submit' ), content=~{::submitForm})}">
<th:block th:ref="submitForm">
th:replace="~{fragments/form :: form(action=(${formAction}), content=~{::content})}">
<th:block th:ref="content">
<div class="form-card__footer spacing-below-60">
<th:block th:replace="~{fragments/inputs/yesOrNo :: yesOrNo(
label=#{wic-links.are-you-interested},
Expand Down

This file was deleted.

0 comments on commit 78221f2

Please sign in to comment.