Page MenuHomePhabricator

Refresh OpenAPI spec when locale is switched
Closed, ResolvedPublic

Description

Currently the /api-docs strings do not update when you switch locales. This is caused by caching of the OpenAPI spec by the <rapi-doc> component. We are also caching a copy of the spec in the api vuex module. We should figure out how to force updating both on locale change.

Event Timeline

Change 672750 had a related patch set uploaded (by BryanDavis; owner: Bryan Davis):
[wikimedia/toolhub@main] api-docs: Update rapidoc to 8.4.9

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

Change 672751 had a related patch set uploaded (by BryanDavis; owner: Bryan Davis):
[wikimedia/toolhub@main] api: reload cached OpenAPI spec when locale changes

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

Change 672752 had a related patch set uploaded (by BryanDavis; owner: Bryan Davis):
[wikimedia/toolhub@main] api-doc: Use vuex managed OpenAPI spec

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

Change 672750 merged by jenkins-bot:
[wikimedia/toolhub@main] api-docs: Update rapidoc to 8.4.9

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

Change 672751 merged by jenkins-bot:
[wikimedia/toolhub@main] api: reload cached OpenAPI spec when locale changes

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

Change 672752 merged by jenkins-bot:
[wikimedia/toolhub@main] api-doc: Use vuex managed OpenAPI spec

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