Skip to content

Reindex more things#7456

Open
gregorydlogan wants to merge 1 commit intoopencast:r/18.xfrom
gregorydlogan:t/reindex-more-things
Open

Reindex more things#7456
gregorydlogan wants to merge 1 commit intoopencast:r/18.xfrom
gregorydlogan:t/reindex-more-things

Conversation

@gregorydlogan
Copy link
Member

@gregorydlogan gregorydlogan commented Mar 3, 2026

This PR prompts users reindexing for allow-by-episode-role-id to reindex more things. As reported in Matrix, only reindexing the ACL gets you events without any metadata.

This targets 18.x since that's where the index migration happens.

Your pull request should…

… issue. As reported in Matrix, if you only do the ACLs you don't get the rest of the metadata.
@lkiesow
Copy link
Member

lkiesow commented Mar 6, 2026

What you are reporting here essentially means that calling the .../ACL endpoint effectively destroys your index? It feels like just changing the documentation for the upgrade isn't sufficient.

Do we know why this is happening? Can we easily fix this? We probably should if we can?

If this is hard to fix, we might as well remove the ACL endpoint? That's still preferable to having something that corrupts your data if used.

@gregorydlogan
Copy link
Member Author

The time I saw it causing corruption is if you drop the index completely, then only call to reindex the ACL sub-index. This is, honestly, expected behaviour in that you're telling the system to reindex the ACLs and only the ACLs.

An argument could be made to better protect the user from doing something dumb, but if you have permissions to drop the index completely then there's really only so much we can do.

I'm fine removing the subindex options and just requiring a full AM reindex, but I haven't really thought through the implications of that for real adopters. There's probably a usecase for only doing sub-sections, which would be why that endpoint was added in the first place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants