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.
* feat: listings approval feature flag (bloom-housing#3581) * feat: new listings status enum (bloom-housing#3582) * feat: refactor listing actions file (bloom-housing#3585) * fix: add image fallback (bloom-housing#3551) * fix: add image fallback * fix: use refs to handle fallbacks before hydration * chore: upgrade uic * chore: regenerate yarn.lock * fix: add fallback image when no images present * fix: remove redundant fallback string for imageUrl * fix: only email language if user has set language (bloom-housing#3592) * feat: toggle actions - listings approval (bloom-housing#3586) * feat: new requested changes field (bloom-housing#3583) * chore(deps): bump protobufjs from 6.11.3 to 6.11.4 (bloom-housing#3599) --------- Co-authored-by: Emily Jablonski <65367387+emilyjablonski@users.noreply.github.com> Co-authored-by: Krzysztof Zięcina <kziecina@airnauts.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
409e569
commit f6271e2
Showing
31 changed files
with
1,090 additions
and
316 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
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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
export enum ListingStatus { | ||
active = "active", | ||
pending = "pending", | ||
changesRequested = "changesRequested", | ||
closed = "closed", | ||
pending = "pending", | ||
pendingReview = "pendingReview", | ||
} |
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
27 changes: 27 additions & 0 deletions
27
backend/core/src/migration/1691377869351-new-status-fields.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,27 @@ | ||
import { MigrationInterface, QueryRunner } from "typeorm" | ||
|
||
export class newStatusFields1691377869351 implements MigrationInterface { | ||
name = "newStatusFields1691377869351" | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
`ALTER TYPE "public"."listings_status_enum" ADD VALUE 'changesRequested'` | ||
) | ||
await queryRunner.query(`ALTER TYPE "public"."listings_status_enum" ADD VALUE 'pendingReview'`) | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
`CREATE TYPE "public"."listings_status_enum_old" AS ENUM('active', 'pending', 'closed')` | ||
) | ||
await queryRunner.query(`ALTER TABLE "listings" ALTER COLUMN "status" DROP DEFAULT`) | ||
await queryRunner.query( | ||
`ALTER TABLE "listings" ALTER COLUMN "status" TYPE "public"."listings_status_enum_old" USING "status"::"text"::"public"."listings_status_enum_old"` | ||
) | ||
await queryRunner.query(`ALTER TABLE "listings" ALTER COLUMN "status" SET DEFAULT 'pending'`) | ||
await queryRunner.query(`DROP TYPE "public"."listings_status_enum"`) | ||
await queryRunner.query( | ||
`ALTER TYPE "public"."listings_status_enum_old" RENAME TO "listings_status_enum"` | ||
) | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
backend/core/src/migration/1691438164033-user-req-changes.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,19 @@ | ||
import { MigrationInterface, QueryRunner } from "typeorm" | ||
|
||
export class userReqChanges1691438164033 implements MigrationInterface { | ||
name = "userReqChanges1691438164033" | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "listings" ADD "requested_changes" text`) | ||
await queryRunner.query( | ||
`ALTER TABLE "listings" ADD "requested_changes_date" TIMESTAMP WITH TIME ZONE` | ||
) | ||
await queryRunner.query(`ALTER TABLE "listings" ADD "requested_changes_user_id" uuid`) | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "listings" DROP COLUMN "requested_changes_user_id"`) | ||
await queryRunner.query(`ALTER TABLE "listings" DROP COLUMN "requested_changes_date"`) | ||
await queryRunner.query(`ALTER TABLE "listings" DROP COLUMN "requested_changes"`) | ||
} | ||
} |
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.