• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Ch4s3 / bandera / 3b4b54b174f81128cc26c824eb07847182602368-PR-13
93%
main: 93%

Build:
Build:
LAST BUILD BRANCH: fix/fun-with-flags-boolean-gate-migration
DEFAULT BRANCH: main
Ran 01 Jun 2026 08:29PM UTC
Jobs 1
Files 38
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

01 Jun 2026 08:28PM UTC coverage: 93.375% (+0.2%) from 93.223%
3b4b54b174f81128cc26c824eb07847182602368-PR-13

Pull #13

github

Ch4s3
Fix FunWithFlags boolean gate migration

Prevents and fixes duplicate boolean gate rows that occur when migrating
from FunWithFlags to Bandera using an existing Ecto table.

Root cause: FunWithFlags stored boolean gates with a legacy target value;
Bandera uses "_bandera_none". The upsert conflict key is
(flag_name, gate_type, target), so the two sentinels don't conflict —
a second row is inserted rather than updating the first. The symptom is
a dashboard toggle that shows "on" while the summary shows "off", and
clicking the toggle appears to do nothing.

Changes:
- Add boolean-specific put/2 to the Ecto store that deletes any existing
  boolean row before inserting, preventing duplicates going forward
- Add Bandera.Ecto.Migrations.fix_fun_with_flags_boolean_gates/0, a
  migration helper for one-time cleanup of duplicates already in the DB
- Add mix bandera.gen.fix_fun_with_flags_migration to scaffold the
  migration file in one command
- Add a warning block to the migration guide Step 5 (Option A)
Pull Request #13: Fix FunWithFlags boolean gate migration

25 of 25 new or added lines in 3 files covered. (100.0%)

1043 of 1117 relevant lines covered (93.38%)

273.84 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3b4b54b174f81128cc26c824eb07847182602368-PR-13.1 01 Jun 2026 08:29PM UTC 38
93.38
GitHub Action Run
Source Files on build 3b4b54b174f81128cc26c824eb07847182602368-PR-13
  • Tree
  • List 38
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #13
  • PR Base - main (#FE374ED7...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc