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
Namex Emailer: refactor to support different templates, FFs, etc #26099
Entities TeamA label to filter on the tickets for the Entities based team that takes care of front end featuresMarch Go LiveAll tickets to be completed before March Go LiveNames TeamName Request Name Examination Team
different templates for different types of NRs (eg, NEW, CHG, MVE, RES, etc)
different templates for modernized, COLIN, both, etc
The current code architecture -- and specifically, how the templates are selected -- is complex and not easily extensible. However, Ethan Portman has some code changes that need to be integrated, and Entities Team has near-future changes to make (for MVP). Furthermore, post-MVP, a lot of templates will be obsolete.
Therefore, this ticket is to refactor / clean up the current code architecture (and how the templates are selected). One idea is to separate templates into folders (instead of using states in the template names) to select them.
Ideally, Ethan and Kevin Zhang can discuss together how to clean this up to facilitate:
integration of Ethan's changes (PR)
expansion of templates for MVP
use of Feature Flags to enable/disable some templates, if needed
@EPortman Can you please qualify the issues that are preventing you from integrating your emailer PR? And do you have any idea how you'd like this code architected?
@kzdev420 FYI, and please think about how this code could be re-architected.
Up to Ethan and Kevin whether to first merge Ethan's work and then clean up the spaghetti code, or vice versa. Do whatever is easier and will support additional logic (templates) for MVP!
At the moment, the logic for selecting templates is complex and not scalable.
The purpose of this ticket is to clean up the existing Namex Emailer code to make it simpler to select the right template (and output), especially because we will need to add more email variations for MVP.
For example, there may be variations for:
modernized-only
COLIN-only
modernized + COLIN (both in same email for user to choose)
We will need to enable variations using feature flags so that we can support staged deployments. For example:
things that need to work a certain way on April 1 (eg, all features released but for modernized businesses only)
things that need to work a certain way on April 14 (eg, redirect all users to modernized; no more COLIN)
Entities TeamA label to filter on the tickets for the Entities based team that takes care of front end featuresMarch Go LiveAll tickets to be completed before March Go LiveNames TeamName Request Name Examination Team
Activity
severinbeauvais commentedon Feb 21, 2025
@EPortman Can you please qualify the issues that are preventing you from integrating your emailer PR? And do you have any idea how you'd like this code architected?
@kzdev420 FYI, and please think about how this code could be re-architected.
Olga will be assigning this ticket very soon.
severinbeauvais commentedon Feb 21, 2025
@OlgaPotiagalova FYI
severinbeauvais commentedon Feb 21, 2025
Up to Ethan and Kevin whether to first merge Ethan's work and then clean up the spaghetti code, or vice versa. Do whatever is easier and will support additional logic (templates) for MVP!
severinbeauvais commentedon Feb 24, 2025
At the moment, the logic for selecting templates is complex and not scalable.
The purpose of this ticket is to clean up the existing Namex Emailer code to make it simpler to select the right template (and output), especially because we will need to add more email variations for MVP.
For example, there may be variations for:
We will need to enable variations using feature flags so that we can support staged deployments. For example:
NRs that may need variations (needs decision from @OlgaPotiagalova and designs from @jacqueline-williams-549):
ozamani9gh commentedon Mar 6, 2025
@kzdev420 have you spoken with ethan, is there anything you are waiting on from my team.
severinbeauvais commentedon Mar 6, 2025
@kzdev420 Does your PR include Ethan's changes, or is that a separate ticket that still needs to be finished?
severinbeauvais commentedon Mar 6, 2025
Thanks for clarfying that. @ozamani9gh , FYI, and let us know if Ethan can't do that.