Page MenuHomePhabricator

Setup AQS 1.0 locally
Closed, ResolvedPublic

Description

Get the setup running locally and document any hitches faced along the way.

Related Objects

Event Timeline

So in general, local setup works until the request needs to get to the DB which is at the HyperSwitch layer and things break at that point with no errors shown at all and the response is a fake 404. And with this, we can't see accurate response headers from the service.

Still digging.

DAlangi_WMF claimed this task.

Setup now working locally.

Example request:

http://mediawiki.development.instance:7232/analytics.wikimedia.org/v1/pageviews/top/en.wikipedia/mobile-app/2021/01/14

Response:

{
  "count": 1,
  "items": [
    {
      "project": "en.wikipedia",
      "access": "mobile-app",
      "year": "2021",
      "month": "01",
      "day": "14",
      "articles": [
        {
          "article": "Donald_Trump",
          "views": 14336,
          "rank": 1
        },
        {
          "article": "James_P._Hagerstrom",
          "views": 14223,
          "rank": 2
        },
        {
          "article": "Murder_of_Bobbie_Jo_Stinnett",
          "views": 12180,
          "rank": 3
        },
        {
          "article": "Second_impeachment_of_Donald_Trump",
          "views": 11501,
          "rank": 4
        },
        {
          "article": "Richard_Ramirez",
          "views": 9569,
          "rank": 5
        },
        {
          "article": "Deaths_in_2021",
          "views": 8715,
          "rank": 6
        },
        {
          "article": "Liz_Cheney",
          "views": 8634,
          "rank": 7
        },
        {
          "article": "Siegfried_&_Roy",
          "views": 8595,
          "rank": 8
        },
        {
          "article": "Impeachment_in_the_United_States",
          "views": 7872,
          "rank": 9
        },
......
    }]
}