-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add markdown/notion importer - add importer for my notion export - re-name prior importer client to sync client - add diff dependency for temporary hacky testing helper - allow creating documents without indexing, to support import-then-sync approach - types to es2020 for a misc lib function I needed * track import items; resolve note links - add table to track import items and import links to support importing in steps - resolve notion note links while importing; if good update them to chronicles format so they work as note links very hacky / messy * also import nested folders; imported name validation / fixing * clean-up tests; properly implement them - re-work tests to separate known issues with my current Notion export, vs hypothetical ones and non-Notion import issues - handle remaining cases - clean-up prasing related logging * better journal name generation - improve name-generation by using just folder name, and allowing root folder to be a journal name; slicing to handle length. Tons of edge cases but pretty decent overall * silence note link errors, rely on import items instead * parse Category as journal name * move (copy) file references, track import status - now referenced files are imported to the _attachments directory - import_item status is now updated to help with debugging next steps are to debug some lingering failed imports (~5/200 notes), then track all links to confirm everything is imported (or not) as expected, then move on to clean-up * fix race conditions / missing await - fix some missing awaits that resulted in race conditions; all notes now import with note and file references - add basic status tracking on import items; very messy needs refactoring and cleanup * fix a few file import edge cases - if file link points to a url, dont try to import it (as a file); ignore instead - if file link has query params (e.g. ?size=800), strip them Fixes about 25 file import errors (all valid files now import) * isolate test and front matter functions - move faux tests into own routine, add button for it - move front-matter code into isolated module - light clean-up re-naming part 2 / ? * use staging table for file references - use a staging table for file references when importing; its slower but easier to debug validate - remove import links table / tracking, unused at this point - some misc. clean-up (still v. messy, but improving) * more cleanup - move all db code to knex - simplify note links updating - organize note links / file links logic so its grouped in importer - clean-up many comments - drop error tracking on import items except for final step * minor cleanup; hacky test * re-name import_notes
- Loading branch information
Showing
21 changed files
with
1,665 additions
and
85 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.