Skip to content

Phase 1: channel/montage schema + projection (#857) - #860

Merged
neuromechanist merged 1 commit into
feature/issue-854-epic-channel-montagefrom
feature/issue-857-phase1-schema
Jun 28, 2026
Merged

neuromechanist merged 1 commit into
feature/issue-854-epic-channel-montagefrom
feature/issue-857-phase1-schema

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Summary

Additive schema + projection for the channel-count / electrode-system feature. Columns are NULL until Phase 2 computes them and Phase 3 backfills.

  • Migration 0054: datasets.n_channels (INTEGER) + datasets.electrode_system (TEXT), with idx_datasets_n_channels / idx_datasets_electrode_system.
  • Projection: both added to the public list SELECT (29-col) and the ?mine list SELECT (24-col). /datasets/:id returns them via SELECT d.*.

Contract safety

Additive only — no existing column/alias/source_type change. NULL = "not classified yet", read correctly by the website's already-built guarded channel/montage filter.

Testing

  • root + backend tsc --noEmit green; datasets route units 25 pass / 0 fail; migration SQL validated against SQLite.
  • Result shape verified post-deploy via api-test (no-mock D1 policy).

Closes #857. Part of epic #854.

Phase 1 of epic #854. Additive only:
- migration 0054 adds n_channels (INTEGER) + electrode_system (TEXT)
  to datasets, with indexes for filterability.
- expose both in the public list + ?mine list SELECTs. The detail
  endpoint already returns them via SELECT d.*.

Values stay NULL until phase 2 (#858) computes them and phase 3
(#859) backfills; the website channel/montage filter reads NULL as
"not classified yet". No existing column or alias changes, so no
contract regression.

Closes #857. Part of #854.
@neuromechanist
neuromechanist merged commit 1438c49 into feature/issue-854-epic-channel-montage Jun 28, 2026
1 check passed
@neuromechanist
neuromechanist deleted the feature/issue-857-phase1-schema branch June 28, 2026 21:16

This branch was previously deployed

1 inactive deployment
npm — 68e2a661 Deployed Jun 28, 2026 by neuromechanist via publish #1606
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant