Skip to content

Namex Emailer: refactor to support different templates, FFs, etc #26099

Closed

Description

@severinbeauvais

The Namex Emailer currently supports:

  • 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
  • future cleanup of obsolete templates

Activity

  1. added
    Entities Team
    on Feb 21, 2025
  2. severinbeauvais commented on Feb 21, 2025

    @severinbeauvais
    CollaboratorAuthor

    @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.

  3. severinbeauvais commented on Feb 21, 2025

    @severinbeauvais
    CollaboratorAuthor
  4. added
    Names Team
    on Feb 21, 2025
  5. severinbeauvais commented on Feb 21, 2025

    @severinbeauvais
    CollaboratorAuthor

    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!

  6. severinbeauvais commented on Feb 24, 2025

    @severinbeauvais
    CollaboratorAuthor

    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)

    NRs that may need variations (needs decision from @OlgaPotiagalova and designs from @jacqueline-williams-549):

    • amalgamation
    • continuation in
    • new business (need ability to turn off modernized+COLIN and use modernize-only)
  7. added
    March Go Live
    on Feb 25, 2025
  8. ozamani9gh commented on Mar 6, 2025

    @ozamani9gh
    Collaborator

    @kzdev420 have you spoken with ethan, is there anything you are waiting on from my team.

  9. severinbeauvais commented on Mar 6, 2025

    @severinbeauvais
    CollaboratorAuthor

    @kzdev420 Does your PR include Ethan's changes, or is that a separate ticket that still needs to be finished?

  10. severinbeauvais commented on Mar 6, 2025

    @severinbeauvais
    CollaboratorAuthor

    It doesn't have Ethan's change. Maybe Ethan can add his change after merging the PR into main

    Thanks for clarfying that. @ozamani9gh , FYI, and let us know if Ethan can't do that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Entities TeamMarch Go LiveNames Team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions