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

fix: make clone_feature_states_async write only #4811

Merged

Conversation

matthewelwell
Copy link
Contributor

Changes

Makes the field clone_feature_states_async write only. This field was designed to be write only but the configuration was missing and hence it's returning False on all requests (because it doesn't exist on the response entity).

The alternative here would be to patch the attribute directly onto the environment in the response, but for the sake of a very small breaking API change which no-one will be using directly, I think we should just remove it from the response.

How did you test this code?

Updated an existing integration test.

@matthewelwell matthewelwell requested a review from a team as a code owner November 6, 2024 12:01
@matthewelwell matthewelwell requested review from gagantrivedi and removed request for a team November 6, 2024 12:01
Copy link

vercel bot commented Nov 6, 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) Nov 6, 2024 0:01am
flagsmith-frontend-preview ⬜️ Ignored (Inspect) Nov 6, 2024 0:01am
flagsmith-frontend-staging ⬜️ Ignored (Inspect) Nov 6, 2024 0:01am

@github-actions github-actions bot added api Issue related to the REST API fix labels Nov 6, 2024
Copy link
Contributor

github-actions bot commented Nov 6, 2024

Docker builds report

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

Copy link
Contributor

github-actions bot commented Nov 6, 2024

Uffizzi Preview deployment-58014 was deleted.

Copy link

codecov bot commented Nov 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.33%. Comparing base (364c565) to head (4af9686).
Report is 12 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4811   +/-   ##
=======================================
  Coverage   97.33%   97.33%           
=======================================
  Files        1180     1180           
  Lines       41213    41214    +1     
=======================================
+ Hits        40113    40114    +1     
  Misses       1100     1100           

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

@matthewelwell matthewelwell merged commit 513b088 into main Nov 7, 2024
34 checks passed
@matthewelwell matthewelwell deleted the chore/make-clone_feature_states_async-write-only branch November 7, 2024 11:59
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 fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants