-
Notifications
You must be signed in to change notification settings - Fork 429
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
feat(export): Add support for edge identities data #4654
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 3 Skipped Deployments
|
Docker builds report
|
Uffizzi Preview |
73d324a
to
63e9961
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4654 +/- ##
==========================================
+ Coverage 97.22% 97.32% +0.10%
==========================================
Files 1172 1176 +4
Lines 40516 41097 +581
==========================================
+ Hits 39390 39997 +607
+ Misses 1126 1100 -26 ☔ View full report in Codecov by Sentry. |
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.
Overall looks good. I just have a couple of small suggestions / questions.
api/edge_api/identities/export.py
Outdated
"uuid": uuid.uuid4(), | ||
"feature_state": [featurestate_uuid], | ||
"multivariate_feature_option": [mv_feature_option_uuid], | ||
"percentage_allocation": 100.0, |
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.
Why is this hard coded to 100.0
?
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.
It's because an identity override can only be 100 percent(for mv)
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.
As per my comment above, I'm not sure this is strictly true.
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.
Done, it is not hardcoded anymore
dfc7565
to
9cb31b0
Compare
api/edge_api/identities/export.py
Outdated
"uuid": uuid.uuid4(), | ||
"feature_state": [featurestate_uuid], | ||
"multivariate_feature_option": [mv_feature_option_uuid], | ||
"percentage_allocation": 100.0, |
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.
As per my comment above, I'm not sure this is strictly true.
c503667
to
ad4d74e
Compare
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.
Approved with a minor suggested naming improvement.
Co-authored-by: Matthew Elwell <[email protected]>
Thanks for submitting a PR! Please check the boxes below:
docs/
if required so people know about the feature!Changes
Add support for exporting edge-identities data(i.e: identities, traits, and feature states)
How did you test this code?
Adds unit test and test manually by exporting(from staging) and loading an organisation locally