forked from HHS/TANF-app
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2695 field spaces #2704
Merged
Merged
2695 field spaces #2704
Changes from 23 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
f94c1ff
- Added support to fields that can allow blanks as valid fields
elipe17 8a12d79
- Updating blank fields to not be required
elipe17 5ede638
- Fix lint errors
elipe17 49b148d
Merge branch 'develop' of https://github.com/raft-tech/TANF-app into …
elipe17 780a6c7
- updating fields to be required until guidance comes out on what is …
elipe17 0750677
- ADding None check
elipe17 c63ba74
- Error checking
elipe17 6f32a02
- Updated to run field validators even if field is empty but is allow…
elipe17 870c01d
- Switching back to numIsBlank
elipe17 c66fd8a
-Adding back numIsBlank
elipe17 ca0b22c
- adding isNone since empty string fields are also None
elipe17 45644e6
- Added all missing fields to test file
elipe17 ccb80fc
- Updating test
elipe17 265d498
- Fix lint errors
elipe17 78f108b
- Re-added missing fields
elipe17 2d96c9b
- Updated tests
elipe17 dfefa46
Merge branch 'develop' of https://github.com/raft-tech/TANF-app into …
elipe17 22d3fa5
Merge branch 'develop' of https://github.com/raft-tech/TANF-app into …
elipe17 6817519
- Fixing errors from merge
elipe17 18c987a
- Removed extra flag
elipe17 88cc777
- Fixed failing tests
elipe17 f444601
- Fix lint
elipe17 374ff3c
Merge branch 'develop' of https://github.com/raft-tech/TANF-app into …
elipe17 c6aba84
- Removing unnused validator
elipe17 ce8521d
Merge branch 'develop' of https://github.com/raft-tech/TANF-app into …
elipe17 9a53a06
Merge branch 'develop' into 2695-field-spaces
andrew-jameson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
value_is_empty
doesn't test for0
-filled strings, which i think is fine but worth calling out since we have other 'space'-fill operators (@
and#
). the end result currently is'000' -> 0
' ' -> None
'###' -> None
'@@@' -> None
maybe a possibility is to add
0
-fills tovalue_is_empty
so that0
becomesNone
for non-required fields, but i think this could cause side effects with actual0
values we want to preserve. moreover, i think you're currently meeting the requirements as i understand them - treat0
as0
but allow for space-filling as well - space filling just results in a slightly different result.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ya I didn't think we wanted to add zero fill to the
value_is_empty
function since there are so many fields across the schemas that expect zero as a valid value. I will point Alex at this as well to make sure everything is good.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ADPennington can you verify that this is the logic we want in these situations?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure i understand how we are using "#" and "@" but im seeing the expected behavior @elipe17 @jtimpe