Repository navigation
fix(import): map file templates onto Apply template to tags - #13292
Open
tiensonqin wants to merge 3 commits into
Open
tiensonqin wants to merge 3 commits into
tiensonqin wants to merge 3 commits into
Conversation
|
UX: import OG file graph with templated properties, then confirm Apply template to on the imported template. Source graph
After File to DB import, import_og_graph_apply_template_to.mp4 Import File to DB graph |
Co-authored-by: Tienson Qin <[email protected]>
…port-template-applied-to
This was referenced Oct 27, 2026
This branch has not been deployed
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.
Fixes logseq/db-test#1184
Problem
When importing an OG (file) graph into DB, templates that had extra properties on the template block kept those properties on the template itself. That did not match the DB template model, where such properties should be owned by a tag via Apply template to.
Fix
During file-graph export/import:
:logseq.property/template-applied-towith a tag named after the template.Tests
Demo
File-to-DB import of an OG graph whose
project-tasktemplate has extra properties. After import, that template shows Apply template to tags: project-task. Templates without extra properties stay unset.import_og_graph_apply_template_to.mp4