Page MenuHomePhabricator

RestSandbox does not show endpoint details
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Enable DevelopmentSettings.php
  • Enable Spercial:RestSandbox by configuring $wgRestSandboxSpecs.
  • Visite Special:RestSandbox and select an API to explore

What happens?:

  • A list of the API's endpoints is shown.
  • Clicking on the endpoint (or the arrow icon associated with it) does nothing.
  • Clicking on the schemas (or the arrow icon associated with it) does nothing.
  • Clicking on the section heading (or the arrow icon associated with it) does nothing either.
  • The JavaScript console does not show errors.

What should have happened instead?:

  • Clicking on the endpoint (or the arrow icon associated with it) should un-collapse it, revealing details about the endpoint and tools to interact with it.
  • Clicking on the section heading (or the arrow icon associated with it) should collapse it.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia): 1.43alpha at commit 7c4d6f627b5050e10287752533b31219e0627b8f

Other information (browser name/version, screenshots, etc.):
For context see T362006: Provide a Swagger-UI for exploring the core REST API

Event Timeline

daniel triaged this task as Medium priority.Mon, Jun 17, 10:40 AM

Change #1046717 had a related patch set uploaded (by Bartosz Dziewoński; author: Bartosz Dziewoński):

[mediawiki/core@master] restsandbox: Remove JS code from style-only module

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

Change #1046718 had a related patch set uploaded (by Daniel Kinzler; author: Daniel Kinzler):

[mediawiki/core@master] Special:RestSandbox: fix JS module

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

Change #1046717 abandoned by Bartosz Dziewoński:

[mediawiki/core@master] restsandbox: Remove JS code from style-only module

Reason:

Duplicate of https://gerrit.wikimedia.org/r/c/mediawiki/core/+/1046718

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

Change #1046718 merged by jenkins-bot:

[mediawiki/core@master] Special:RestSandbox: fix JS module

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