Skip to content
This repository has been archived by the owner on Sep 19, 2021. It is now read-only.

Encapsulate alternate address behavior #1113

Merged
merged 4 commits into from Nov 7, 2018
Merged

Conversation

el-mapache
Copy link
Contributor

Completes #1107, #1108

  • Should make it easier to reuse this functionality in the code
  • Adds AlternateAddress to employment and the reference address section of the History subsection

@el-mapache el-mapache self-assigned this Nov 6, 2018
* adds higher order component to supply necessary dependencies to
wrapped components
@codecov
Copy link

codecov bot commented Nov 6, 2018

Codecov Report

Merging #1113 into develop will increase coverage by 0.02%.
The diff coverage is 76.92%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1113      +/-   ##
===========================================
+ Coverage    47.01%   47.03%   +0.02%     
===========================================
  Files          681      683       +2     
  Lines        27470    27487      +17     
  Branches      3403     3407       +4     
===========================================
+ Hits         12914    12928      +14     
- Misses       14196    14199       +3     
  Partials       360      360
Flag Coverage Δ
#backend 8.19% <ø> (ø) ⬆️
#frontend 90.21% <76.92%> (-0.02%) ⬇️
Impacted Files Coverage Δ
src/schema/section/history-residence.js 100% <ø> (ø) ⬆️
...onents/Section/History/Residence/ResidenceItem.jsx 62.5% <ø> (+0.33%) ⬆️
src/schema/section/history-employment.js 100% <ø> (ø) ⬆️
...ents/Section/History/Employment/EmploymentItem.jsx 75.32% <100%> (+0.32%) ⬆️
...components/Section/History/Residence/Residence.jsx 44.44% <100%> (+2.13%) ⬆️
...ponents/Form/Location/alternateAddressProvider.jsx 100% <100%> (ø)
...mponents/Section/History/Employment/Employment.jsx 63.88% <100%> (+1.03%) ⬆️
src/components/Form/Location/AlternateAddress.jsx 77.77% <61.53%> (-7.94%) ⬇️
src/schema/form/alternateaddress.js 66.66% <66.66%> (ø)
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9cdde70...775e754. Read the comment docs.

@el-mapache el-mapache changed the title (WIP) encapsulate alternate address behavior Encapsulate alternate address behavior Nov 6, 2018
@ryanhofdotgov
Copy link
Contributor

@el-mapache Still poking it, but here is one data point:

If I add a self-employed entry, and enter an "Outside of the US" address for verifier, and then click "No" to following APO question, then:

  • APO question disappears
  • Address field set is cleared and set to "In the United States"

screen shot 2018-11-06 at 3 42 40 pm

@ryanhofdotgov
Copy link
Contributor

Also:

  • Same thing happens with unemployment. And also if you click "Yes" instead of "No" to APO question
  • Can't enter in an APO address for primary verifier address – clicking on the APO/FPO button leaves (or resets) the address to the domestic field set.

But the residence verifier workflow looks good 👍

@el-mapache
Copy link
Contributor Author

Thanks, working on fixing now!

@el-mapache el-mapache force-pushed the ab-924-employment branch 2 times, most recently from 9ad86fe to 775e754 Compare November 7, 2018 01:21
@el-mapache
Copy link
Contributor Author

@ryanhofdotgov I think this should be good to go, thanks again for reviewing

@ryanhofdotgov
Copy link
Contributor

I'm seeing an odd problem, but have split if off into #1117

@ryanhofdotgov ryanhofdotgov merged commit b377086 into develop Nov 7, 2018
@ryanhofdotgov ryanhofdotgov deleted the ab-924-employment branch November 7, 2018 07:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants