Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

rename remote_thumbnail to remote_thumbnails #11222

Closed
HarHarLinks opened this issue Oct 31, 2021 · 3 comments
Closed

rename remote_thumbnail to remote_thumbnails #11222

HarHarLinks opened this issue Oct 31, 2021 · 3 comments
Labels
T-Task Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.

Comments

@HarHarLinks
Copy link
Contributor

Description

Configuring backups, I want to exclude media that can be regenerated since it originates on other servers. I almost did this incorrectly, since /media_store/remote_thumbnail does not end in s while the other 2 thumbnail folders for local and url previews do.

Steps to reproduce

look at the /media_store

Version information

  • Homeserver:

If not matrix.org: my own

  • Version: 1.43.0

  • Install method:

pip

  • Platform:

Debian 9 stretch

@squahtx
Copy link
Contributor

squahtx commented Nov 1, 2021

The inconsistency surprised me too!

Unfortunately it's not trivial to rename the directory since we have to keep existing Synapse deployments in mind. While we could do the rename on startup, files in storage providers would still retain the old spelling, so we'd end up maintaining extra logic to check both spellings.

Also there's this script that would need updating too:
https://github.com/matrix-org/synapse-s3-storage-provider/blob/04d5fb7fe983672320d45a37186f396c543e891a/scripts/s3_media_upload#L131-L138

@erikjohnston erikjohnston added the T-Task Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks. label Nov 1, 2021
@clokep
Copy link
Member

clokep commented Nov 2, 2021

See also #10556.

@clokep
Copy link
Member

clokep commented Dec 14, 2021

I'm going to close this -- it is annoying, but documented. I think the effort to fix it is not worthwhile.

@clokep clokep closed this as completed Dec 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, removal, replacement, enabling or disabling functionality, other engineering tasks.
Projects
None yet
Development

No branches or pull requests

5 participants