Skip to content

Conversation

@elzody
Copy link
Contributor

@elzody elzody commented Nov 26, 2025

Summary

This PR de-duplicates provider templates. This will prevent the same global template from showing up twice in the template picker, as you can see in the screenshots. The reason this happens is because apps can provide the same template for several MIME types and there does not seem to be a way for an app to de-duplicate them itself. It is given one MIME type at a time when called by the server, so it is just expected to return the matching templates for that type and cannot know whether a given template has already been returned.

Screenshots

Before image
After image

Checklist

@elzody elzody requested a review from juliusknorr November 26, 2025 18:56
@elzody elzody self-assigned this Nov 26, 2025
@elzody elzody requested a review from a team as a code owner November 26, 2025 18:56
@elzody elzody requested review from Altahrim, leftybournes, salmart-dev and yemkareems and removed request for a team November 26, 2025 18:56
@elzody
Copy link
Contributor Author

elzody commented Nov 26, 2025

The failing tests are not related to these changes from what I can tell.

@juliusknorr juliusknorr force-pushed the fix/deduplicate-templates branch 2 times, most recently from af17860 to b5fc422 Compare December 3, 2025 09:25
@elzody elzody force-pushed the fix/deduplicate-templates branch from b5fc422 to 70f0a52 Compare December 9, 2025 18:57
@elzody elzody force-pushed the fix/deduplicate-templates branch from 70f0a52 to d37f53c Compare December 9, 2025 20:14
@elzody elzody force-pushed the fix/deduplicate-templates branch from d37f53c to 3a89c18 Compare December 10, 2025 21:06
@elzody elzody merged commit 070ec61 into master Dec 10, 2025
199 of 202 checks passed
@elzody elzody deleted the fix/deduplicate-templates branch December 10, 2025 23:21
@elzody
Copy link
Contributor Author

elzody commented Dec 11, 2025

/backport to stable32 please

@nextcloud nextcloud deleted a comment from backportbot bot Dec 12, 2025
@elzody
Copy link
Contributor Author

elzody commented Dec 12, 2025

/backport to stable31 please

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants