Skip to content
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

refactor: migrate ENABLE_TAXES_DISPLAY to posthog #3354

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

asadali145
Copy link
Contributor

What are the relevant tickets?

Closes https://github.com/mitodl/hq/issues/6369

Description (What does it do?)

Migrates ENABLE_TAXES_DISPLAY feature flag to posthog.

How can this be tested?

  • Setup post hog account and required settings by following the instructions in feat: add posthog integration #3207
  • Create a feature flag in the post hog and disable it.
  • You won't see taxes at checkout.
  • Now enable the flag and check that you see taxes at checkout.
  • You must enable ECOMMERCE_FORCE_PROFILE_COUNTRY and add TaxRate for your profile country in the admin.
  • Note: If the tax rate is applicable but this flag is false, you will see the adjusted amount at checkout.

@pdpinch
Copy link
Member

pdpinch commented Jan 3, 2025 via email

@asadali145
Copy link
Contributor Author

@cachob I am going to remove the feature flag ENABLE_TAXES_DISPLAY as per Peter's suggestion.

@arslanashraf7
Copy link
Contributor

I don't think there's any reason to keep this feature flag. The feature has been deployed, and there's no reason why we would turn it off (at least not in RC and production deployments).

@pdpinch could you take a look at the other subtasks in https://github.com/mitodl/hq/issues/5825 and let us know what other flags are not needed?

@pdpinch
Copy link
Member

pdpinch commented Jan 3, 2025

@pdpinch could you take a look at the other subtasks in https://github.com/mitodl/hq/issues/5825 and let us know what other flags are not needed?

See https://github.com/mitodl/hq/issues/5825#issuecomment-2436216514

If the flag is currently True in production, we should plan to remove it. I would only consider keeping these flags if they are significantly valuable for developers. Otherwise, they are just tech debt.

@arslanashraf7
Copy link
Contributor

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

Successfully merging this pull request may close these issues.

4 participants