Update CDot's BaseTrialService to route trials to Workato
Problem
We're removing Platypus from the Trial Lead workflow so that work will need to be done via other methods. Currently Customers Dot's BaseTrialService
posts the lead to Platypus after the lead is created.
Proposal
There are two places to change:
- In place of the
BaseTrialService
's existingcreate_platypus_lead
create a newcreate_workato_lead
method utilizing the Sidekiq worker from #5012 (closed). This new method will want to take the same information as the existing method but hand it off to a local Sidekiq queue instead of Platypus. - In
TrialsController
, create a new methodcreate_hand_raise_workato_lead
to replace existingcreate_hand_raise_platypus_lead
. - Introduce a new feature flag
switch_lead_creation_from_platypus_to_workato
Result
We're able to complete the full trial lead process without involving Platypus in the process.
Next steps (if any)
Roll out the new method of posting Leads via a feature flag.
How will we measure success?
We will consult with the Marketing Operations team to ensure that the newly posted data in Workato conforms to expectations and will work as expected for them in downstream processes.
Edited by Qingyu Zhao