WIP: feat(collections): add collection versioning#813
Draft
vcnainala wants to merge 10 commits into
Draft
Conversation
Introduce lineage columns on collections, archived entries flag, revocation audit table, and SUPERSEDED status for audit-only prior releases.
Add diff-by-SMILES, provenance stripping, exclusive molecule revocation, batch validation waiter, version creator, and import orchestrator.
Expose coconut:import-collection-version and coconut:preview-collection-version for curator-driven release migrations.
Mint per-version DOIs (e.g. .v2) and a base DOI that resolves to the latest release within a collection lineage.
Prevent legacy entries-process and entries-import jobs from touching collections with pending or processing version_migration_status.
Add create-version, preview migration, and process migration actions on the collection view page with superseded archive UI in relation managers.
Show lineage version picker and dropped exclusive compounds on the collection data source page with optional ?version= query support.
Filter public listings, dashboard widgets, and export queries to is_latest published collections so superseded releases remain audit-only.
Verify SMILES-based diff logic and legacy scheduler exclusion for collections in version migration states.
Describe create-version, CSV import, preview, and process steps for releasing new collection versions with audit retention.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
collectionsrow per release with shared CNPC identifier,is_latestflag, andSUPERSEDEDaudit-only prior versionsCollectionVersionImporterorchestration (validate → SMILES diff → import → revoke exclusives → enrich/publish → archive old → mint DOIs)Commits
feat(collections): add versioning schema and modelsfeat(collections): add version migration orchestration servicesfeat(collections): add version import and preview artisan commandsfeat(doi): support versioned and base DataCite DOI suffixes.vNand base DOIfix(scheduler): skip collections during active version migrationfeat(filament): add collection version management actionsfeat(collections): add public version history and revoked compounds UIfeat(search): scope stats, search, and exports to latest collectionsis_latestfilterstest(collections): add version diff and scheduler guard coveragedocs(collections): document version migration curator workflowTest plan
./vendor/bin/sail artisan migrate./vendor/bin/sail test --filter='CollectionVersionDiff|LegacySchedulerVersionGuard'SUPERSEDEDwith archived entries; new collection isPUBLISHEDandis_latest.vN) and base DOI minting via DataCite (staging)Notes