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

Commit

Permalink
Merge pull request #1629 from 18F/rmh-3124-idk-clearance-xml
Browse files Browse the repository at this point in the history
Encode "I don't know" clearance level
  • Loading branch information
ryanhofdotgov authored Apr 23, 2019
2 parents 93349ef + 8806957 commit 2fecf4a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion api/templates/legal-investigations-investigated.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
<OtherAgency>{{text $Item.AgencyExplanation}}</OtherAgency>
{{end}}
{{end}}
<!-- XXX https://github.com/18F/e-QIP-prototype/issues/1489 -->
{{if notApplicable $Item.ClearanceLevelNotApplicable | eq "True"}}
<ClearanceLevel>Unknown</ClearanceLevel>
{{else}}
<ClearanceLevel>{{radio $Item.ClearanceLevel.props.Level | clearanceType}}</ClearanceLevel>
{{end}}
<EntryComment></EntryComment>
<GrantedDate>
{{monthYearOptional $Item.Granted $Item.GrantedNotApplicable}}
Expand Down
4 changes: 2 additions & 2 deletions api/testdata/complete-scenarios/test6.json
Original file line number Diff line number Diff line change
Expand Up @@ -2635,7 +2635,7 @@
"Level": {
"type": "radio",
"props": {
"value": "None"
"value": ""
}
},
"Explanation": {
Expand All @@ -2649,7 +2649,7 @@
"ClearanceLevelNotApplicable": {
"type": "notapplicable",
"props": {
"applicable": true
"applicable": false
}
},
"Completed": {
Expand Down
2 changes: 1 addition & 1 deletion api/testdata/complete-scenarios/test6.xml
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@
<Investigations>
<Investigation ID="1">
<Agency>Unknown</Agency>
<ClearanceLevel>None</ClearanceLevel>
<ClearanceLevel>Unknown</ClearanceLevel>
<GrantedDate>
<Date DoNotKnow="True">

Expand Down

0 comments on commit 2fecf4a

Please sign in to comment.