Skip to content
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

Release/2024 02 23 #501

Merged
merged 131 commits into from
Mar 11, 2024
Merged

Release/2024 02 23 #501

merged 131 commits into from
Mar 11, 2024

Conversation

ludtkemorgan
Copy link
Collaborator

@ludtkemorgan ludtkemorgan commented Mar 5, 2024

Pull Request Template

Issue Overview

This PR addresses #389

  • This change addresses the issue in full
  • This change addresses only certain aspects of the issue
  • This change is a dependency for another issue
  • This change has a dependency from another issue

Description

This PR pulls over the prisma changes from core and also has the majority of the changes specific to Doorway.

Note working through the following still so the PR isn't 100% ready, but can be looked at by the team to find any issues.

What is still remaining:

  • Filtering on the listings page
  • Tests working in github actions
  • Updating the docker images for backend
  • Pull in the mandated account changes

How Can This Be Tested/Reviewed?

This can only be tested locally and all flows on both public/partner sites should be tested (excluding the items in "what is still remaining" above)

Notes to test this locally:

  • Make sure you have a .env file in api directory with the values from .env.template. You can use the same values you might have setup in core. But note there are a few values that are specific to Doorway such as the values to publish to s3. If you don't already have those values reach out to Morgan
  • The best way to get setup is to do the following:
    • run yarn install from api directory
    • run yarn prisma generate from api directory
    • run yarn db:reseed:with-external:dev from api directory
    • run yarn dev:all from root directory (make sure you have also installed at root)

Specific areas that should be tested extra closely:

  • Adding images to a listing (make sure that the aws flow works)
  • Filtering on the public listings page. This was rewritten so making sure that no functionality on the listing page is broken

Checklist:

  • My code follows the style guidelines of this project
  • I have added QA notes to the issue with applicable URLs
  • I have performed a self-review of my own code
  • I have reviewed the changes in a desktop view
  • I have reviewed the changes in a mobile view
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I have assigned reviewers
  • I have run yarn generate:client and/or created a migration if I made backend changes that require them
  • My commit message(s) is/are polished, and any breaking changes are indicated in the message and are well-described
  • Commits made across packages purposefully have the same commit message/version change, else are separated into different commits

Reviewer Notes:

Steps to review a PR:

  • Read and understand the issue, and ensure the author has added QA notes
  • Review the code itself from a style point of view
  • Pull the changes down locally and test that the acceptance criteria is met
  • Also review the acceptance criteria on the Netlify deploy preview (noting that these do not yet include any backend changes made in the PR)
  • Either explicitly ask a clarifying question, request changes, or approve the PR if there are small remaining changes but the PR is otherwise good to go

On Merge:

If you have one commit and message, squash. If you need each message to be applied, rebase and merge.

YazeedLoonat and others added 30 commits May 8, 2023 09:11
* feat: prisma schema generation

* fix: cleaning up removed "models"

* fix: updates per emily

* fix: caught some schema errors
* feat: prisma schema generation

* fix: cleaning up removed "models"

* fix: updates per emily

* fix: caught some schema errors

* feat: listing get endpoints

* feat: adding DTOs

* feat: openapi and swagger updates

* fix: pass through DTOs

* fix: updates per emily

* feat: adding ci jobs

* fix: round 2

* fix: indentation problem

* fix: ci updates

* fix: ci test again

* fix: adding maybe missing library?

* fix: running yarn install

* fix: updates per morgan

* fix: ci fix round x

* fix: test updates

* fix: integration tests and ci

* fix: update for tests

* fix: fixing scheme so migrations can be created

* fix: updates per morgan

* fix: update backend-new circleci job (bloom-housing#3489)

* fix: update backend-new circleci job

* fix: add cache

* fix: add class validator

* fix: update list typing

* fix: add class transformer

* fix: add listing type

* fix: one more attempt at typings

* fix: update jest config file

* fix: add dbsetup

* fix: one more attempt

* fix: e2e typing fix

* fix: turn off diagnostics for e2e

* fix: clear db fields between tests

* fix: prettier and linting changes

* fix: additional linting fixes

---------

Co-authored-by: Yazeed Loonat <[email protected]>

---------

Co-authored-by: Morgan Ludtke <[email protected]>
* feat: prisma schema generation

* fix: cleaning up removed "models"

* fix: updates per emily

* fix: caught some schema errors

* feat: listing get endpoints

* feat: adding DTOs

* feat: openapi and swagger updates

* fix: pass through DTOs

* fix: updates per emily

* feat: adding ci jobs

* fix: round 2

* fix: indentation problem

* fix: ci updates

* fix: ci test again

* fix: adding maybe missing library?

* fix: running yarn install

* fix: updates per morgan

* fix: ci fix round x

* fix: test updates

* fix: integration tests and ci

* fix: update for tests

* fix: fixing scheme so migrations can be created

* feat: creating ami-chart endpoints

* fix: updates per morgan

* fix: update backend-new circleci job (bloom-housing#3489)

* fix: update backend-new circleci job

* fix: add cache

* fix: add class validator

* fix: update list typing

* fix: add class transformer

* fix: add listing type

* fix: one more attempt at typings

* fix: update jest config file

* fix: add dbsetup

* fix: one more attempt

* fix: e2e typing fix

* fix: turn off diagnostics for e2e

* fix: clear db fields between tests

* fix: prettier and linting changes

* fix: additional linting fixes

---------

Co-authored-by: Yazeed Loonat <[email protected]>

* fix: updates from what I learned

* fix: forgot swagger file

* fix: updates per morgan

* fix: updates per sean/morgan and test updates

* fix: updates per sean and morgan

* fix: maybe resolving test race case

* fix: removing jurisdictionName param

* fix: upates per sean and emily

* fix: updates per emily

---------

Co-authored-by: Morgan Ludtke <[email protected]>
* feat: prisma schema generation

* fix: cleaning up removed "models"

* fix: updates per emily

* fix: caught some schema errors

* feat: listing get endpoints

* feat: adding DTOs

* feat: openapi and swagger updates

* fix: pass through DTOs

* fix: updates per emily

* feat: adding ci jobs

* fix: round 2

* fix: indentation problem

* fix: ci updates

* fix: ci test again

* fix: adding maybe missing library?

* fix: running yarn install

* fix: updates per morgan

* fix: ci fix round x

* fix: test updates

* fix: integration tests and ci

* fix: update for tests

* fix: fixing scheme so migrations can be created

* feat: creating ami-chart endpoints

* feat: reserved community type

* fix: updates per morgan

* fix: update backend-new circleci job (bloom-housing#3489)

* fix: update backend-new circleci job

* fix: add cache

* fix: add class validator

* fix: update list typing

* fix: add class transformer

* fix: add listing type

* fix: one more attempt at typings

* fix: update jest config file

* fix: add dbsetup

* fix: one more attempt

* fix: e2e typing fix

* fix: turn off diagnostics for e2e

* fix: clear db fields between tests

* fix: prettier and linting changes

* fix: additional linting fixes

---------

Co-authored-by: Yazeed Loonat <[email protected]>

* fix: updates from what I learned

* fix: forgot swagger file

* fix: updates per morgan

* fix: updates per sean/morgan and test updates

* fix: updates per sean and morgan

* fix: maybe resolving test race case

* fix: removing jurisdictionName param

* fix: upates per sean and emily

* fix: updates per emily

* fix: updates to listing test

* fix: trying to remove seeding for e2e testing

* fix: updating test description

* fix: updates per morgan

* fix: adding some more tests

---------

Co-authored-by: Morgan Ludtke <[email protected]>
* feat: prisma schema generation

* fix: cleaning up removed "models"

* fix: updates per emily

* fix: caught some schema errors

* feat: listing get endpoints

* feat: adding DTOs

* feat: openapi and swagger updates

* fix: pass through DTOs

* fix: updates per emily

* feat: adding ci jobs

* fix: round 2

* fix: indentation problem

* fix: ci updates

* fix: ci test again

* fix: adding maybe missing library?

* fix: running yarn install

* fix: updates per morgan

* fix: ci fix round x

* fix: test updates

* fix: integration tests and ci

* fix: update for tests

* fix: fixing scheme so migrations can be created

* feat: creating ami-chart endpoints

* feat: reserved community type

* feat: unit type endpoints

* fix: updates per morgan

* fix: update backend-new circleci job (bloom-housing#3489)

* fix: update backend-new circleci job

* fix: add cache

* fix: add class validator

* fix: update list typing

* fix: add class transformer

* fix: add listing type

* fix: one more attempt at typings

* fix: update jest config file

* fix: add dbsetup

* fix: one more attempt

* fix: e2e typing fix

* fix: turn off diagnostics for e2e

* fix: clear db fields between tests

* fix: prettier and linting changes

* fix: additional linting fixes

---------

Co-authored-by: Yazeed Loonat <[email protected]>

* fix: updates from what I learned

* fix: forgot swagger file

* fix: updates per morgan

* fix: updates per sean/morgan and test updates

* fix: updates per sean and morgan

* fix: maybe resolving test race case

* fix: removing jurisdictionName param

* fix: upates per sean and emily

* fix: updates per emily

* fix: updates to listing test

* fix: updates per ami chart

* fix: trying to remove seeding for e2e testing

* fix: updating test description

* fix: updates from reserved-community-type learning

* fix: updates per morgan

* fix: converting name to enum

---------

Co-authored-by: Morgan Ludtke <[email protected]>
* fix: first part of translation service

* fix: remaining translation service changes

* fix: add google translate dependency

* fix: lint fixes

* fix: address review comments

* fix: add listing e2e change

* fix: update ci dbsetup task
* feat: prisma schema generation

* fix: cleaning up removed "models"

* fix: updates per emily

* fix: caught some schema errors

* feat: listing get endpoints

* feat: adding DTOs

* feat: openapi and swagger updates

* fix: pass through DTOs

* fix: updates per emily

* feat: adding ci jobs

* fix: round 2

* fix: indentation problem

* fix: ci updates

* fix: ci test again

* fix: adding maybe missing library?

* fix: running yarn install

* fix: updates per morgan

* fix: ci fix round x

* fix: test updates

* fix: integration tests and ci

* fix: update for tests

* fix: fixing scheme so migrations can be created

* feat: creating ami-chart endpoints

* feat: reserved community type

* feat: unit type endpoints

* feat: unit accessibility priority type

* fix: updates per morgan

* fix: update backend-new circleci job (bloom-housing#3489)

* fix: update backend-new circleci job

* fix: add cache

* fix: add class validator

* fix: update list typing

* fix: add class transformer

* fix: add listing type

* fix: one more attempt at typings

* fix: update jest config file

* fix: add dbsetup

* fix: one more attempt

* fix: e2e typing fix

* fix: turn off diagnostics for e2e

* fix: clear db fields between tests

* fix: prettier and linting changes

* fix: additional linting fixes

---------

Co-authored-by: Yazeed Loonat <[email protected]>

* fix: updates from what I learned

* fix: forgot swagger file

* fix: updates per morgan

* fix: updates per sean/morgan and test updates

* fix: updates per sean and morgan

* fix: maybe resolving test race case

* fix: removing jurisdictionName param

* fix: upates per sean and emily

* fix: updates per emily

* fix: updates to listing test

* fix: updates per ami chart

* fix: trying to remove seeding for e2e testing

* fix: updating test description

* fix: updates from ami chart learnings

* fix: updates from reserved-community-type learning

* fix: test updates

* fix: updates per pr comments

* fix: e2e test update

* fix: updates for ci

* fix: possible ci fix

* fix: possible fix for ci errors

* fix: maybe fixes to ci

---------

Co-authored-by: Morgan Ludtke <[email protected]>
* feat: prisma schema generation

* fix: cleaning up removed "models"

* fix: updates per emily

* fix: caught some schema errors

* feat: listing get endpoints

* feat: adding DTOs

* feat: openapi and swagger updates

* fix: pass through DTOs

* fix: updates per emily

* feat: adding ci jobs

* fix: round 2

* fix: indentation problem

* fix: ci updates

* fix: ci test again

* fix: adding maybe missing library?

* fix: running yarn install

* fix: updates per morgan

* fix: ci fix round x

* fix: test updates

* fix: integration tests and ci

* fix: update for tests

* fix: fixing scheme so migrations can be created

* feat: creating ami-chart endpoints

* feat: reserved community type

* feat: unit type endpoints

* feat: unit accessibility priority type

* feat: unit rent type

* fix: updates per morgan

* fix: update backend-new circleci job (bloom-housing#3489)

* fix: update backend-new circleci job

* fix: add cache

* fix: add class validator

* fix: update list typing

* fix: add class transformer

* fix: add listing type

* fix: one more attempt at typings

* fix: update jest config file

* fix: add dbsetup

* fix: one more attempt

* fix: e2e typing fix

* fix: turn off diagnostics for e2e

* fix: clear db fields between tests

* fix: prettier and linting changes

* fix: additional linting fixes

---------

Co-authored-by: Yazeed Loonat <[email protected]>

* fix: updates from what I learned

* fix: forgot swagger file

* fix: updates per morgan

* fix: updates per sean/morgan and test updates

* fix: updates per sean and morgan

* fix: maybe resolving test race case

* fix: removing jurisdictionName param

* fix: upates per sean and emily

* fix: updates per emily

* fix: updates to listing test

* fix: updates per ami chart

* fix: trying to remove seeding for e2e testing

* fix: updating test description

* fix: updates from ami chart learnings

* fix: updates from ami chart learnings

* fix: updating client

* fix: updates from reserved-community-type learning

* fix: test updates

* fix: e2e test updates

* fix: updates per morgan

* fix: resolving merge conflicts

* fix: updates for tests

---------

Co-authored-by: Morgan Ludtke <[email protected]>
* feat: prisma schema generation

* fix: cleaning up removed "models"

* fix: updates per emily

* fix: caught some schema errors

* feat: listing get endpoints

* feat: adding DTOs

* feat: openapi and swagger updates

* fix: pass through DTOs

* fix: updates per emily

* feat: adding ci jobs

* fix: round 2

* fix: indentation problem

* fix: ci updates

* fix: ci test again

* fix: adding maybe missing library?

* fix: running yarn install

* fix: updates per morgan

* fix: ci fix round x

* fix: test updates

* fix: integration tests and ci

* fix: update for tests

* fix: fixing scheme so migrations can be created

* feat: creating ami-chart endpoints

* feat: reserved community type

* feat: unit type endpoints

* feat: unit accessibility priority type

* feat: unit rent type

* feat: jurisdiction

* fix: updates per morgan

* fix: update backend-new circleci job (bloom-housing#3489)

* fix: update backend-new circleci job

* fix: add cache

* fix: add class validator

* fix: update list typing

* fix: add class transformer

* fix: add listing type

* fix: one more attempt at typings

* fix: update jest config file

* fix: add dbsetup

* fix: one more attempt

* fix: e2e typing fix

* fix: turn off diagnostics for e2e

* fix: clear db fields between tests

* fix: prettier and linting changes

* fix: additional linting fixes

---------

Co-authored-by: Yazeed Loonat <[email protected]>

* fix: updates from what I learned

* fix: forgot swagger file

* fix: updates per morgan

* fix: updates per sean/morgan and test updates

* fix: updates per sean and morgan

* fix: maybe resolving test race case

* fix: removing jurisdictionName param

* fix: upates per sean and emily

* fix: updates per emily

* fix: updates to listing test

* fix: updates per ami chart

* fix: trying to remove seeding for e2e testing

* fix: updating test description

* fix: updates from ami chart learnings

* fix: updates from ami chart learnings

* fix: updating client

* fix: updates from reserved-community-type learning

* fix: test updates

* fix: e2e test updates

* fix: updates from previous models

* fix: test updates

* fix: updates per emly

---------

Co-authored-by: Morgan Ludtke <[email protected]>
* fix: add better seeded data

* fix: remove temporary listing and unit factory

* fix: update readme

* fix: add better addresses
* fix: add procfile

* fix: update to prod start command

* fix: correct path to main
* feat: prisma schema generation

* fix: cleaning up removed "models"

* fix: updates per emily

* fix: caught some schema errors

* feat: listing get endpoints

* feat: adding DTOs

* feat: openapi and swagger updates

* fix: pass through DTOs

* fix: updates per emily

* feat: adding ci jobs

* fix: round 2

* fix: indentation problem

* fix: ci updates

* fix: ci test again

* fix: adding maybe missing library?

* fix: running yarn install

* fix: updates per morgan

* fix: ci fix round x

* fix: test updates

* fix: integration tests and ci

* fix: update for tests

* fix: fixing scheme so migrations can be created

* feat: creating ami-chart endpoints

* feat: reserved community type

* feat: unit type endpoints

* feat: unit accessibility priority type

* feat: unit rent type

* feat: jurisdiction

* feat: multiselect question endpoints

* fix: updates per morgan

* fix: update backend-new circleci job (bloom-housing#3489)

* fix: update backend-new circleci job

* fix: add cache

* fix: add class validator

* fix: update list typing

* fix: add class transformer

* fix: add listing type

* fix: one more attempt at typings

* fix: update jest config file

* fix: add dbsetup

* fix: one more attempt

* fix: e2e typing fix

* fix: turn off diagnostics for e2e

* fix: clear db fields between tests

* fix: prettier and linting changes

* fix: additional linting fixes

---------

Co-authored-by: Yazeed Loonat <[email protected]>

* fix: updates from what I learned

* fix: forgot swagger file

* fix: updates per morgan

* fix: updates per sean/morgan and test updates

* fix: updates per sean and morgan

* fix: maybe resolving test race case

* fix: removing jurisdictionName param

* fix: upates per sean and emily

* fix: updates per emily

* fix: updates to listing test

* fix: updates per ami chart

* fix: trying to remove seeding for e2e testing

* fix: updating test description

* fix: updates from ami chart learnings

* fix: updates from ami chart learnings

* fix: updating client

* fix: updates from reserved-community-type learning

* fix: test updates

* fix: e2e test updates

* fix: updates from previous models

* fix: updates from previous models

* fix: updates to tests

* fix: swagger update

* fix: update per sean

* fix: updates per emily

* fix: updates to it() and build filters

---------

Co-authored-by: Morgan Ludtke <[email protected]>
* feat: heartbeat endpoint

* fix: update for ci

* fix: updates per morgan

* fix: updates per morgan

* fix: missed a spot
* feat: prisma changeover for users
* fix: add email-service

* fix: add todo comment
* feat: initial connect of public site to prisma

* fix: test fixes

* fix: do not hard code the port

* fix: correct the filtering

* fix: add 4 and 5 bed

* fix: skip all application tests

* fix: setup better ami chart seed data

* fix: update rental assistance seed data

* fix: review comments
Copy link

cypress bot commented Mar 6, 2024

2 failed tests on run #25 ↗︎

2 48 1 0 Flakiness 0
⚠️ You've recorded test results over your free plan limit.
Upgrade your plan to view test results.

Details:

Merge 1031eaa into 9ffc4f2...
Project: Doorway Cypress Public Commit: a3f83b2e5d ℹ️
Status: Failed Duration: 05:49 💡
Started: Mar 8, 2024 4:29 PM Ended: Mar 8, 2024 4:35 PM

Review all test suite changes for PR #501 ↗︎

* 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
@ludtkemorgan ludtkemorgan marked this pull request as ready for review March 6, 2024 18:25
* fix: export activity interceptor

* fix: import path

* fix: improve export logging tests

* fix: tidy up implementation

* fix: commenting for clarity
@emilyjablonski
Copy link
Collaborator

yarn setup:dev doesn't work for me here, are you seeing something different?
Running seed command ts-node prisma/seed.ts --environment development --jurisdictionName Bay Area ...
TypeError [ERR_PARSE_ARGS_UNEXPECTED_POSITIONAL]: Unexpected argument 'Area'. This command does not take positional arguments

@ludtkemorgan
Copy link
Collaborator Author

@emilyjablonski I'll fix that. But I'd recommend running yarn db:setup:staging from the /api directory to get it setup correctly

@emilyjablonski
Copy link
Collaborator

@ludtkemorgan That worked thank you! It could just be me, but as I'm poking around I'm noticing that the partners site is moving very slowly - it could be something unrelated, but just curious if others notice the same / wanted to flag

* 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]>
@ColinBuyck
Copy link
Collaborator

Screenshot 2024-03-08 at 10 33 41 AM Can't seem to get the requested changes email to send

@ColinBuyck
Copy link
Collaborator

For documentation sake, I found that the listing image upload was erroring if the name was greater than or equal to 128 characters

@ludtkemorgan
Copy link
Collaborator Author

Screenshot 2024-03-08 at 10 33 41 AM Can't seem to get the requested changes email to send

It was determined that this is also a bug in core. A PR has been made there to address it bloom-housing#3934

Copy link
Collaborator

@YazeedLoonat YazeedLoonat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

soem minor questions looks good overall!

.github/workflows/integration_tests.yml Outdated Show resolved Hide resolved
api/Procfile Show resolved Hide resolved
api/prisma/migrations/03_external_listing/migration.sql Outdated Show resolved Hide resolved
api/prisma/schema.prisma Outdated Show resolved Hide resolved
api/src/controllers/asset.controller.ts Outdated Show resolved Hide resolved
sites/partners/src/lib/listings/formTypes.ts Outdated Show resolved Hide resolved
sites/public/src/lib/helpers.tsx Show resolved Hide resolved
api/src/services/listing.service.ts Outdated Show resolved Hide resolved
api/src/services/listing.service.ts Show resolved Hide resolved
@ludtkemorgan
Copy link
Collaborator Author

@YazeedLoonat Your comments have been addressed. I also added a few more things since your last review:

  • Pulled in the latest commits to main.
  • Added the listing opportunity flow (govDelivery)
  • Realized there was one more field needed on the combined listings table (reserved community types)

Copy link
Collaborator

@YazeedLoonat YazeedLoonat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@YazeedLoonat YazeedLoonat added the ready to merge Should be applied when a PR has been reviewed and approved label Mar 11, 2024
@ludtkemorgan ludtkemorgan merged commit eeb50d0 into main Mar 11, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Should be applied when a PR has been reviewed and approved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants