-
Notifications
You must be signed in to change notification settings - Fork 1
Case overview children component #195
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
Draft
kevinchen220
wants to merge
15
commits into
main
Choose a base branch
from
KevinC/CaseOverviewChildrenComponent
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 4 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
14d3805
test data and scripts
4ad7e9e
initial testing commit
kevinchen220 fb9ff06
Merge branch 'KevinC/CaseOverviewChildrenComponent' into bowen/intake…
kevinchen220 586a54b
initial commit for child routes
kevinchen220 6a380a8
fix lint errors
kevinchen220 ea40aa1
fix lint errors
kevinchen220 1564e46
merge from main
omera26 ad5aae3
fix merge conflicts
omera26 536c2c7
implemented FE changes
omera26 9c947d5
Caregiver CaseOverview component
5f76384
implement child saving/getting/editing
omera26 f6920e0
merge from main
omera26 169f244
merge from caregiver branch
omera26 4e64eb6
merge with casePromptBox code and fix issues
omera26 ef83b1e
lint code
omera26 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| "(psycopg2.errors.InvalidTextRepresentation) invalid input value for enum intakes_court_status: \"i am not a valid court status\"\nLINE 1: ...1-01', 'Family Name', '1234321', 'INVESTIGATION', 'i am not ...\n ^\n\n[SQL: INSERT INTO intakes (user_id, intake_status, referring_worker_name, referring_worker_contact, referral_date, family_name, cpin_number, cpin_file_type, court_status, court_order_file, first_nation_heritage, first_nation_band, transportation_requirements, scheduling_requirements, suggested_start_date, date_accepted, access_location, lead_access_worker_id, denial_reason) VALUES (%(user_id)s, %(intake_status)s, %(referring_worker_name)s, %(referring_worker_contact)s, %(referral_date)s, %(family_name)s, %(cpin_number)s, %(cpin_file_type)s, %(court_status)s, %(court_order_file)s, %(first_nation_heritage)s, %(first_nation_band)s, %(transportation_requirements)s, %(scheduling_requirements)s, %(suggested_start_date)s, %(date_accepted)s, %(access_location)s, %(lead_access_worker_id)s, %(denial_reason)s) RETURNING intakes.id]\n[parameters: {'user_id': 1, 'intake_status': 'SUBMITTED', 'referring_worker_name': 'Referring Worker', 'referring_worker_contact': 'unused', 'referral_date': '2019-01-01', 'family_name': 'Family Name', 'cpin_number': '1234321', 'cpin_file_type': 'INVESTIGATION', 'court_status': 'i am not a valid court status', 'court_order_file': 'file binary', 'first_nation_heritage': 'i am also invalid', 'first_nation_band': 'first nation band', 'transportation_requirements': 'transport requirements', 'scheduling_requirements': 'scheduling requirements', 'suggested_start_date': '2019-01-01', 'date_accepted': None, 'access_location': None, 'lead_access_worker_id': None, 'denial_reason': None}]\n(Background on this error at: http://sqlalche.me/e/13/9h9h)" |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,73 @@ | ||
| { | ||
| "userId": 1, | ||
| "caseReferral": { | ||
| "referringWorker": "Referring Worker", | ||
| "referringWorkerContact": "unused", | ||
| "cpinFileNumber": "1234321", | ||
| "cpinFileType": "INVESTIGATION", | ||
| "familyName": "Family Name", | ||
| "referralDate": "2019-01-01" | ||
| }, | ||
| "courtInformation": { | ||
| "courtStatus": "i am not a valid court status", | ||
| "orderReferral": "file binary", | ||
| "firstNationHeritage": "i am also invalid", | ||
| "firstNationBand": "first nation band" | ||
| }, | ||
| "children": [ | ||
| { | ||
| "childInfo": { | ||
| "name": "Child Name", | ||
| "dateOfBirth": "2019-01-01", | ||
| "cpinFileNumber": "1234321", | ||
| "serviceWorker": "Service Worker", | ||
| "specialNeeds": "special needs", | ||
| "concerns": ["concern1", "concern2"] | ||
| }, | ||
| "daytimeContact": { | ||
| "name": "Daytime Contact", | ||
| "contactInfo": "contact info", | ||
| "address": "address", | ||
| "dismissalTime": "dismissal time" | ||
| }, | ||
| "provider": [ | ||
| { | ||
| "name": "Provider Name", | ||
| "fileNumber": "1234321", | ||
| "primaryPhoneNumber": "primary phone number", | ||
| "secondaryPhoneNumber": "secondary phone number", | ||
| "additionalContactNotes": "additional contact notes", | ||
| "relationshipToChild": "FOSTER_CAREGIVER" | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "caregivers": [ | ||
| { | ||
| "name": "Caregiver Name", | ||
| "dateOfBirth": "2019-01-01", | ||
| "primaryPhoneNumber": "primary phone number", | ||
| "secondaryPhoneNumber": "secondary phone number", | ||
| "additionalContactNotes": "additional contact notes", | ||
| "address": "address", | ||
| "relationshipToChild": "FOSTER_CAREGIVER", | ||
| "individualConsiderations": "individual considerations" | ||
| } | ||
| ], | ||
| "programDetails": { | ||
| "transportRequirements": "transport requirements", | ||
| "schedulingRequirements": "scheduling requirements", | ||
| "suggestedStartDate": "2019-01-01", | ||
| "shortTermGoals": ["goal1", "goal2"], | ||
| "longTermGoals": ["goal3", "goal4"], | ||
| "familialConcerns": ["concern1", "concern2"], | ||
| "permittedIndividuals": [ | ||
| { | ||
| "name": "Permitted Individual Name", | ||
| "phoneNumber": "phone number", | ||
| "relationshipToChildren": "relationship to children", | ||
| "additionalNotes": "additional notes" | ||
| } | ||
| ] | ||
| } | ||
| } |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| curl -X POST -H "Content-Type: application/json" -d @testbad.json http://localhost:5000/intake > testbad.html |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| { | ||
| "access_location": null, | ||
| "court_order_file": "file binary", | ||
| "court_status": "INTERIM_CARE", | ||
| "cpin_file_type": "INVESTIGATION", | ||
| "cpin_number": "1234321", | ||
| "date_accepted": null, | ||
| "denial_reason": null, | ||
| "family_name": "Family Name", | ||
| "first_nation_band": "first nation band", | ||
| "first_nation_heritage": "FIRST_NATION_REGISTERED", | ||
| "id": 8, | ||
| "intake_status": "SUBMITTED", | ||
| "lead_access_worker_id": null, | ||
| "referral_date": "Tue, 01 Jan 2019 00:00:00 GMT", | ||
| "referring_worker_contact": "unused", | ||
| "referring_worker_name": "Referring Worker", | ||
| "scheduling_requirements": "scheduling requirements", | ||
| "suggested_start_date": "Tue, 01 Jan 2019 00:00:00 GMT", | ||
| "transportation_requirements": "transport requirements", | ||
| "user_id": 1 | ||
| } |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,77 @@ | ||
| { | ||
| "userId": 1, | ||
| "caseReferral": { | ||
| "referringWorker": "Referring Worker", | ||
| "referringWorkerContact": "unused", | ||
| "cpinFileNumber": "1234321", | ||
| "cpinFileType": "INVESTIGATION", | ||
| "familyName": "Family Name", | ||
| "referralDate": "2019-01-01" | ||
| }, | ||
| "courtInformation": { | ||
| "courtStatus": "INTERIM_CARE", | ||
| "orderReferral": "file binary", | ||
| "firstNationHeritage": "FIRST_NATION_REGISTERED", | ||
| "firstNationBand": "first nation band" | ||
| }, | ||
| "children": [ | ||
| { | ||
| "childInfo": { | ||
| "first_name": "Child", | ||
| "last_name": "Child", | ||
| "dateOfBirth": "2019-01-01", | ||
| "cpinFileNumber": "1234321", | ||
| "serviceWorker": "Service Worker", | ||
| "specialNeeds": "special needs", | ||
| "concerns": ["concern1", "concern2"] | ||
| }, | ||
| "daytimeContact": { | ||
| "name": "Daytime Contact", | ||
| "contactInfo": "contact info", | ||
| "address": "address", | ||
| "dismissalTime": "dismissal time" | ||
| }, | ||
| "provider": [ | ||
| { | ||
| "name": "Provider Name", | ||
| "email": "[email protected]", | ||
| "address": "address", | ||
| "fileNumber": "1234321", | ||
| "primaryPhoneNumber": "primary phone number", | ||
| "secondaryPhoneNumber": "secondary phone number", | ||
| "additionalContactNotes": "additional contact notes", | ||
| "relationshipToChild": "FOSTER_CAREGIVER" | ||
| } | ||
| ] | ||
| } | ||
| ], | ||
| "caregivers": [ | ||
| { | ||
| "name": "Caregiver Name", | ||
| "dateOfBirth": "2019-01-01", | ||
| "email": "[email protected]", | ||
| "primaryPhoneNumber": "primary phone number", | ||
| "secondaryPhoneNumber": "secondary phone number", | ||
| "additionalContactNotes": "additional contact notes", | ||
| "address": "address", | ||
| "relationshipToChild": "FOSTER_CAREGIVER", | ||
| "individualConsiderations": "individual considerations" | ||
| } | ||
| ], | ||
| "programDetails": { | ||
| "transportRequirements": "transport requirements", | ||
| "schedulingRequirements": "scheduling requirements", | ||
| "suggestedStartDate": "2019-01-01", | ||
| "shortTermGoals": ["goal1", "goal2"], | ||
| "longTermGoals": ["goal3", "goal4"], | ||
| "familialConcerns": ["concern1", "concern2"], | ||
| "permittedIndividuals": [ | ||
| { | ||
| "name": "Permitted Individual Name", | ||
| "phoneNumber": "phone number", | ||
| "relationshipToChildren": "relationship to children", | ||
| "additionalNotes": "additional notes" | ||
| } | ||
| ] | ||
| } | ||
| } |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| curl -X POST -H "Content-Type: application/json" -d @testgood.json http://localhost:5000/intake > testgood.html |
This file contains hidden or 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 hidden or 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 hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.