[Feature flag] Persist Billing Account related data

Summary

We are introducing logic that will populate BillingAccount and BillingAccountMembership as part of Iteration 1A: Align CustomersDot BillingAccount... (&8950 - closed) given we are going to iteratively add small bits we want to make sure we update at least all the places listed in Create BillingAccount and BillingAccountMembers... (#4795 - closed) before start collecting the data in production.

This issue is to rollout the persistence of the data related to BillingAccount and BillingAccountMembership currently behind the account_data_persistence feature flag.

Owners

  • Team: groupfulfillment platform
  • Most appropriate Slack channel to reach out to: #g_fulfillment_platform
  • Best individual to reach out to: @tyleramos or @vshumilo
  • PM: @mgass1

Stakeholders

No other stakeholders.

The Rollout Plan

Rollout Feature for everyone as soon as it's ready

Expectations

What are we expecting to happen?

Customer's associated billing account is kept up to date with customer.zuora_account_id.

What might happen if this goes wrong?

  • Disruptive exceptions in the code.

What can we monitor to detect problems with this?

  • Keep an eye on Sentry.
  • Check #s_fulfillment_status for errors.

Rollout Steps

Rollout on non-production environments

  • Ensure that the feature MRs have been deployed to non-production environments, i.e. customers-staging.
  • Consider announcing that the flag will be enabled to potentially impacted groups, e.g. #s_fulfillment_engineering
  • Enable the feature globally on non-production environments by applying the appropriate environment, e.g. customers-staging and customers-development.
  • Notify the Software Engineers in Test (SETs) for Fulfillment via Slack and in a comment in this issue when enabling a feature flag in customers-staging as it can impact the QA pipeline.
  • Verify that the feature works as expected. Posting the QA result in this issue is preferable.

Preparation before production rollout

  • Ensure that the feature MRs have been deployed to production
  • Check if the feature flag change needs to be accompanied with a change management issue - Lena: Based on the criteria there is no need for change management issue Cross link the issue here if it does.
  • Ensure that you or a representative in Fulfillment can be available for at least 2 hours after feature flag updates in production. If a different developer will be covering, or an exception is needed, please inform the Fulfillment team in #s_fulfillment_engineering
  • Ensure any documentation has been updated
  • Announce on the feature issue an estimated time this will be enabled on production if applicable
  • If the feature might impact the user experience, notify #s_fulfillment and potentially #support_gitlab-com, as well as your team channel (more guidance when this is necessary in the dev docs).

Global rollout on CustomersDot production

  • Confirm the feature flag is enabled on staging without incident
  • Roll out the feature to targeted testing users first (if applicable)
  • If applicable, incrementally roll out the feature.
  • Verify the change has the desired outcome with the limited rollout before enabling the feature globally on production.
  • Enable the feature globally on production environment
  • Announce on the feature issue that the feature has been globally enabled.
  • Wait for at least one day for the verification term.

Release the feature

After the feature has been deemed stable, the clean up should be done as soon as possible to permanently enable the feature and reduce complexity in the codebase.

  • Create a merge request to remove <feature-flag-name> feature flag
    • Remove all references to the feature flag from the codebase
  • Ensure that the cleanup MR has been deployed to both staging and production
  • Disable the feature flag via the CustomersDot dashboard
  • Ensure production environment is still working as expected
  • Remove the Unleash feature flag from the CustomersDot dashboard
  • Close this rollout issue.

Rollback Steps

  • This feature can be disabled by performing the following actions:
    • Disable the Unleash flag on the feature flag page
Edited Dec 16, 2022 by Vladlena Shumilo
Assignee Loading
Time tracking Loading