fix(templates): deduplicate provider templates
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
After
Checklist
- Code is properly formatted
- Sign-off message is added to all commits
- [ ] Tests (unit, integration, api and/or acceptance) are included
- [ ] Screenshots before/after for front-end changes
- [ ] Documentation (manuals or wiki) has been updated or is not required
- [ ] Backports requested where applicable (ex: critical bugfixes)
- [ ] Labels added where applicable (ex: bug/enhancement,
3. to review, feature component) - [ ] Milestone added for target branch/version (ex: 32.x for
stable32)
The failing tests are not related to these changes from what I can tell.
/backport to stable32 please
/backport to stable31 please