Skip to content

Instantly share code, notes, and snippets.

@joekrump
Last active March 25, 2019 20:06
Show Gist options
  • Save joekrump/3b3c370d0f882086a9ea1ecb185441be to your computer and use it in GitHub Desktop.
Save joekrump/3b3c370d0f882086a9ea1ecb185441be to your computer and use it in GitHub Desktop.
FEI Team Demo - Apollo Feature Flags

FEI Team Demo - Apollo Feature Flags

Important URLs:

http://localhost:3000/admin/accounts/2 > "Features" tab http://localhost:3000/admin/tasks > > "Set Feature Flags For Accounts"

Files

pricing_tiers.yml - Where FFs are defined

https://github.com/clio/themis/blob/master/config/pricing_tiers.yml

Feature flag related components

https://github.com/clio/themis/tree/master/extras/clio/component

Where account_data is set for ThemisState. This includes permissions for feature flags.

https://github.com/clio/themis/blob/master/app/controllers/application_controller.rb#L601

Where we set up fallback URLs when customers don't have permission.

https://github.com/clio/themis/blob/master/client-src/apollo-app/common/utils/legacy-state-declaration.ts

Used in routes.ts

url-mappings.ts - where old page URL mappings are defined.

https://github.com/clio/themis/blob/master/app/javascripts/legacy-redirect/url-mappings.ts

Logic to handle loading legacy view?

https://github.com/clio/themis/blob/master/app/javascripts/legacy-frame-handlers/handlers.ts

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