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

feat: upgrading typeorm #3340

Merged
merged 31 commits into from
May 22, 2023
Merged

feat: upgrading typeorm #3340

merged 31 commits into from
May 22, 2023

Conversation

YazeedLoonat
Copy link
Collaborator

Pull Request Template

Issue Overview

This PR addresses #issue

  • This change addresses the issue in full

Description

This PR upgrades TypeORM to a much newer version

How Can This Be Tested/Reviewed?

To be honest every part of the system needs to be tested:
listings
creating, editing, viewing (public and partners)
applications
creating, editing, viewing (public and partners
users
creating, editing, viewing
duplicate listings
resolving, marking as duplicate, viewing

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
  • I have exported any new pieces added to ui-components
  • 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 YazeedLoonat added the 2 reviews needed Requires 2 more review before ready to merge label Feb 20, 2023
@YazeedLoonat YazeedLoonat self-assigned this Feb 20, 2023
@netlify
Copy link

netlify bot commented Feb 20, 2023

Deploy Preview for bloom-exygy-dev ready!

Name Link
🔨 Latest commit 3471d02
🔍 Latest deploy log https://app.netlify.com/sites/bloom-exygy-dev/deploys/646412d17da88a00088d427a
😎 Deploy Preview https://deploy-preview-3340--bloom-exygy-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

backend/core/package.json Show resolved Hide resolved
backend/core/src/seeder/seed.ts Outdated Show resolved Hide resolved
@ludtkemorgan ludtkemorgan temporarily deployed to bloom-backend-orm February 20, 2023 17:36 Inactive
@ludtkemorgan ludtkemorgan temporarily deployed to bloom-backend-orm February 20, 2023 17:51 Inactive
@ludtkemorgan ludtkemorgan temporarily deployed to bloom-backend-orm February 20, 2023 18:39 Inactive
@ludtkemorgan ludtkemorgan temporarily deployed to bloom-backend-orm February 20, 2023 20:23 Inactive
@netlify
Copy link

netlify bot commented Feb 21, 2023

Deploy Preview for bloom-core-orm ready!

Name Link
🔨 Latest commit 263c7c1
🔍 Latest deploy log https://app.netlify.com/sites/bloom-core-orm/deploys/6407ba022f1e5600087aeec2
😎 Deploy Preview https://deploy-preview-3340--bloom-core-orm.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

backend/core/src/auth/helpers/user-helpers.ts Outdated Show resolved Hide resolved
backend/core/src/auth/services/authz.service.ts Outdated Show resolved Hide resolved
backend/core/src/auth/services/user.service.ts Outdated Show resolved Hide resolved
backend/core/src/listings/db/listing-helpers.ts Outdated Show resolved Hide resolved
@netlify
Copy link

netlify bot commented Feb 21, 2023

Deploy Preview for bloom-partners-orm ready!

Name Link
🔨 Latest commit 263c7c1
🔍 Latest deploy log https://app.netlify.com/sites/bloom-partners-orm/deploys/6407ba03e02c5c0008697a9d
😎 Deploy Preview https://deploy-preview-3340--bloom-partners-orm.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@emilyjablonski
Copy link
Collaborator

@YazeedLoonat Any remaining concerns post-bash yesterday? Are you looking for more partners bashing on the preview link?

@YazeedLoonat YazeedLoonat temporarily deployed to bloom-backend-orm February 28, 2023 16:50 Inactive
@ludtkemorgan ludtkemorgan temporarily deployed to bloom-backend-orm February 28, 2023 17:09 Inactive
@ludtkemorgan ludtkemorgan temporarily deployed to bloom-backend-orm February 28, 2023 17:26 Inactive
@YazeedLoonat YazeedLoonat temporarily deployed to bloom-backend-orm February 28, 2023 17:44 Inactive
Copy link
Collaborator

@ludtkemorgan ludtkemorgan left a comment

Choose a reason for hiding this comment

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

I haven't found any functional issues, but still investigating how to solve that broken skipped test. There is a chance the AFS code has an issue, but more likely we just need to update the test somehow

backend/core/src/ami-charts/ami-charts.service.ts Outdated Show resolved Hide resolved
backend/core/test/afs/afs.e2e-spec.ts Outdated Show resolved Hide resolved
@emilyjablonski emilyjablonski added needs changes The author must make changes and then re-request review before merging and removed 2 reviews needed Requires 2 more review before ready to merge labels May 5, 2023
@YazeedLoonat
Copy link
Collaborator Author

@ludtkemorgan @seanmalbert @emilyjablonski @ColinBuyck this should be ready for re-review now!

@ludtkemorgan ludtkemorgan added 2 reviews needed Requires 2 more review before ready to merge and removed needs changes The author must make changes and then re-request review before merging labels May 12, 2023
Copy link
Collaborator

@ludtkemorgan ludtkemorgan left a comment

Choose a reason for hiding this comment

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

🦖 🌮

@ludtkemorgan ludtkemorgan added 1 review needed Requires 1 more review before ready to merge and removed 2 reviews needed Requires 2 more review before ready to merge labels May 12, 2023
@ColinBuyck
Copy link
Collaborator

@YazeedLoonat do you mind resolving the merge conflicts when you get a chance? Hoping to test this with listings export!

@YazeedLoonat
Copy link
Collaborator Author

hey @ColinBuyck merge conflicts have been resolved, lemme know what you think

Copy link
Collaborator

@ColinBuyck ColinBuyck left a comment

Choose a reason for hiding this comment

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

I'm unfortunately getting a 500 when working with an application set and attempting to resolve or save as a pending review
Screenshot 2023-05-15 at 2 16 40 PM

@ColinBuyck ColinBuyck added the needs changes The author must make changes and then re-request review before merging label May 15, 2023
@YazeedLoonat YazeedLoonat removed the needs changes The author must make changes and then re-request review before merging label May 17, 2023
@YazeedLoonat
Copy link
Collaborator Author

Hey @ColinBuyck this should be good to go again

Copy link
Collaborator

@ColinBuyck ColinBuyck left a comment

Choose a reason for hiding this comment

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

LGTM 🍌 I rate this 12/10!

@ColinBuyck ColinBuyck added ready to merge Should be applied when a PR has been reviewed and approved and removed 1 review needed Requires 1 more review before ready to merge labels May 18, 2023
@YazeedLoonat YazeedLoonat merged commit 287e3b0 into main May 22, 2023
8 checks passed
ludtkemorgan added a commit to housingbayarea/bloom that referenced this pull request Jun 12, 2023
* feat: upgrading typeorm

* fix: updates for tests

* fix: updating nestjs packages, clean up per morgan

* fix: undoing nestjs bump

* fix: missed changes

* fix: minor typeorm version update

* fix: user update per sean

* fix: listings update per sean

* fix: test updates

* fix: hopefully resolves failing build on heroku

* fix: attempt 2 on fixing heroku deploy

* fix: updates

* fix: update throttling in tests

* fix: asset test fix

* fix: updates for images and multiselect

* fix: update for mfa

* fix: type fix

* fix: another type fix

* fix: update for partner test

* fix: issue with jurisdiction resolver service

* fix: test fixes

* fix: fix for mfa tests?

* fix: attempt at mfa test fix

* fix: remove listing service from afs cron job (bloom-housing#3428)

* fix: update for tests

* fix: fix for dup resolution

---------

Co-authored-by: Morgan Ludtke <ludtkemorgan@gmail.com>
Co-authored-by: Sean Albert <smabert@gmail.com>
Co-authored-by: Morgan Ludtke <42942267+ludtkemorgan@users.noreply.github.com>
ludtkemorgan added a commit to housingbayarea/bloom that referenced this pull request Jun 14, 2023
* feat: upgrading typeorm (bloom-housing#3340)

* feat: upgrading typeorm

* fix: updates for tests

* fix: updating nestjs packages, clean up per morgan

* fix: undoing nestjs bump

* fix: missed changes

* fix: minor typeorm version update

* fix: user update per sean

* fix: listings update per sean

* fix: test updates

* fix: hopefully resolves failing build on heroku

* fix: attempt 2 on fixing heroku deploy

* fix: updates

* fix: update throttling in tests

* fix: asset test fix

* fix: updates for images and multiselect

* fix: update for mfa

* fix: type fix

* fix: another type fix

* fix: update for partner test

* fix: issue with jurisdiction resolver service

* fix: test fixes

* fix: fix for mfa tests?

* fix: attempt at mfa test fix

* fix: remove listing service from afs cron job (bloom-housing#3428)

* fix: update for tests

* fix: fix for dup resolution

---------

Co-authored-by: Morgan Ludtke <ludtkemorgan@gmail.com>
Co-authored-by: Sean Albert <smabert@gmail.com>
Co-authored-by: Morgan Ludtke <42942267+ludtkemorgan@users.noreply.github.com>

* fix: upgrade all nest dependencies (bloom-housing#3461)

* fix: add additional unit fields to base view (bloom-housing#3492)

* Revert "fix: comment out income validation and change to text field (#620)"

This reverts commit f56fdad.

---------

Co-authored-by: Yazeed Loonat <YazeedLoonat@gmail.com>
Co-authored-by: Sean Albert <smabert@gmail.com>
ludtkemorgan added a commit to metrotranscom/doorway that referenced this pull request Jul 24, 2023
* feat: upgrading typeorm

* fix: updates for tests

* fix: updating nestjs packages, clean up per morgan

* fix: undoing nestjs bump

* fix: missed changes

* fix: minor typeorm version update

* fix: user update per sean

* fix: listings update per sean

* fix: test updates

* fix: hopefully resolves failing build on heroku

* fix: attempt 2 on fixing heroku deploy

* fix: updates

* fix: update throttling in tests

* fix: asset test fix

* fix: updates for images and multiselect

* fix: update for mfa

* fix: type fix

* fix: another type fix

* fix: update for partner test

* fix: issue with jurisdiction resolver service

* fix: test fixes

* fix: fix for mfa tests?

* fix: attempt at mfa test fix

* fix: remove listing service from afs cron job (bloom-housing#3428)

* fix: update for tests

* fix: fix for dup resolution

---------

Co-authored-by: Morgan Ludtke <ludtkemorgan@gmail.com>
Co-authored-by: Sean Albert <smabert@gmail.com>
Co-authored-by: Morgan Ludtke <42942267+ludtkemorgan@users.noreply.github.com>
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.

None yet

5 participants