Repository navigation
Specify path-stored fields for 0.3.0-rc.6 - #66
Merged
Merged
Conversation
A type can now declare that a field's value lives in the record's path,
through collection.path.fields and {field:FORMAT} date placeholders, so a
task title kept as the filename or a daily note's date is declared once
and every tool reads and writes it the same way.
Decoded values are persisted values but take no part in type matching, and
are never written to frontmatter. A write that changes a stored field moves
the record atomically. Adds 53 fixtures in core/path-fields.yaml, the
type-file schema change, the concurrent edits model round-trip check, and
SN-102.
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
collection.path.fieldsand{field:FORMAT}date placeholders, so a field's value can live in the record's path (TaskNotes titles as filenames, daily-note dates). Seenotes/SN-102.md.tests/v0.3/core/path-fields.yamland a round-trip check inscripts/concurrent_edits_model.py.Supersedes the filename-derived values of SN-056. rc.6 stays a draft and is not tagged here.
Testing
python scripts/check_v03_tests.py: 212 executable tests, 243 adapter-target tests, okpython scripts/check_test_levels.py: passed