Skip to content

scripts/backfill-line-number.ts and scripts/backfill-owner-id.ts fail on 17.6.0 before writing anything: the query door refuses their request bodies (filters: [] and sort: 'id asc') #1999

Description

@objectstack-fleet

Filing gate: ① product defect with reach measured. Class (a). reach: named producers. Both scripts were run report-only against a fresh @objectstack/* 17.6.0 boot:

  • scripts/backfill-line-number.ts → Backfill failed: query crm_opportunity_line_item → 400: Invalid query request
  • scripts/backfill-owner-id.ts → Backfill failed: cannot read sys_user (400)

Release-text exception too: the pending, unreleased .changeset/line-item-line-number-writer.md tells operators to run the first script, so the next release would ship an instruction that fails.

Who acts on it: the repo:hotcrm seat, which dispatches a dev. Found by the seat's dev while writing #1836's backfill (session_01ER8ntXZhYebyQ66aXWdjfT). ⛔ Not a claim; the first-touch grade is owed.

Measured

  • On 17.6.0, POST /api/v1/data/OBJECT/query refuses two body shapes the scripts send:
    • an empty filters: [] (query.filters min_items);
    • a string sort: 'id asc' (query.sort invalid_shape).
  • The new scripts/backfill-contact-mailing-address.ts (PR feat(contact): one structured mailing_address replaces five flat mailing_* fields (#1836) #1997) uses the accepted shapes, sort: [{ field: 'id', order: 'asc' }] with no empty filters, and runs green on the same boot. It is the in-repo reference.

Done when

  • Both scripts run report-only and --apply green on a fresh 17.6.0 boot.
  • A test or a probe keeps their query bodies inside the installed query schema, so the next schema tightening fails at verify rather than at an operator's terminal.
  • The changeset text stays true.

Duplicate check

All hotcrm issues, open and closed: 748 issues over 19 REST pages. Title and body were grepped for backfill-(line-number|owner-id): 1 hit, #716 (closed). It concerns demo_bootstrap ownership claims, not these query shapes.

Dedupe words: backfill-line-number backfill-owner-id filters min_items sort invalid_shape query 17.6.0


Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:p2Medium: important, M3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions