Page MenuHomePhabricator

Suggested edits endpoints do not work in recommendation api for beta domains
Closed, ResolvedPublic

Description

The new endpoints added to recommendation API do not work in beta installation of recommendation API for beta domains.

{
  status: 404
  type: "internal_error"
  detail: "<!DOCTYPE html>\n<html lang=en>\n<meta charset=\"utf-8\">\n<title>Unconfigured domain</title>\n<link rel=\"shortcut icon\" href=\"//foundation.wikimedia.org/favicon.ico\">\n<style>\n* { margin: 0; padding: 0; }\nbody { background: #fff; margin: 7% auto 0; padding: 2em 1em 1em; font: 15px/1.6 sans-serif; color: #333; max-width: 640px; }\nimg { float: left; margin: 0 2em 2em 0; }\na img { border: 0; }\nh1 { margin-top: 1em; font-size: 1.2em; }\np { margin: 0.7em 0 1em 0; }\na { color: #0645AD; text-decoration: none; }\na:hover { text-decoration: underline; }\n</style>\n<a href=\"https://www.wikimedia.org\"><img src=\"https://www.wikimedia.org/static/images/wmf.png\" srcset=\"https://www.wikimedia.org/static/images/wmf-2x.png 2x\" alt=Wikimedia width=135 height=135></a>\n<h1>Domain not configured</h1>\n<p>This domain points to a <a href=\"https://www.wikimedia.org\">Wikimedia Foundation</a> server, but is not configured on this server.</p>\n</html>\n"
  method: "GET"
  uri: "/wikidata.beta.wmflabs.org/v1/description/addition/es"
}

Local and CI RESTBase tests depend on being able to point to beta cluster for individual services, so if we want to have automatic monitoring in production, we need to make the endpoints work in beta as well.

In the current pull request the tests are pointing to some custom installation of the recommendation-api service. We should make additional installs of the service, we should just make the existing install work.

Event Timeline

Change 520270 had a related patch set uploaded (by Mholloway; owner: Michael Holloway):
[mediawiki/services/recommendation-api@master] Stop hard-coding prod request domain for language variant request

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

Change 520286 had a related patch set uploaded (by Mholloway; owner: Michael Holloway):
[mediawiki/services/recommendation-api@master] Descriptions: Get suggestions from a Beta Wikipedia for BC requests

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

Change 520287 had a related patch set uploaded (by Mholloway; owner: Michael Holloway):
[mediawiki/services/recommendation-api@master] Add monitored spec x-amples for Beta Cluster requests

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

Change 520270 merged by jenkins-bot:
[mediawiki/services/recommendation-api@master] Stop hard-coding prod request domain for language variant request

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

Change 520286 merged by jenkins-bot:
[mediawiki/services/recommendation-api@master] Descriptions: Get suggestions from a Beta Wikipedia for BC requests

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

Change 520287 abandoned by Mholloway:
Add monitored spec x-amples for Beta Cluster requests

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

Pchelolo edited projects, added Services (done); removed Services (blocked).

This has been resolved now. Thank you.