-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[MBL-1684] Remove Redundant No Shipping At Checkout Feature Flag Checks #2140
Conversation
this VC is only instantiated when featureNoShippingAtCheckout is enabled so we can remove the extra conditionals and this method since we don't want to go to confirm details at all from here anymore
This class is only instantiated when featureNoShippingAtCheckout is disabled. The check happens on the project page so no need to do it here.
assert( | ||
topViewController is PledgeViewController || | ||
topViewController is NoShippingPledgeViewController || | ||
topViewController is PostCampaignCheckoutViewController, | ||
"PledgePaymentMethodsViewController is only intended to be presented as part of a pledge flow." |
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.
We need to add this type-check here so that the Stripe payment sheet is presented on the NoShippingPledgeViewController
} | ||
|
||
self.viewModel.outputs.goToPledge | ||
self.viewModel.outputs.goToCustomizeYourReward |
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.
Updated the name of this output because this is called anytime a nonshippable reward is selected taking the user to the screens that only have the pledge amount or bonus amount selectors shown.
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.
Nice!
📲 What
Removes Redundant
featureNoShippingAtCheckout
ChecksAlso does a quick fix for an issue found in QA for the Stripe Sheet not showing on
NoShippingPledgeViewController
.🤔 Why
The
ProjectPageVIewController
determines whether to start the "No Shipping At Checkout" flow or the current flow in Production.We have unnecessary
if featureNoShippingAtCheckout()
conditions in the "No Shipping At Checkout" View Controllers.Since they'll never be shown when the flag is disabled, I'm removing them. They should never have been here tbh.
This all cleanup work.
🛠 How
Goes through each of these VCs and removes unused code and unnecessary feature flag checks:
✅ Acceptance criteria
featureNoShippingAtCheckout
is OFFfeatureNoShippingAtCheckout
is ON