Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor uuidv7 to compact version #264

Merged
merged 1 commit into from
Nov 8, 2024
Merged

refactor uuidv7 to compact version #264

merged 1 commit into from
Nov 8, 2024

Conversation

cloverich
Copy link
Owner

after a bit of research, sticking with uuidv7 for the note filenames and merely dropping the hyphens; the uuidv7 package provides this via uuidv7obj().toHex(). Conveniently, their parsing function (UUID.parse) handle hyphenated and non-hyphenated versions equally well

closes #248

migrating existing note repositories

How to migrate existing notes? After thinking on it I realized the process will be effectively free:

  • All new ids (notes and files) use non-hyphenated id (this PR)
  • Implement Import from markdown (directory) #132
  • Create a new Chronicles root, then import the old one (since its also a folder of plain markdown files)

Voila, I think it will Just Work? I guess will find out, too tired to think per usual. Amazing anything gets done on this project at all.

after a bit of research, sticking with uuidv7 for the note filenames and merely dropping the hyphens; the uuidv7 package provides this via uuidv7obj().toHex(). Conveniently, their parsing function (UUID.parse) handle hyphenated and non-hyphenated versions equally well

closes #248
@cloverich cloverich merged commit aff7dd3 into master Nov 8, 2024
2 checks passed
@cloverich cloverich deleted the cloverich/uuid branch November 8, 2024 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UUID vs more obvious timestamp / unique per journal or globally
1 participant