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: Create change requests for segments #4265

Open
wants to merge 120 commits into
base: main
Choose a base branch
from

Conversation

zachaysan
Copy link
Contributor

@zachaysan zachaysan commented Jun 28, 2024

Changes

This PR works in concert with this other PR on the workflows repo.

This PR introduces many changes to support the addition of segments in change requests. The primary logic around transferring change request segment data into the target segment data involves re-using logic that was originally written for the segment versioning.

Due to the primary manager (.objects) now including versioned or change requested segments copies, some amount of work was necessary to get all the aspects of the existing code to pass. The .live_objects manager is used for segments that are not merely versions or change request segments but in some places manually filtering segments was the only solution.

How did you test this code?

Added tests across the test suite, including new tests for duplicate segments to test filtering, as well as tests located in with the other workflows PR to get coverage of edge cases.

@zachaysan zachaysan requested a review from a team as a code owner June 28, 2024 14:34
@zachaysan zachaysan requested review from khvn26 and removed request for a team June 28, 2024 14:34
Copy link

vercel bot commented Jun 28, 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 7, 2024 2:58pm
flagsmith-frontend-preview ⬜️ Ignored (Inspect) Visit Preview Oct 7, 2024 2:58pm
flagsmith-frontend-staging ⬜️ Ignored (Inspect) Visit Preview Oct 7, 2024 2:58pm

@zachaysan zachaysan removed the request for review from khvn26 June 28, 2024 14:35
@github-actions github-actions bot added api Issue related to the REST API feature New feature or request labels Jun 28, 2024
Copy link
Contributor

github-actions bot commented Jun 28, 2024

Uffizzi Ephemeral Environment deployment-53620

☁️ https://app.uffizzi.com/github.com/Flagsmith/flagsmith/pull/4265

📄 View Application Logs etc.

What is Uffizzi? Learn more!

Copy link

codecov bot commented Jun 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.22%. Comparing base (e65c8da) to head (04a1c55).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4265      +/-   ##
==========================================
+ Coverage   97.20%   97.22%   +0.01%     
==========================================
  Files        1171     1177       +6     
  Lines       40640    40803     +163     
==========================================
+ Hits        39506    39671     +165     
+ Misses       1134     1132       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions github-actions bot added feature New feature or request and removed feature New feature or request labels Jul 1, 2024
@github-actions github-actions bot removed the feature New feature or request label Jul 17, 2024
@github-actions github-actions bot added the feature New feature or request label Oct 3, 2024
@github-actions github-actions bot added feature New feature or request and removed feature New feature or request labels Oct 3, 2024
@github-actions github-actions bot added feature New feature or request and removed feature New feature or request labels Oct 3, 2024
@github-actions github-actions bot added feature New feature or request and removed feature New feature or request labels Oct 4, 2024
@github-actions github-actions bot added feature New feature or request and removed feature New feature or request labels Oct 4, 2024
@github-actions github-actions bot added feature New feature or request and removed feature New feature or request labels Oct 7, 2024
@github-actions github-actions bot added feature New feature or request and removed feature New feature or request labels Oct 7, 2024
@github-actions github-actions bot added feature New feature or request and removed feature New feature or request labels Oct 7, 2024
@github-actions github-actions bot added feature New feature or request and removed feature New feature or request labels Oct 7, 2024
@github-actions github-actions bot added feature New feature or request and removed feature New feature or request labels Oct 7, 2024
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