-
Notifications
You must be signed in to change notification settings - Fork 0
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
Include additional fields for submission table, UI updates #54
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
af1788a
Import additional submission fields and edit functionality for them
wilwong89 52e5b0b
Renaming frontend display of certain status types
wilwong89 c1dd710
Set defaults for isRentalUnit column and associated changes
wilwong89 b2f4abe
Add default CHES BCC for dev/test environments
kyle1morel 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ config: | |
enabled: true | ||
configMap: | ||
FRONTEND_APIPATH: api/v1 | ||
# FRONTEND_CHES_BCC: ~ | ||
FRONTEND_CHES_BCC: [email protected] | ||
FRONTEND_COMS_APIPATH: https://coms-dev.api.gov.bc.ca/api/v1 | ||
FRONTEND_COMS_BUCKETID: 1f9e1451-c130-4804-aeb0-b78b5b109c47 | ||
FRONTEND_OIDC_AUTHORITY: https://dev.loginproxy.gov.bc.ca/auth/realms/standard | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ config: | |
enabled: true | ||
configMap: | ||
FRONTEND_APIPATH: api/v1 | ||
# FRONTEND_CHES_BCC: ~ | ||
FRONTEND_CHES_BCC: [email protected] | ||
FRONTEND_COMS_APIPATH: https://coms-test.api.gov.bc.ca/api/v1 | ||
FRONTEND_COMS_BUCKETID: a9eabd1d-5f77-4c60-bf6b-83ffa0e21c59 | ||
FRONTEND_OIDC_AUTHORITY: https://test.loginproxy.gov.bc.ca/auth/realms/standard | ||
|
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
24 changes: 24 additions & 0 deletions
24
app/src/db/migrations/20240402000000_002-submission-updates.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { RENTAL_STATUS_LIST } from '../../components/constants'; | ||
import type { Knex } from 'knex'; | ||
|
||
export async function up(knex: Knex): Promise<void> { | ||
kyle1morel marked this conversation as resolved.
Show resolved
Hide resolved
|
||
return Promise.resolve().then(() => | ||
knex.schema.alterTable('submission', function (table) { | ||
table.text('contact_preference'); | ||
table.text('contact_applicant_relationship'); | ||
table.text('is_rental_unit').notNullable().defaultTo(RENTAL_STATUS_LIST.UNSURE); | ||
table.text('project_description'); | ||
}) | ||
); | ||
} | ||
|
||
export async function down(knex: Knex): Promise<void> { | ||
kyle1morel marked this conversation as resolved.
Show resolved
Hide resolved
|
||
return Promise.resolve().then(() => | ||
knex.schema.alterTable('submission', function (table) { | ||
table.dropColumn('project_description'); | ||
table.dropColumn('is_rental_unit'); | ||
table.dropColumn('contact_applicant_relationship'); | ||
table.dropColumn('contact_preference'); | ||
}) | ||
); | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,6 +51,8 @@ const FORM_EXPORT_1 = { | |
contactPhoneNumber: '1234567890', | ||
contactFirstName: 'ABC', | ||
contactLastName: 'DEF', | ||
contactPreference: 'phoneCall', | ||
contactApplicantRelationship: 'Agent', | ||
financiallySupported: true, | ||
intakeStatus: 'IN PROGRESS', | ||
isBCHousingSupported: true, | ||
|
@@ -67,6 +69,7 @@ const FORM_EXPORT_1 = { | |
singleFamilyUnits: '1-49', | ||
multiFamilyUnits: '', | ||
multiFamilyUnits1: '', | ||
isRentalUnit: 'unsureunsure', | ||
streetAddress: '123 Some Street', | ||
guidance: true, | ||
statusRequest: true, | ||
|
@@ -96,6 +99,9 @@ const FORM_EXPORT_2 = { | |
contactPhoneNumber: '1114448888', | ||
contactFirstName: 'Joe', | ||
contactLastName: 'Smith', | ||
contactPreference: 'Email', | ||
contactApplicantRelationship: 'Agent', | ||
|
||
financiallySupported: true, | ||
intakeStatus: 'IN PROGRESS', | ||
isBCHousingSupported: true, | ||
|
@@ -107,11 +113,13 @@ const FORM_EXPORT_2 = { | |
longitude: 178, | ||
naturalDisasterInd: true, | ||
projectName: 'BIG', | ||
projectDescription: 'some project description here', | ||
companyNameRegistered: 'BIGBUILD', | ||
queuePriority: '3', | ||
singleFamilyUnits: '>500', | ||
multiFamilyUnits: '', | ||
multiFamilyUnits1: '', | ||
isRentalUnit: 'yes', | ||
streetAddress: '112 Other Road', | ||
guidance: true, | ||
statusRequest: true, | ||
|
@@ -136,6 +144,8 @@ const FORM_SUBMISSION_1: Partial<Submission & { activityId: string; formId: stri | |
contactEmail: '[email protected]', | ||
contactPhoneNumber: '1234567890', | ||
contactName: 'ABC DEF', | ||
contactPreference: 'Phone Call', | ||
contactApplicantRelationship: 'Agent', | ||
financiallySupported: true, | ||
financiallySupportedBC: true, | ||
financiallySupportedIndigenous: true, | ||
|
@@ -149,6 +159,7 @@ const FORM_SUBMISSION_1: Partial<Submission & { activityId: string; formId: stri | |
projectName: 'PROJ', | ||
queuePriority: 3, | ||
singleFamilyUnits: '1-49', | ||
isRentalUnit: 'Unsure', | ||
streetAddress: '123 Some Street', | ||
submittedAt: FORM_EXPORT_1.form.createdAt, | ||
submittedBy: 'USERABC', | ||
|
@@ -165,6 +176,8 @@ const FORM_SUBMISSION_2: Partial<Submission & { activityId: string; formId: stri | |
contactEmail: '[email protected]', | ||
contactPhoneNumber: '1114448888', | ||
contactName: 'Joe Smith', | ||
contactPreference: 'Email', | ||
contactApplicantRelationship: 'Agent', | ||
financiallySupported: true, | ||
financiallySupportedBC: true, | ||
financiallySupportedIndigenous: true, | ||
|
@@ -176,8 +189,10 @@ const FORM_SUBMISSION_2: Partial<Submission & { activityId: string; formId: stri | |
longitude: 178, | ||
naturalDisaster: true, | ||
projectName: 'BIG', | ||
projectDescription: 'some project description here', | ||
queuePriority: 3, | ||
singleFamilyUnits: '>500', | ||
isRentalUnit: 'Yes', | ||
streetAddress: '112 Other Road', | ||
submittedAt: FORM_EXPORT_2.form.createdAt, | ||
submittedBy: 'USERABC', | ||
|
@@ -213,8 +228,12 @@ const SUBMISSION_1 = { | |
contactName: null, | ||
contactPhoneNumber: null, | ||
contactEmail: null, | ||
contactPreference: null, | ||
contactApplicantRelationship: null, | ||
projectName: null, | ||
projectDescription: null, | ||
singleFamilyUnits: null, | ||
isRentalUnit: 'Unsure', | ||
streetAddress: null, | ||
latitude: null, | ||
longitude: null, | ||
|
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.
May be get rid of extra line