Standard Src Field Mapping for all pods #2431
Replies: 5 comments 12 replies
-
Thank you for starting the thread. Reposting a relevant discussion point that came up in #2410 :
I would argue that it should not. The existence of frontmatter tags gives an affordance that says: "here is where you should put all the tags". Then the counter question as a user would be, "why would tags in the body be mapped when I have explicitly set my tags in the frontmatter? Wouldn't it be better to explicitly state in the frontmatter that I want these tags to be used in the source field mapping rather than looking at all tags in the NoteProps? Consider this case: I have a task note. It's a fictional task to refactor my notes. I jot down some ideas for how to organize tags for my personal notes. Some of my sentences in this note will look like this:
Should these use of hashtags be mapped to Airtable? It's a made up case, but it illustrates my point: As-is, the success of export depends on the integrity of all the tags used in the note body, if any of the tag is entirely or partially part of the source field mapping defined by the pod. This limitation (or the lack of) is steering the user to write a note in a certain way that is not obvious, but the feature that is forcing the user to do so has no part in aiding the creation of note content. There is both immediate cost (non-zero cost writing / making sure it can export) and deferred cost (surprises down the line when I realize these exported notes do not look like what I expected to be in the destination) in the export pod behaving like so. With the export pod defining source field mapping, I am basically now blocked from using those tags in my body if I don't want this to happen. This goes for both valid, existing tags and non-existent ones as well.
One could argue that I can just escape the hashtag or just not make it a tag (just use wikilinks). That is indeed one solution, but it's not zero-cost. and it leaves the users wondering. It's preventing me from writing notes in a certain way. |
Beta Was this translation helpful? Give feedback.
-
type field enumeration
can we have an enumeration of all types? using filters vs filter
should this be more generic value transformation
This is very specific for todos. what we are doing is remapping values. Can we make this more generic? For example, we can take a Status: {to: status, type: string, clean: [
{action: remap, data:{x : 'CLOSED', w: 'OPEN'}}
]}, another motivating example. when we upload a scope, we use #scope.workspace. we might want to strip the prefix. a hypothetical action Size: {to: tags, type: singleSelect, filter: "tags.scope.*", clean: [
{action: stripPrefix, data:{prefix: "scope."}}
]}, scope limiting for links
This shouldn't just be for tags but also links scope limiting for single select
why only multiselect? for single select, i could also have a single tag in the body. scope limiting to section in bodysomething we want to support is also mapping to a section within a document. so the following config Scope: {to: tags, type: multiSelect, filter: "tags.size.*", scope: section#header-1}, applied to the following note ## Header 1
#scope.workspace
## Header2
#scope.basics would extract
|
Beta Was this translation helpful? Give feedback.
-
json schema lookupsomething we called out when starting is to model this with json schema in mind and support similar validation rules. . at the minimum, we should support the following:
can we apply [[Learn and Adapt|dendron://dendron.handbook/handbook.company.values#learn-and-adapt]] from existing mapping languages? in this rfc, we should have a sectio on prior art (eg. json schema, https://www.prisma.io/, etc) additional considerationsfrom our use of airtable, some additional parameters we want to support based on our usage with airtable:
|
Beta Was this translation helpful? Give feedback.
-
Minor question, what if there's a |
Beta Was this translation helpful? Give feedback.
-
can we have a description of what the types mean? especially singleSelect, multiSelect, linkedRecord
other comments:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is the discussion for RFC Standard Src Field Mapping for all pods.
Beta Was this translation helpful? Give feedback.
All reactions