Flipper 1.5.1: Webhook, Import and Migration Fixes
· John Nunemaker · 3 min read
Hello feature flagger,
1.5.1 is out. It fixes two bugs that 1.5.0 introduced, plus a few smaller ones. If you're on 1.5.0, upgrade.
Webhook syncs stick
In webhook mode, every process still polls Cloud every few minutes as a backup and keeps a copy of what it got. When you changed a flag, the webhook synced the new value right away. But a thread or app instance that hadn't read since the last poll could then sync that older copy over it. Your change rolled back until the next poll.
The built-in adapters were safe because they store a sync version and refuse older data. Adapters that don't store one, which is most third-party adapters, got rolled back. Now a webhook updates the poll's copy too, so there's nothing old left to sync, and a poll that was already in flight can't put it back (#1151).
Imports import again
1.5.0 added sync versions so stale data never overwrites newer data. It got a little too good at that. Flipper#import would quietly do nothing when the source had an older sync version from the same Cloud environment, like when restoring a backup or moving from Redis to Active Record after both had synced. It returned true and changed no flags.
An import is something you asked for on purpose, so it always applies now. Export files never carried a sync version, so they were never affected.
Smaller fixes
-
FLIPPER_CLOUD_MEMORY_READSset in a Rails initializer now applies to the default Cloud instance, not just named instances #1149. - The value-to-text migration from
rails g flipper:updateruns with a globalconfig.active_record.table_name_prefixinstead of crashing #1152. - A
Datein aTimeexpression means midnight UTC on every server. In 1.5.0 it meant midnight in the server's own time zone, so the same flag could flip at different moments on different hosts #1147. -
flipper enable -p 1/0prints a usage error instead of a backtrace #1145.
How I Checked It
Even small releases make me a little nervous. Before tagging this one, I asked Claude for an end-to-end test against Flipper Cloud running on my laptop: real HTTPS, real signed webhooks and real sync versions. It ran each fix on 1.5.1 and on 1.5.0:
| Check | 1.5.1 | 1.5.0 |
|---|---|---|
| Basic sync from Cloud | ✅ | ✅ |
| Webhook, then a new thread reads (memory reads on) | ✅ | ❌ rolled back to off |
| Webhook, then a new thread reads (memory reads off) | ✅ | ❌ rolled back to off |
| Import an older backup | ✅ | ❌ changed nothing |
FLIPPER_CLOUD_MEMORY_READS set after require |
✅ | ❌ ignored |
| Migration with a global table prefix | ✅ | ❌ errored |
flipper enable -p 1/0 |
✅ usage error | ❌ backtrace |
Date in a Time expression, server in New York |
✅ 00:00 UTC | ❌ 04:00 UTC |
The red column matters as much as the green one. A check that passes on the old version too doesn't prove anything. Checking used to mean reading the diff one more time and hoping. Now when I'm nervous, I just ask for a test.
The full list is in the 1.5.0 to 1.5.1 compare. Let me know if you hit any bumps.
Happy flipping,
Nunes
Get audit history, rollbacks, advanced permissions, analytics, and all of your projects in one place.
You can choose from several tiers to sponsor Flipper on GitHub and get some great benefits!