This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
automatic reindexing on doctree.org + automatic migrations #36
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Automatic migrations
Before this change, if say the Python indexer improved and you launched a new version of
doctree
you would need to reindex your projects to see the improvement.Similarly, if the doctree schema format changes, you might see errors until you reindex your projects.
Now when we improve indexers, add new indexers, change the schema format, etc. we just bump
indexer.projectDirVersion
and then on startup you'll see:If you used auto indexing to add the projects, they should be auto-indexed again. If not, you'll need to rerun
doctree index .
on them - it's now clear you need to do so.In cloud mode, it will automatically reclone the repository and index it (since we know the source.)
Automatic reindexing on doctree.org
Right now the repositories on doctree.org can become quite out of date, since they only index once (and when I redeploy the site.) Now there is a silly for loop here that will reindex them when new commits are pushed to the Git repos - so they should pretty much always be up to date now.
permission to do so by an employer or client I am producing work for whom has this right.