forked from bloom-housing/bloom
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: null check on option links (bloom-housing#3897) * fix: adjust spacing for preference application checkboxes (bloom-housing#3868) * feat: limit user names allowed (bloom-housing#3908) * fix: the Save and Return link should only show after the Review step has been reached (bloom-housing#3901) * fix: 3898/passwordless schema changes (bloom-housing#3902) * feat: mfaCode -> singleUseCode * feat: adding new field to jurisdiction * fix: call submit directly from onClick (bloom-housing#3907) * feat: single use code request endpoint (bloom-housing#3915) * feat: single use code request endpoint * fix: updating mocks * fix: update per Em and Emily * fix: updates after convo with eric * fix: updates to tests * fix: export activity interceptor (bloom-housing#3926) * fix: export activity interceptor * fix: import path * fix: improve export logging tests * fix: tidy up implementation * fix: commenting for clarity * fix: user update/create fixes (bloom-housing#3932) * feat: fixes from hba into core (bloom-housing#3910) * fix: limit the characters for name on user (#667) * fix: fixes password out of date error messaging (#669) * fix: fixes password out of date error messaging * fix: prod error fixes * fix: test fix * fix: public site fix take 2 (#670) * feat: new endpoint, forgot pwd fix (#671) * feat: new endpoint, forgot pwd fix * feat: using new endpoint to public * fix: update per morgan * fix: updates to pr * fix: new test to get us over coverage * fix: update per morgan * fix: add all of the jurisdiction data to external (#672) * fix: add all of the jurisdiction data to external * fix: use correct field name * fix: add security around application list (#674) * fix: add security around application list * fix: test fixes * fix: coverage requirement drop --------- Co-authored-by: Morgan Ludtke <[email protected]> * fix: load shared helpers tailwind (bloom-housing#3929) * fix: update to correct juris on change requested (bloom-housing#3934) * fix: include demographics in partners applicant csv export (bloom-housing#3933) * fix: add flag to include demographics for partners * refactor: change migration folder name * chore(deps): bump ip from 1.1.5 to 1.1.9 (bloom-housing#3895) * refactor: uptake and merge card (bloom-housing#3922) * fix: underscores in translations (bloom-housing#3925) * fix: limit requestedChangesUser in Listings response (bloom-housing#3921) * feat: connect up requsted changes user properly * fix: limit requestedChangesUser in Listings response bloom-housing#3889 * fix: update api service unit tests bloom-housing#3889 * fix: add details view unit test bloom-housing#3889 * fix: send id and name bloom-housing#3889 * fix: correct inport statement * fix: addressing comments bloom-housing#3889 * fix: cleanup swagger changes bloom-housing#3889 * fix: add missing return statement bloom-housing#3889 --------- Co-authored-by: Eric McGarry <[email protected]> * feat: security patch (bloom-housing#3946) * feat: security patch * fix: update per eric * feat: 3909/add redirect url prisma (bloom-housing#3938) * feat: get email url from getPublicEmailURL * fix: handle undefined url case and simplify parsing * fix: use only baseUrl in welcome and password emails * fix: fix test * feat: new single use code login endpoint (bloom-housing#3928) * feat: new single use code login endpoint * fix: updates per pr comments * fix: update seeds + fix listing delete (bloom-housing#3940) * feat: unconfirmed user login error fix (bloom-housing#3949) * feat: unconfirmed user login error fix * fix: unconfirmed user attempting to login, public user logging into partner site, seeding es * updates per cade * fix: undefined check * Merge remote-tracking branch 'origin/main' into security-patch-2 * fix: merge mistakes were made --------- Co-authored-by: Cade Wolcott <[email protected]> --------- Co-authored-by: Morgan Ludtke <[email protected]> Co-authored-by: Krzysztof Zięcina <[email protected]> Co-authored-by: Jared White <[email protected]> Co-authored-by: cade-exygy <[email protected]> Co-authored-by: ColinBuyck <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Emily Jablonski <[email protected]> Co-authored-by: Eric McGarry <[email protected]> Co-authored-by: Cade Wolcott <[email protected]>
- Loading branch information
1 parent
f878970
commit 7e5d969
Showing
118 changed files
with
3,632 additions
and
955 deletions.
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 |
---|---|---|
@@ -1 +1 @@ | ||
web: yarn start:prod | ||
web: yarn db:migration:run && yarn start:prod |
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
7 changes: 7 additions & 0 deletions
7
api/prisma/migrations/03_mfa_code_to_single_use_code/migration.sql
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,7 @@ | ||
-- AlterTable | ||
|
||
ALTER TABLE "user_accounts" RENAME COLUMN "mfa_code" TO "single_use_code"; | ||
|
||
|
||
ALTER TABLE "user_accounts" RENAME COLUMN "mfa_code_updated_at" TO "single_use_code_updated_at"; | ||
|
2 changes: 2 additions & 0 deletions
2
api/prisma/migrations/04_allow_single_use_code_login_jurisdiction_flag/migration.sql
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,2 @@ | ||
-- AlterTable | ||
ALTER TABLE "jurisdictions" ADD COLUMN "allow_single_use_code_login" BOOLEAN NOT NULL DEFAULT false; |
12 changes: 12 additions & 0 deletions
12
api/prisma/migrations/05_single_use_code_translation_updates/migration.sql
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,12 @@ | ||
-- Adds new single-use code translations for emails. | ||
|
||
UPDATE translations | ||
SET translations = jsonb_set(translations, '{singleUseCodeEmail}', '{"greeting": "Hi","message": "Use the following code to sign in to your %{jurisdictionName} account. This code will be valid for 5 minutes. Never share this code.","singleUseCode": "%{singleUseCode}"}') | ||
WHERE jurisdiction_id IS NULL | ||
and language = 'en'; | ||
|
||
|
||
UPDATE translations | ||
SET translations = jsonb_set(translations, '{mfaCodeEmail, mfaCode}', '"Your access code is: %{singleUseCode}"') | ||
WHERE language = 'en'; | ||
|
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 @@ | ||
ALTER TABLE "activity_log" ALTER COLUMN "record_id" DROP NOT NULL; |
2 changes: 2 additions & 0 deletions
2
api/prisma/migrations/06_requested_user_updates/migration.sql
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,2 @@ | ||
-- AddForeignKey | ||
ALTER TABLE "listings" ADD CONSTRAINT "listings_requested_changes_user_id_fkey" FOREIGN KEY ("requested_changes_user_id") REFERENCES "user_accounts"("id") ON DELETE NO ACTION ON UPDATE NO ACTION; |
2 changes: 2 additions & 0 deletions
2
api/prisma/migrations/07_enable_partner_demographics_flag/migration.sql
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,2 @@ | ||
-- AlterTable | ||
ALTER TABLE "jurisdictions" ADD COLUMN "enable_partner_demographics" BOOLEAN NOT NULL DEFAULT false; |
110 changes: 110 additions & 0 deletions
110
api/prisma/migrations/08_updating_on_delete_cascades_listings_and_applications/migration.sql
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,110 @@ | ||
-- DropForeignKey | ||
|
||
ALTER TABLE "application_methods" | ||
DROP CONSTRAINT "application_methods_listing_id_fkey"; | ||
|
||
-- AddForeignKey | ||
|
||
ALTER TABLE "application_methods" ADD CONSTRAINT "application_methods_listing_id_fkey" | ||
FOREIGN KEY ("listing_id") REFERENCES "listings"("id") ON | ||
DELETE CASCADE ON | ||
UPDATE NO ACTION; | ||
|
||
-- DropForeignKey | ||
|
||
ALTER TABLE "applications" | ||
DROP CONSTRAINT "applications_listing_id_fkey"; | ||
|
||
-- AddForeignKey | ||
|
||
ALTER TABLE "applications" ADD CONSTRAINT "applications_listing_id_fkey" | ||
FOREIGN KEY ("listing_id") REFERENCES "listings"("id") ON | ||
DELETE | ||
SET NULL ON | ||
UPDATE NO ACTION; | ||
|
||
-- DropForeignKey | ||
|
||
ALTER TABLE "listing_images" | ||
DROP CONSTRAINT "listing_images_listing_id_fkey"; | ||
|
||
-- AddForeignKey | ||
|
||
ALTER TABLE "listing_images" ADD CONSTRAINT "listing_images_listing_id_fkey" | ||
FOREIGN KEY ("listing_id") REFERENCES "listings"("id") ON | ||
DELETE CASCADE ON | ||
UPDATE NO ACTION; | ||
|
||
-- DropForeignKey | ||
|
||
ALTER TABLE "listing_events" | ||
DROP CONSTRAINT "listing_events_listing_id_fkey"; | ||
|
||
-- AddForeignKey | ||
|
||
ALTER TABLE "listing_events" ADD CONSTRAINT "listing_events_listing_id_fkey" | ||
FOREIGN KEY ("listing_id") REFERENCES "listings"("id") ON | ||
DELETE CASCADE ON | ||
UPDATE NO ACTION; | ||
|
||
-- DropForeignKey | ||
|
||
ALTER TABLE "listing_multiselect_questions" | ||
DROP CONSTRAINT "listing_multiselect_questions_listing_id_fkey"; | ||
|
||
-- AddForeignKey | ||
|
||
ALTER TABLE "listing_multiselect_questions" ADD CONSTRAINT "listing_multiselect_questions_listing_id_fkey" | ||
FOREIGN KEY ("listing_id") REFERENCES "listings"("id") ON | ||
DELETE CASCADE ON | ||
UPDATE NO ACTION; | ||
|
||
-- DropForeignKey | ||
|
||
ALTER TABLE "units_summary" | ||
DROP CONSTRAINT "units_summary_listing_id_fkey"; | ||
|
||
-- AddForeignKey | ||
|
||
ALTER TABLE "units_summary" ADD CONSTRAINT "units_summary_listing_id_fkey" | ||
FOREIGN KEY ("listing_id") REFERENCES "listings"("id") ON | ||
DELETE CASCADE ON | ||
UPDATE NO ACTION; | ||
|
||
-- DropForeignKey | ||
|
||
ALTER TABLE "application_flagged_set" | ||
DROP CONSTRAINT "application_flagged_set_listing_id_fkey"; | ||
|
||
-- AddForeignKey | ||
|
||
ALTER TABLE "application_flagged_set" ADD CONSTRAINT "application_flagged_set_listing_id_fkey" | ||
FOREIGN KEY ("listing_id") REFERENCES "listings"("id") ON | ||
DELETE CASCADE ON | ||
UPDATE NO ACTION; | ||
|
||
-- DropForeignKey | ||
|
||
ALTER TABLE "paper_applications" | ||
DROP CONSTRAINT "paper_applications_application_method_id_fkey"; | ||
|
||
-- AddForeignKey | ||
|
||
ALTER TABLE "paper_applications" ADD CONSTRAINT "paper_applications_application_method_id_fkey" | ||
FOREIGN KEY ("application_method_id") REFERENCES "application_methods"("id") ON | ||
DELETE | ||
SET NULL ON | ||
UPDATE NO ACTION; | ||
|
||
-- DropForeignKey | ||
|
||
ALTER TABLE "household_member" | ||
DROP CONSTRAINT "household_member_application_id_fkey"; | ||
|
||
-- AddForeignKey | ||
|
||
ALTER TABLE "household_member" ADD CONSTRAINT "household_member_application_id_fkey" | ||
FOREIGN KEY ("application_id") REFERENCES "applications"("id") ON | ||
DELETE CASCADE ON | ||
UPDATE NO ACTION; | ||
|
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.