Hello! We have set our CI in a way that enables an...
# ask-questions
h
Hello! We have set our CI in a way that enables and updates a feature via API before running our test suites. In recent runs we noticed many failures because the feature update doesn't seem to have taken effect. It seems that recently you did some UI/UX updates and now even the toggle changes need to be published. Do you maybe have updated the API flow as well and I need to do some kind of publish there as well? I didn't notice anything new here
Copy code
curl -s -X POST <https://api.growthbook.io/api/v1/features/table_migration_bulk_actions_enable> -u **** -H Content-Type: application/json --data-raw {"environments":{"stg10":{"enabled":true,"rules":[{"type":"force","value":"true","enabled":true,"condition":"{}"}]}}}
f
Hi Tania 👋 Correct, this behavior changed when we fixed API updates to go through the same scheduling logic as the UI in this PR.
The ability to programmatically publish a draft via the API is on our radar and being tracked here: https://github.com/growthbook/growthbook/issues/5594.
We made this change so that feature updates made via the API stay consistent with how scheduled rules and updates are handled in the UI.