Pro early access: Flipper Cloud's UI, self-hosted in your Rails app. $1,999/org/yr.

Get early access

Blog

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_READS set 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:update runs with a global config.active_record.table_name_prefix instead of crashing #1152.
  • A Date in a Time expression 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/0 prints 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

Ready to try it out?

Get audit history, rollbacks, advanced permissions, analytics, and all of your projects in one place.


Prefer our Cloudless option?

You can choose from several tiers to sponsor Flipper on GitHub and get some great benefits!

The Friday Deploy

News and open source releases for all things Flipper. Unsubscribe anytime.

Have questions? Need help?

Email us any time or head on over to our documentation or status page for the latest on the app or API.

Ready to take Flipper for a swim?

No credit card required. 14-day free trial. And customer support directly from the developers.