Page MenuHomePhabricator

Return `origin` as part of toolinfo API responses
Closed, ResolvedPublic

Description

Return the origin field for a toolinfo record as part of the /api/tools/* and /api/search/tools/ response body. This can be used by UI implementations to hint about the editability of a given record. Specifically origin=crawler records cannot be edited using PUT /api/tools/{name} to prevent edit warring between the crawler and the UI.

Event Timeline

Change 675336 had a related patch set uploaded (by BryanDavis; author: Bryan Davis):
[wikimedia/toolhub@main] api: return origin with toolinfo

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

Change 675337 had a related patch set uploaded (by BryanDavis; author: Bryan Davis):
[wikimedia/toolhub@main] search: add 'origin' facet

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

bd808 moved this task from Backlog to Review on the Toolhub board.

Change 675336 merged by jenkins-bot:

[wikimedia/toolhub@main] api: return `origin` with toolinfo

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

Change 675337 merged by jenkins-bot:

[wikimedia/toolhub@main] search: add 'origin' facet

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