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.
update master with latest dev (bloom-housing#1712)
* 1545/lat-long draggable map (#1577) * 1616/user roles (bloom-housing#1673) from 1628 * User roles for partners * generate migration * update client * update seeds and policy * migrate partners from leasing agent table * change enum name * Remove anonymous role * Update authz.service.ts * fix application view * update changelog * fix backend tests * add test * fix ui tests Co-authored-by: Abbie Farr <afarr@google.com> Co-authored-by: Abbie Farr <83078310+abbiefarr@users.noreply.github.com> * Fix code style issues with Prettier * 1587/Updates Listing Columns and Perms so Leasing Agents can Edit (#1627) * updates for cache revalidation on the frontend * fixes listing bug issue * Updates partner listings columns * updates policy and user perms * skips tests until #1616 is implemented * updates to work with new user roles * remove origin from listing service list args * test update * Fix code style issues with Prettier * Split Listing form up into two main tabs (#1644) * Add tabs to the listing form * Fix button positions and ensure tabs always render * Add #1644 to Changelog * fixes warning for ArrowForward props Co-authored-by: seanmalbert <smabert@gmail.com> * Contribute Feature/Ensure Progress Bar is screen reader friendly (bloom-housing#1674) * Add unit size filter to backend (#1660) * Add unit size filter to backend (#368) * initial thoughts * initial bedrooms filter (untested) * Fix code style issues with Prettier * fix typo in 'studio' * remove custom filter handling, switch to bedrooms field on unit table * add additional check for invalid comparisons, outside the filter handler * use unit_type table for bedrooms, add field to unit_type table, remove toLowerCase() from filter name comparisons to allow camelCase filter names * Fix code style issues with Prettier * add bedrooms filter to frontend comparison map * fix comparison type for frontend map * fix test and migration indentation * update changelog * regenerate swagger * fix tests * try to fix more ui tests * try to fix more ui tests * add comment for custom filter handling Co-authored-by: Lint Action <lint-action@samuelmeuli.com> * fix missing bedrooms build error Co-authored-by: Lint Action <lint-action@samuelmeuli.com> * 1431/google translate (#1590) * Initial google translate listing * Translations for arrays * Disable caching for GET listing endpoint * Final tweaks to google translate * Update change log for google translations * Fix code style issues with Prettier * Update CHANGELOG.md * Minor cleanup for Google Translate * Initial google translate listing * Translations for arrays * Disable caching for GET listing endpoint * Final tweaks to google translate * Update change log for google translations * Fix code style issues with Prettier * Update CHANGELOG.md * Minor cleanup for Google Translate * Google translate refactoring * Fix listings service spec * adds custom cache interceptor for language * updates custom cache interceptor * Add missing Headers import for listings controller Co-authored-by: Lint Action <lint-action@samuelmeuli.com> Co-authored-by: seanmalbert <smabert@gmail.com> * Restructure units summary table (bloom-housing#1670) * Add UnitsSummary to Listing * remove listing service changes * redo migration * monthlyRent as number * fix lint errors * Fix code style issues with Prettier * Hardcode the number of items in listings.e2e-spec.ts. (#1643) Using the length of the array from seed.ts was causing flakiness if the bloom database was not set up in the testing environment. Co-authored-by: seanmalbert <smabert@gmail.com> * Contribute/Create listing updated UI component (bloom-housing#1676) * 1621/Listing Views (#1626) * set fallback to true for getStaticPaths so new paths can be added * adds revalidate to staticProps * updates for cache revalidation on the frontend * trigger cleanup * fixes listing bug issue * adds additional checks for unit type and priority * new line * Fix code style issues with Prettier * adds listing view * adds other views * adds unitsAvailable to select * updates to pass view as query param for list and by id * removes comment * Update CHANGELOG.md * updates view test * rename spec and remove log * removes another log * updates partner-role migration * updates partner-role migration * adds --runInBand --detectOpenHandles to backend test * adds view param to applications e2e spec test that fetches listings * updates default view to full and fixes housing-counselors bug * view test update Co-authored-by: Lint Action <lint-action@samuelmeuli.com> * 1629/fcfs with date (bloom-housing#1680) * 1629/fcfs with date * changelog * 1611/what to expect editable in listings management (bloom-housing#1681) * 1611/what to expect editable * fixup unit test * changelog * Make actions an optional prop and hide the footer when not present. (bloom-housing#1690) * Make features section more robust (bloom-housing#1688) * Fixes whatToExpect UI Component failing test (bloom-housing#1692) * force quit redis connection on app close * updates for redis config * adds enableShutdownHooks to main app * Update archer-listing.ts * Add migration (bloom-housing#1689) Co-authored-by: seanmalbert <smabert@gmail.com> * Fix code style issues with Prettier * adds SRO to num_bedroom case * 872/allow for unit sets to have multiple ami charts (bloom-housing#1678) * Updates cache clear to use reset, instead of maintaining cache keys (bloom-housing#1698) * force quit redis connection on app close * updates for redis config * adds enableShutdownHooks to main app * Update archer-listing.ts * Updates cache clear to use cacheManager reset, so we don't have to maintain keys * Update units-transformations.ts * Update CHANGELOG.md * allows for not needing google api keys * Update listings.controller.ts * Update listings.e2e-spec.ts * testing build issues (bloom-housing#1699) * testing build issues * testing build issues pt 2 * Updates translations to check for values before sending to service Co-authored-by: seanmalbert <smabert@gmail.com> * 1656/lottery type without explicit date (bloom-housing#1682) * Add two lines to the LeasingAgent UI component to display information about the listing management company (bloom-housing#1677) * Fix code style issues with Prettier * 1402/multiple statuses under image card (bloom-housing#1700) Co-authored-by: Anthony Kong <anthony.kong@sfgov.org> * fix application routing (bloom-housing#1715) * fix-applications-url * changelog Co-authored-by: Sean Albert <smabert@gmail.com> Co-authored-by: Abbie Farr <afarr@google.com> Co-authored-by: Abbie Farr <83078310+abbiefarr@users.noreply.github.com> Co-authored-by: Lint Action <lint-action@samuelmeuli.com> Co-authored-by: Jared White <jared@jaredwhite.com> Co-authored-by: pfeeny5 <82653098+pfeeny5@users.noreply.github.com> Co-authored-by: Austin Valeske <avaleske@users.noreply.github.com> Co-authored-by: Marcin Jędras <mjjedras@gmail.com> Co-authored-by: Will Lin <4317058+willrlin@users.noreply.github.com> Co-authored-by: Anders Schneider <anderseschneider@gmail.com> Co-authored-by: Anthony Kong <anthony.kong@sfgov.org>
- Loading branch information
1 parent
0ea2c07
commit 2a2a8cc
Showing
28 changed files
with
247 additions
and
74 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
38 changes: 38 additions & 0 deletions
38
backend/core/src/migration/1629225078065-make-review-order-not-computed.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,38 @@ | ||
import { MigrationInterface, QueryRunner } from "typeorm" | ||
|
||
export class makeReviewOrderNotComputed1629225078065 implements MigrationInterface { | ||
name = "makeReviewOrderNotComputed1629225078065" | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
`CREATE TYPE "listings_review_order_type_enum" AS ENUM('lottery', 'firstComeFirstServe')` | ||
) | ||
await queryRunner.query( | ||
`ALTER TABLE "listings" ADD "review_order_type" "listings_review_order_type_enum"` | ||
) | ||
|
||
const listingsIDsWithoutReviewOrderType = await queryRunner.query( | ||
"SELECT id FROM listings WHERE review_order_type IS NULL" | ||
) | ||
|
||
for (const listing of listingsIDsWithoutReviewOrderType) { | ||
const listingEventTypes = await queryRunner.query( | ||
`SELECT type FROM listing_events WHERE listing_id = '${listing.id}'` | ||
) | ||
if (listingEventTypes.some((eventType) => eventType.type === "publicLottery")) { | ||
await queryRunner.query( | ||
`UPDATE listings SET review_order_type = 'lottery' where id = '${listing.id}'` | ||
) | ||
} else { | ||
await queryRunner.query( | ||
`UPDATE listings SET review_order_type = 'firstComeFirstServe' where id = '${listing.id}'` | ||
) | ||
} | ||
} | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "listings" DROP COLUMN "review_order_type"`) | ||
await queryRunner.query(`DROP TYPE "listings_review_order_type_enum"`) | ||
} | ||
} |
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
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
4 changes: 2 additions & 2 deletions
4
sites/public/pages/account/application.tsx → ...public/pages/account/application/[id].tsx
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.