You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Removed the "wipe" actions from the admin instead of porting them, since I'm not sure that we need an action in the admin just to delete the search index of a project. Re-index seems useful.
- `fileify` was replaced by `index_build`, and it only requires the build id to be passed, any other information can be retrieved from the build/version object.
- `fileify` isn't removed in this PR to avoid downtimes during deploy, it's safe to keep it around till next deploy.
- New code is avoiding any deep connection to the django-elasticsearch-dsl package, since it doesn't make sense anymore to have it, and I'm planning on removing it.
- We are no longer tracking all files in the DB, only the ones of interest.
- Re-indexing a version will also re-evaluate the files from the DB, useful for old projects that are out of sync.
- The reindex command now generates taks per-version rather than per-collection of files, since we no longer track all files in the DB.
- Closes#10623
- Closes#10690
We don't need to do anything special during deploy, zero downtime out of the box. We can trigger a re-index for all versions if we want to delete the HTML files that we don't need from the DB, but that operation will also re-index their contents in ES, so probably better do that after we are all settled with any changes to ES.
What's the problem this feature will solve?
We are using our DB instead of storage when serving 404s, this is great, but we aren't creating imported files for external versions
https://github.com/readthedocs/readthedocs.org/blob/f6e04302f3d0a8cf148f13f400894c15d081eda7/readthedocs/projects/tasks/search.py#L24C1-L26
This break index file redirects and custom 404 serving for external versions.
Describe the solution you'd like
Start creating imported files for external versions, maybe solve this together with #10623, so we don't fill our DB with things we don't use/need.
Alternative solutions
Just enable indexing for external versions, a quick solution, but it will fill our DB with things that we don't need.
Additional context
The text was updated successfully, but these errors were encountered: