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

PIMS-1955 Entity Updates #2639

Merged
merged 14 commits into from
Sep 4, 2024
Merged

PIMS-1955 Entity Updates #2639

merged 14 commits into from
Sep 4, 2024

Conversation

dbarkowsky
Copy link
Collaborator

@dbarkowsky dbarkowsky commented Aug 22, 2024

🎯 Summary

PIMS-1955
PIMS-1987

Changes

  • Drop metadata column from project. All previous data there was covered by the timestamp/notes/tasks/monetary tables.
  • Ensure that the timestamps stored directly on the project are updated when the project is submitted/updated.
  • Drop IsSystem and EmailVerified columns from user table. We don't currently use IsSystem, and EmailVerified was never used.
  • Drop LeaseExpiry, EncumbranceReason, OccupantName, LeasedLandMetadata from Building table. Sparsely used in old PIMS. Not currently used.
  • Drop Zoning, ZoningPotential from Parcel table. Sparsely used in old PIMS. Not currently used.
  • Drop SiteId and IsVisibleToOtherAgencies from Property entity. There was a plan to use SiteId to store geolocator id, but it was never implemented. I don't think we need/plan to use this anymore. IsVisibleToOtherAgencies could be determined by the property and potential projects it is in.
  • Removed Email and KeycloakId unique constraints from the User table. Email was an issue when users with accounts from the silver Keycloak tried to log in now that it's on gold. Their guid would be different, but the email was the same. KeycloakId was an issue

🔰 Checklist

  • I have read and agree with the following checklist and am following the guidelines in our Code of Conduct document.
  • I have performed a self-review of my code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation where required.
  • I have tested my changes to the best of my ability.
  • My changes generate no new warnings.

Copy link

🚀 Deployment Information

The Express API Image has been built with the tag: 2639. Please make sure to utilize this specific tag when promoting these changes to the TEST and PROD environments during the API deployment. For more updates please monitor Image Tags Page on Wiki.

Copy link

codeclimate bot commented Aug 22, 2024

Code Climate has analyzed commit 87a24a5 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 71.4% (50% is the threshold).

This pull request will bring the total coverage in the repository to 93.2%.

View more on Code Climate.

Copy link
Collaborator

@LawrenceLau2020 LawrenceLau2020 left a comment

Choose a reason for hiding this comment

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

Works well, tested updating a building and parcel, and also tested switching the status of a project to pre-marketing, Approved for ERP, Approved for Exemption, and Disposed and the dates seem to be saved correctly. No issues detected.

@dbarkowsky dbarkowsky merged commit 49d1179 into main Sep 4, 2024
13 checks passed
@dbarkowsky dbarkowsky deleted the PIMS-1955-Drop-Email-Constraint branch September 4, 2024 15:02
dbarkowsky added a commit that referenced this pull request Sep 11, 2024
Co-authored-by: LawrenceLau2020 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants