-
Notifications
You must be signed in to change notification settings - Fork 10
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
AAP-20249: Admin Dashboard: [Feature flag] -M-A-G-I-C- Organizations #804
Conversation
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.
Hey @manstis
Just did a quick look and looks good, but just a small comment: could it be possible refactoring the name of this new flag from schema2
to analytics
, WDYT? It is not a blocker at all anyway.
I mention because the schema2
is named everywhere in the code as analytics_telememtry
. It's just for being consistent....
Hi @romartin
To be honest, I renamed the flag in this PR from what it was in The Personally, I still prefer to include the |
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.
the flag usage looks good to me. but I don't fully understand the overriding precedence and so I'll let Roger or others to review that.
Closing. The PR description and review discussion will distort review of latest changes. I'll re-open as a new PR. |
Replaced by #814 |
Jira Issue: https://issues.redhat.com/browse/AAP-20249
Description
This introduces a magic flag in LaunchDarkly for a (comma-separated) white-list of
org_id
's that circumvent all known checks for "Schema 2 Telemetry". i.e. if anorg_id
is present in LaunchDarkly then the "Schema 2 Telemetry" opt-in/out flag will be present in/me
irrespective of other settings. Furthermore "Schema 2 Telemetry" events will be sent to Segment.See #776 for details of local LaunchDarkly test support 🎉
Testing
settings.development.TELEMETRY_SCHEMA_2_ENABLED = True
Using the LaunchDarkly override settings detailed in #776 try with local settings for:
"schema_2_telemetry_org_id_white_list": "1234567[*]"
- Expectorg_telemetry_opt_out: false
to be present."schema_2_telemetry_org_id_white_list": ""
- Expectorg_telemetry_opt_out
to be missing.For each, execute the
api/v0/me
endpoint and compare results with the expectations above.settings.development.TELEMETRY_SCHEMA_2_ENABLED = False
Using the LaunchDarkly override settings detailed in #776 try with local settings for:
"schema_2_telemetry_org_id_white_list": "1234567[*]"
- Expectorg_telemetry_opt_out: false
to be present."schema_2_telemetry_org_id_white_list": ""
- Expectorg_telemetry_opt_out
to be missing.For each, execute the
api/v0/me
endpoint and compare results with the expectations above.[*]
1234567
is whateverorg_id
your local login belongs to.Steps to test
make start-backends
make create-application
make run-server
(or whatever you normally do)Scenarios tested
See "Testing" above.
Production deployment
I renamed the system-wide environment variable to
TELEMETRY_SCHEMA_2_ENABLED
.This needs to be reflected in Staging Secret Manager.