Skip to content

Remove DANDI_SCHEMA_VERSION as a setting#2644

Merged
jjnesbitt merged 1 commit intomasterfrom
remove-schema-version-setting
Dec 8, 2025
Merged

Remove DANDI_SCHEMA_VERSION as a setting#2644
jjnesbitt merged 1 commit intomasterfrom
remove-schema-version-setting

Conversation

@jjnesbitt
Copy link
Member

@jjnesbitt jjnesbitt commented Nov 13, 2025

Depends on #2584

For historical reasons, we have a way to specify the dandi schema version as an env var. However, this is never used and is rather nonsensical, since we'd be defining the dandi schema version in conflict with whatever the actual schema version is. As it stands now, the version is pulled from dandischema.consts anyway. This PR simply imports that value directly from dandischema, replaces all uses of the setting with that value, and removes the setting.

@mvandenburgh
Copy link
Member

LGTM. Funnily enough, setting this env var to a different schema version than the installed dandischema would be always be incorrect, definitely agree we should remove this

@jjnesbitt jjnesbitt marked this pull request as draft November 14, 2025 17:16
@jjnesbitt
Copy link
Member Author

Putting in draft until #2584 is merged.

Base automatically changed from vendor-configurable to master November 21, 2025 16:15
Simply import `DANDI_SCHEMA_VERSION` from dandischema.consts
@jjnesbitt jjnesbitt force-pushed the remove-schema-version-setting branch from 1a77548 to 01bfb52 Compare December 1, 2025 22:27
@jjnesbitt jjnesbitt marked this pull request as ready for review December 1, 2025 22:30
@jjnesbitt jjnesbitt added the internal Changes only affect the internal API label Dec 1, 2025
@yarikoptic
Copy link
Member

attn @jjnesbitt - #2584 was merged, should we proceed ?

@jjnesbitt jjnesbitt merged commit ec5be59 into master Dec 8, 2025
6 of 10 checks passed
@jjnesbitt jjnesbitt deleted the remove-schema-version-setting branch December 8, 2025 15:21
@dandibot
Copy link
Member

🚀 PR was released in v0.20.0 🚀

@dandibot dandibot added the released This issue/pull request has been released. label Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Changes only affect the internal API released This issue/pull request has been released.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants