Page MenuHomePhabricator

Move icon transform from backend to frontend
Closed, ResolvedPublic

Description

The canonical storage for an icon is a File: namespace page on commons. We added custom serialization when outputting /api/tools/ data to return both the File: namespace page and a generated URL suitable for use with <img/>. The /api/search/tools/ output does not have this bit of custom serialization. This makes it difficult to use the same vue components to display results from the database and the search backend. Moving the File: to image url logic into the UI will make things simpler for us.

Event Timeline

Change 672846 had a related patch set uploaded (by BryanDavis; owner: Bryan Davis):
[wikimedia/toolhub@main] toolinfo: move toolinfo.icon transforms to frontend

https://gerrit.wikimedia.org/r/672846

Change 672846 merged by jenkins-bot:
[wikimedia/toolhub@main] toolinfo: move toolinfo.icon transforms to frontend

https://gerrit.wikimedia.org/r/672846