bcgov / bcgov/entity

Tech Debt: entity emails should be stored in LEAR not AUTH

Open
#17,003 3 comments 0 reactions 0 assignees View on GitHub
ENTITY - DO NOT USE techdebt
Dominant language
JavaScript
Stars
23
Forks
62
Avg merge
24m
Merged PRs (30d)
1

Description

Currently when a registered office email address is added to a business, that email is stored in AUTH. This may have been because when we started to build the Benefit company incorporation application, we thought if there wasn't an email at the profile level, when an email was added in the IA, then we'd update the profile. This mapping to the account email was later fixed so it didn't update the account email.

Because the business email is stored in AUTH, it makes retrieving this info difficult for director search. Also more complicated for migrating entities from COLIN to postgress.

Contributor guide

No contributing guide indexed for this repository

Research direction

No files, tests, or entry points are named. Start by tracing how registered-office emails are written to AUTH and how LEAR, director search, and COLIN-to-Postgres migration consume them; done means the email is stored in LEAR and those retrieval and migration paths still work.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgres
Domain
backend, databases
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.