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

chore: improve resource internal_path migrator #2698

Merged
merged 2 commits into from Jan 3, 2024

Conversation

lincolnthalles
Copy link
Contributor

  • handle mixed path styles
  • handle Windows paths
  • add tests
  • run the migration in a separate goroutine, so server startup doesn't take too long on large databases and/or low-end hardware
  • log basic post-migration stats like INFO store/migrator.go:52 migrated 34219 local resource paths in 42.8559848s

- handle mixed path styles
- handle Windows paths
- add tests
Copy link
Collaborator

@boojack boojack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@boojack boojack merged commit 369b8af into usememos:main Jan 3, 2024
5 checks passed
@lincolnthalles lincolnthalles deleted the chore/fix-resource-migrator branch January 14, 2024 17:00
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.

None yet

2 participants