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

feat(export): Add support for edge identities data #4654

Merged
merged 11 commits into from
Oct 30, 2024

Conversation

gagantrivedi
Copy link
Member

@gagantrivedi gagantrivedi commented Sep 24, 2024

Thanks for submitting a PR! Please check the boxes below:

  • I have added information to docs/ if required so people know about the feature!
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

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

@gagantrivedi gagantrivedi requested a review from a team as a code owner September 24, 2024 09:53
@gagantrivedi gagantrivedi requested review from khvn26 and removed request for a team September 24, 2024 09:53
Copy link

vercel bot commented Sep 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) Visit Preview Oct 30, 2024 10:13am
flagsmith-frontend-preview ⬜️ Ignored (Inspect) Visit Preview Oct 30, 2024 10:13am
flagsmith-frontend-staging ⬜️ Ignored (Inspect) Visit Preview Oct 30, 2024 10:13am

@github-actions github-actions bot added api Issue related to the REST API feature New feature or request labels Sep 24, 2024
Copy link
Contributor

github-actions bot commented Sep 24, 2024

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-e2e:pr-4654 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api-test:pr-4654 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-frontend:pr-4654 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-api:pr-4654 Finished ✅ Results
ghcr.io/flagsmith/flagsmith:pr-4654 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-private-cloud:pr-4654 Finished ✅ Results

Copy link
Contributor

github-actions bot commented Sep 24, 2024

Uffizzi Preview deployment-57767 was deleted.

@gagantrivedi gagantrivedi force-pushed the feat/edge-identities-export branch from 73d324a to 63e9961 Compare September 24, 2024 09:59
@github-actions github-actions bot added feature New feature or request and removed feature New feature or request labels Sep 24, 2024
Copy link

codecov bot commented Sep 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.32%. Comparing base (1ffef49) to head (82c4e08).
Report is 38 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@zachaysan zachaysan left a 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.

"uuid": uuid.uuid4(),
"feature_state": [featurestate_uuid],
"multivariate_feature_option": [mv_feature_option_uuid],
"percentage_allocation": 100.0,
Copy link
Contributor

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?

Copy link
Member Author

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)

Copy link
Contributor

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.

Copy link
Member Author

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

@github-actions github-actions bot added feature New feature or request and removed feature New feature or request labels Sep 24, 2024
@gagantrivedi gagantrivedi force-pushed the feat/edge-identities-export branch from dfc7565 to 9cb31b0 Compare September 26, 2024 09:49
@github-actions github-actions bot added feature New feature or request and removed feature New feature or request labels Sep 26, 2024
@github-actions github-actions bot added feature New feature or request and removed feature New feature or request labels Sep 27, 2024
"uuid": uuid.uuid4(),
"feature_state": [featurestate_uuid],
"multivariate_feature_option": [mv_feature_option_uuid],
"percentage_allocation": 100.0,
Copy link
Contributor

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.

@gagantrivedi gagantrivedi force-pushed the feat/edge-identities-export branch from c503667 to ad4d74e Compare October 15, 2024 05:26
@matthewelwell matthewelwell self-requested a review October 30, 2024 09:59
Copy link
Contributor

@matthewelwell matthewelwell left a 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.

@github-actions github-actions bot added feature New feature or request and removed feature New feature or request labels Oct 30, 2024
@gagantrivedi gagantrivedi added this pull request to the merge queue Oct 30, 2024
Merged via the queue into main with commit f72c764 Oct 30, 2024
34 checks passed
@gagantrivedi gagantrivedi deleted the feat/edge-identities-export branch October 30, 2024 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issue related to the REST API feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants