blacksmithgu / datacore

Work-in-progress successor to Dataview with a focus on UX and speed.
MIT License
1.25k stars 11 forks source link

Migration from Dataview to Datacore #5

Open MMoMM-org opened 1 year ago

MMoMM-org commented 1 year ago

Any plans on how people will migrate from dataview to datacore?

I heavily use dataview in my journaling, manually editing all daily, weekly, monthly, quarterly and yearly notes would be... quite a task.

And that is only one example where an automated / semiautomated way of migration would be helpful.

I know that this will not work for dataviewjs (either in note or in other javascript). But here a good "How-To move from Dataview to Datacore JS / API" could help.

So it would be nice to see what you have planned for this on your roadmap.

blacksmithgu commented 1 year ago

All metadata formats are still supported. Dataview blocks can be translated to datacore editable blocks automatically. I haven't decided on DataviewJS yet, since the changes there are more substantial. The easiest route may just be to provide a legacy API layer so existing scripts continue to run, since an automatic rewrite tool is unlikely to be feasible.

blacksmithgu commented 1 year ago

The other option I'm considering is simply rewriting dataview to use datacore internally, and you keep dataview installed to support any dataview/dataviewjs blocks.

MMoMM-org commented 1 year ago

that would be a need option too. I don't have too much dataviewjs code inside my nodes, most of it is externally, so easy to change.

the normal dataview blocks are a lot though, especially in my journaling. Don't know which road is easier, I will for sure try to transition to datacore if the features are the same for new content.

Looking forward to it.

twp248 commented 1 year ago

Have a mixture of dataviewjs and dataview, but I am more incline to switching to datacore if it is better and easier to maintain.

xDovos commented 1 year ago

hey, on the question of dvjs. will the new js api still be usable by templater and the other plugins that use dvjs as code basis?