Skip to content

Follow-ups: manual tax overrides, release workflow pinning, and compatibility coverage #220

Closed

Description

@khaira777

Context

This tracking issue records follow-up work identified during the pre-merge review of PR #217.

Verified follow-ups

  • High — remap manual-tax overrides when categories are renamed or removed. main/routes/tax-packs.ts migrates override rows to the new local pack version, but the manual-config replacement path only remaps products and addons. Existing product/charge/store-wide overrides can retain removed category IDs and make checkout reject otherwise valid lines. Add a transaction-safe remap/delete policy for every override entity and regression tests.
  • Medium — make previewCategoryRate follow authoritative rule selection. main/services/tax.ts currently selects preview rules by rule.categoryIds, while checkout uses the category's ruleIds. Align the preview path and add a mismatched/orphan rule test.
  • High release-supply-chain risk — pin canonical/setup-lxd to a reviewed commit SHA. .github/workflows/release.yml currently references the mutable @main ref in a workflow with write permissions.
  • Medium — add explicit migration fixtures for parent versions. Add serialized upgrade assertions for an origin/main v55 database and this PR's v56 database, in addition to the existing old-release fixture, to guard future migration conflict resolution.
  • Medium privacy — redact cloud_deletion_status_token from database exports. It is persisted and used as a deletion-status bearer-like token but is not currently in the export redaction set. This is pre-existing and should be fixed separately from PR security: harden database restore, authentication, and KDS boundaries #217.
  • Low compatibility — migrate persisted printer paper values a4/a5 to a supported thermal default after the settings UI removed those options.
  • Low — add focused coverage for manual tax configuration, loyalty override transitions, support outbox delivery, and visual status/sidebar changes. Existing engine/printer tests pass, but the newest manual-tax endpoint and several UI/release flows lack direct tests.
  • Low release hygiene — tighten numeric release-tag validation so malformed numeric tags cannot start a release workflow, and verify tag/package-version equality.
  • Medium compatibility — validate legacy tax-pack digest behavior against a real historical serialized artifact, not only synthetic fixtures, to document the byte-level compatibility boundary.

Suggested order

  1. Fix manual-tax override remapping and add endpoint tests.
  2. Pin the mutable release action and tighten release-tag validation before the next release.
  3. Add parent-version migration fixtures and redact the cloud deletion status token.
  4. Address UI persistence compatibility and broader focused coverage.

Activity

  1. khaira777 commented on Aug 9, 2026

    @khaira777
    ContributorAuthor

    Additional pending item from the merge push:

    This was not changed as part of PR #217.

  2. khaira777 commented on Aug 9, 2026

    @khaira777
    ContributorAuthor

    The post-merge Windows matrix failure is isolated and tracked in follow-up PR #222: #222. Manual full matrix run 31291071323 passed on Windows, Ubuntu, macOS x64, and macOS arm64 with the targeted writable-handle fsync fix.

  3. khaira777 commented on Aug 9, 2026

    @khaira777
    ContributorAuthor

    Follow-up complete: PR #222 fixed Windows fsyncSync portability and PR #223 stabilized the cross-platform maintenance-lock test. Both were squash-merged with their branches deleted. Main is now at 5daf0ba5; CI and the post-merge Full Cross-Platform Matrix pass on Windows, Ubuntu, macOS x64, and macOS ARM64.

  4. itsbkm commented on Aug 9, 2026

    @itsbkm
    Contributor

    All 9 verified follow-ups plus the pending Dependabot alert are resolved on main, shipped in v2.9.7:

    • High — override remap on manual category rename/remove: tax_overrides for every entity type (product, addon, packaging, delivery, service_charge) now gets remapped to the pack's new default category, not just products/addons. Also fixed validation check Create countries table in backend with API endpoints #20, which was hard-blocking the save before the remap transaction ever ran — the underlying bug this issue describes. New regression test: tests/manual-tax-config.test.ts.
    • Medium — previewCategoryRate rule selection: now selects rules via category.ruleIds, matching checkout's authoritative logic, instead of rule.categoryIds alone. New test in tests/tax-engine.test.ts.
    • High release-supply-chain risk — canonical/setup-lxd@main: pinned to 8c6a87b (tag v1).
    • Medium — parent-version migration fixtures: added a real generated fixture at schema v56 and a test asserting the v57 migration against a real pre-existing install's shape (tests/migration-v56-to-v57.test.ts).
    • Medium privacy — cloud_deletion_status_token export redaction: added to EXPORT_SETTINGS_REDACT. Covered in tests/security-hardening.test.ts.
    • Low compatibility — legacy printer a4/a5: migrated via a pos-settings store version bump, then removed entirely as dead code in a follow-up (Settings never offered them, and the underlying web-print A4/A5 layouts were reachable only from the internal print-test QA page).
    • Low — focused test coverage: added tests/manual-tax-config.test.ts and tests/support-ticket.test.ts (the support-ticket outbox endpoint had no test file at all before this).
    • Low release hygiene — numeric release-tag validation: release.yml now rejects a tag that isn't strict X.Y.Z or that doesn't match package.json's version, before anything builds.
    • Medium compatibility — legacy tax-pack digest vs. real historical artifact: recovered the actual pre-removal official-india/official-thailand JSON from git history (commit a51e828) and confirmed it hashes to the exact digests in LEGACY_TRUSTED_PACK_DIGESTS (tests/legacy-tax-pack-digest.test.ts).
    • Dependabot fix: JWT field name mismatch in register + stuck 'Adding...' button in TableCheckoutModal #31 (nanoid DoS): bumped 3.3.16 → 3.3.18.

    Commits: 7e69f76, 1d7c059, d2ca08d, fd9a2c0, 127a229, bc1e164 (v2.9.7).

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions