Skip to content

Add 'no kilosort label' to ClusterQualityLabel contents#22

Merged
ttngu207 merged 1 commit into
mainfrom
es/add-no-kilosort-label
May 13, 2026
Merged

Add 'no kilosort label' to ClusterQualityLabel contents#22
ttngu207 merged 1 commit into
mainfrom
es/add-no-kilosort-label

Conversation

@esutlie
Copy link
Copy Markdown
Collaborator

@esutlie esutlie commented May 13, 2026

Summary

The ClusterQualityLabel lookup table's contents list was missing the "no kilosort label" entry that already exists in the production database. This label is assigned to units created by merge or split during manual curation.

When a read-only database user (e.g., the coscientist service account) imports this schema, DataJoint detects the mismatch between contents (5 rows) and the database (6 rows) and attempts a skip_duplicates=True INSERT. That INSERT fails with a permission error, blocking schema activation for any user without write access to the ephys schema.

Adding the sixth label to contents brings the code in sync with the database and eliminates the spurious INSERT attempt.

This label already exists in the production database for units
created by merge or split during manual curation. Adding it to
the code-level contents prevents a skip_duplicates INSERT on
schema activation, which fails for read-only database users.
@esutlie esutlie requested a review from ttngu207 May 13, 2026 21:57
@ttngu207 ttngu207 merged commit 6eb32cb into main May 13, 2026
0 of 2 checks passed
@esutlie esutlie deleted the es/add-no-kilosort-label branch May 13, 2026 21:58
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.

2 participants