Hotfix for the steps-1+2 deploy: migration 0045's backfill hit cannot deconstruct a scalar because some image_record rows store tagger_predictions as a JSON scalar/null, not an object — json_each throws on those, rolling back the whole migration (image_prediction never created; web crash-looped on the boot migration).
Guard the backfill with json_typeof = 'object' in a MATERIALIZED CTE so the type filter runs before json_each ever evaluates a scalar.
Hotfix for the steps-1+2 deploy: migration 0045's backfill hit `cannot deconstruct a scalar` because some `image_record` rows store `tagger_predictions` as a JSON scalar/null, not an object — `json_each` throws on those, rolling back the whole migration (image_prediction never created; web crash-looped on the boot migration).
Guard the backfill with `json_typeof = 'object'` in a MATERIALIZED CTE so the type filter runs before `json_each` ever evaluates a scalar.
CI green on dev `a712cef` (run 849).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Some image_record rows store tagger_predictions as a JSON scalar/null rather
than an object; json_each throws 'cannot deconstruct a scalar' on those,
rolling back the whole migration. Filter to json_typeof = 'object' in a
MATERIALIZED CTE so the guard runs before json_each ever evaluates a scalar.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Hotfix for the steps-1+2 deploy: migration 0045's backfill hit
cannot deconstruct a scalarbecause someimage_recordrows storetagger_predictionsas a JSON scalar/null, not an object —json_eachthrows on those, rolling back the whole migration (image_prediction never created; web crash-looped on the boot migration).Guard the backfill with
json_typeof = 'object'in a MATERIALIZED CTE so the type filter runs beforejson_eachever evaluates a scalar.CI green on dev
a712cef(run 849).🤖 Generated with Claude Code