Repository navigation
Keep workflow notes valid under the collection's type key - #26
Merged
Merged
Conversation
Runtime standard pack 0.2.0's runtime_workflow type pinned `type` and rejected other top-level keys, so the `mdbase_type: runtime_workflow` notes written in TaskNotes v5 collections were invalid mdbase records. Pack 0.2.1 (contract 1.1.0) fixes that upstream. - Use @callumalpass/mdbase-runtime 0.2.1 and pass the record type when validating, instead of relying on a `type` field. - Recognise workflow notes for note cards by the collection's type keys. - Show the runtime-type hint when only the version 1 type is installed. - Document the type key and the 0.2.1 requirement.
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.
Follow-up to #25. In TaskNotes v5 collections (
explicit_type_keys: [mdbase_type]) Workflows writesmdbase_type: runtime_workflow, which the runtime standard pack 0.2.0 type rejected (schema_required: type,schema_additional_properties: mdbase_type). Fixed upstream in mdbase-dev/mdbase-spec#70 (published as@callumalpass/mdbase-runtime0.2.1) and mdbase-dev/mdbase-contracts#24 (pack 0.2.1, contract 1.1.0).@callumalpass/mdbase-runtimeto 0.2.1;validateRuntimeWorkflowRecordpassesruntime_workflowexplicitly.type, so v5 notes relied on the loaded-workflow fallback andloadWorkflowreturned null for unloaded ones).Tests: 110 pass, including a check that the note written under
mdbase_type,custom_typeandtypevalidates as a 1.1.0 record, and the v1/v2 hint check. Lint and build clean.