-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup FCA experiment flag and legacy code paths #3603
Cleanup FCA experiment flag and legacy code paths #3603
Conversation
…into cleanup
Clean up LGTM. Left a suggestion for fallback mechanism we can be followed up later. |
…scription
…into cleanup
…into cleanup
…into cleanup
const nextOrchestration = await this.getInterventionOrchestration_( | ||
clientConfig, | ||
article | ||
); | ||
|
||
if (!!nextOrchestration) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this result in nothing being shown? Should this fallback aswell?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question, this is WAI because it is valid for getInterventionOrchestration_
to not return any orchestration after checking, for example, action state or frequency capping eligibility. The fallback implemented for actionOrchestration
is a fallback for an invalid case where the actionOrchestration
object is absent from the article
response.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, I see line 345 now. Maybe splitting the block assigning potentialAction
into a function could make it easier to read?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree it is slightly confusing, the reason why getting potentialAction
is not its own function is because the overall function relies on setting dismissibility from the orchestration. I added a todo to clean this up in a future PR.
const nextOrchestration = await this.getInterventionOrchestration_( | ||
clientConfig, | ||
article | ||
); | ||
|
||
if (!!nextOrchestration) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, I see line 345 now. Maybe splitting the block assigning potentialAction
into a function could make it easier to read?
80bb432
into
subscriptions-project:main
Post launch, cleanup legacy code: b/385185319
Final step of post-launch cleanup: