You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Investigation: Namex / MBR - investigate whether "target" is still being used and needs to be updated for Direct Launch or MVP release #24199
Entities TeamA label to filter on the tickets for the Entities based team that takes care of front end featuresNameXNameX and related services proxied via namexNames TeamName Request Name Examination TeamPriority2connectThe connect common platform
Namex API has a table that maps NR Request Types to various things including "Target" (which is either lear, colin or static). This seems to control where NRs of various types are used.
It's possible this data is being used by the "My Business Registry" page to determine whether to redirect a NR for use in LEAR or in COLIN. However, it's possible this has been replaced by Feature Flags instead.
@OlgaPotiagalova@ozamani9gh Here is something I've looked into but I don't have the needed answers, so I created this ticket instead. This is likely high priority and someone familiar with Namex and MBR should look into it. Please tag to more appopriate epic(s) as applicable.
@JazzarKarim did a bit of investigation and reports,
All right, so from what I can see, both the "target" and the feature flag are being used. The flow is like this:
First we check if the business is a corporation. If it is:
If the EnableBcCccUlc feature flag is ON -> routes to LEAR
If the feature flag is OFF -> routes to COLIN
If not a corp, then here we'll be using whatever the target that was originally set in the name request (nr.target)
So the feature flag check happens first in the business store to set the target, and then that target is used to determine the routing. The feature flag essentially overrides the target for corps, forcing them to either LEAR or COLIN based on the flag value.
What this looks like, to me, is that we don't have to worry about "target" in Namex for a potential directed launch, but we will have to update the "My Business Registry" code to route to both LEAR and COLIN (instead of one or the other based on FF).
changed the title [-]Namex / MBR - investigate whether "target" is still being used and needs to be updated for Go Live[/-][+]Investigation: Namex / MBR - investigate whether "target" is still being used and needs to be updated for Go Live[/+]on Nov 21, 2024
changed the title [-]Investigation: Namex / MBR - investigate whether "target" is still being used and needs to be updated for Go Live[/-][+]Investigation: Namex / MBR - investigate whether "target" is still being used and needs to be updated for Direct Launch[/+]on Nov 21, 2024
changed the title [-]Investigation: Namex / MBR - investigate whether "target" is still being used and needs to be updated for Direct Launch[/-][+]Investigation: Namex / MBR - investigate whether "target" is still being used and needs to be updated for Direct Launch or MVP release[/+]on Nov 21, 2024
Yes, the "target" values from the Namex API are used by the MBR/BRD except for a special case. Therefore, we need to have a close look at that table, and the MBR/BRD, and Namex API will need to be released, for Directed Launch. It also looks like there's some "entanglement" in the MBR/BRD for using "target" (ie, some hard-coded, some FF, etc).
The special case where "target" is not used is when the subject business is CCC, BC or ULC.
@JazzarKarim Please have a quick review of my analysis, above, if only the new BRD code.
My findings suggest that the name request target and actions properties are not used anywhere. Instead, environment keys and hard code determine what form to link to, what name to display, or what logic to use for COLIN vs LEAR.
@JazzarKarim Please have a quick review of my analysis, above, if only the new BRD code.
My findings suggest that the name request target and actions properties are not used anywhere. Instead, environment keys and hard code determine what form to link to, what name to display, or what logic to use for COLIN vs LEAR.
Your findings make so much sense to me Sev. This is great as this means we don't need to make any changes to NameX. Nice! Moving it to Done.
Entities TeamA label to filter on the tickets for the Entities based team that takes care of front end featuresNameXNameX and related services proxied via namexNames TeamName Request Name Examination TeamPriority2connectThe connect common platform
Activity
severinbeauvais commentedon Nov 4, 2024
@OlgaPotiagalova @ozamani9gh Here is something I've looked into but I don't have the needed answers, so I created this ticket instead. This is likely high priority and someone familiar with Namex and MBR should look into it. Please tag to more appopriate epic(s) as applicable.
vysakh-menon-aot commentedon Nov 4, 2024
That mapping is used for 2 purpose, Keep that in mind while changing it.
severinbeauvais commentedon Nov 4, 2024
@JazzarKarim did a bit of investigation and reports,
What this looks like, to me, is that we don't have to worry about "target" in Namex for a potential directed launch, but we will have to update the "My Business Registry" code to route to both LEAR and COLIN (instead of one or the other based on FF).
OlgaPotiagalova commentedon Nov 4, 2024
The assumption is that no changes are required for the directed launch. But needs to be reviewed for the MVP release.
seeker25 commentedon Nov 6, 2024
sorry tagged wrong ticket above
[-]Namex / MBR - investigate whether "target" is still being used and needs to be updated for Go Live[/-][+]Investigation: Namex / MBR - investigate whether "target" is still being used and needs to be updated for Go Live[/+][-]Investigation: Namex / MBR - investigate whether "target" is still being used and needs to be updated for Go Live[/-][+]Investigation: Namex / MBR - investigate whether "target" is still being used and needs to be updated for Direct Launch[/+][-]Investigation: Namex / MBR - investigate whether "target" is still being used and needs to be updated for Direct Launch[/-][+]Investigation: Namex / MBR - investigate whether "target" is still being used and needs to be updated for Direct Launch or MVP release[/+]8 remaining items
JazzarKarim commentedon Dec 10, 2024
An example of items that would use target with the Response Object:

severinbeauvais commentedon Dec 10, 2024
Answer
Yes, the "target" values from the Namex API are used by the MBR/BRD except for a special case. Therefore, we need to have a close look at that table, and the MBR/BRD, and Namex API will need to be released, for Directed Launch. It also looks like there's some "entanglement" in the MBR/BRD for using "target" (ie, some hard-coded, some FF, etc).
The special case where "target" is not used is when the subject business is CCC, BC or ULC.
severinbeauvais commentedon Dec 17, 2024
Deeper Analysis Results
It looks like
targetalong withactionswere intended to be used to specify what a NR type (eg, BERE) can be used for. However...Within NameX API
targetandactionsare added internally when creating a request objecttargetandactionsare returned when getting a request object (https://namex-dev.apps.silver.devops.gov.bc.ca/api/v1/requests/NR%205997458)targetonly (not the same actions) are returned when getting a namerequest object (https://namex-dev.apps.silver.devops.gov.bc.ca/api/v1/namerequests + request header)targetandactionsare exposed in schema on "POST /search" route (not sure how this is used)From Namerequest UI
targetandactionsare not used (not the same actions as above)From Name Examination UI
targetandactionsare not usedFrom Auth API
targetandactionsare not used when creating a new business affiliation (requests endpoint)actionsis not used when creating a new business affiliation (requests endpoint)targetandactionsare returned to UIFrom Auth Web / Business Registry Dashboard (My Business Registry page)
actions[x].URLis not used for static form URLs (uses env keys instead)actions[x].entitiesFilingNameis not used for display purposesactions[x].filingNameis not used for filing purposesactions[x].learTemplateis not used for creating drafts filings (they are hard-coded instead)targetis not used to redirect a NR object (to LEAR, ONESTOP or COLIN)lear/colinis overwritten for CC, BC and ULC according to FF (enable-bc-ccc-ulc)onestopis never set as a target name in Namex API or SBC Authactionsused to determine if approved for IA or registrationFrom Legal API
GET requestsendpoint)POST requests/searchendpoint)PUT requestsURLis not used anywherefilingNameis not used anywherelearTemplateis not used anywheretargetis not used anywhereactionsis not used anywhereFrom Filings/Create/Edit UIs
severinbeauvais commentedon Dec 23, 2024
@JazzarKarim Please have a quick review of my analysis, above, if only the new BRD code.
My findings suggest that the name request target and actions properties are not used anywhere. Instead, environment keys and hard code determine what form to link to, what name to display, or what logic to use for COLIN vs LEAR.
JazzarKarim commentedon Dec 24, 2024
Your findings make so much sense to me Sev. This is great as this means we don't need to make any changes to NameX. Nice! Moving it to Done.