Skip to content

Commit f75ee58

Browse files
committed
related: Remove codebase
1 parent e3e0642 commit f75ee58

File tree

7 files changed

+0
-221
lines changed

7 files changed

+0
-221
lines changed

projects/v1/default.wmf.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ paths:
6060
- path: v1/summary.js
6161
options: '{{merge({"response_cache_control": options.purged_cache_control_client_cache},
6262
options.summary)}}'
63-
- path: v1/related.js
64-
options: '{{options.related}}'
6563
- path: v1/common_schemas.yaml # Doesn't really matter where to mount it.
6664
/transform:
6765
x-modules:

projects/v1/wikipedia.wmf.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ paths:
7575
- path: v1/pcs/mobile-html-offline-resources.yaml
7676
options:
7777
host: '{{options.mobileapps.host}}'
78-
- path: v1/related.js
79-
options: '{{options.related}}'
8078
- path: v1/talk.yaml
8179
options:
8280
host: '{{options.mobileapps.host}}'

projects/v1/wikivoyage.wmf.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ paths:
7373
- path: v1/pcs/mobile-html-offline-resources.yaml
7474
options:
7575
host: '{{options.mobileapps.host}}'
76-
- path: v1/related.js
77-
options: '{{options.related}}'
7876
- path: v1/common_schemas.yaml # Doesn't really matter where to mount it.
7977
/transform:
8078
x-modules:

test/features/pagecontent/language_variants.js

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,6 @@ const preq = require('preq');
55
const Server = require('../../utils/server.js');
66
const variantsPageTitle = 'RESTBase_Testing_Page';
77

8-
describe('Page Related', () => {
9-
10-
const server = new Server();
11-
before(() => server.start());
12-
after(() => server.stop());
13-
14-
it('retrieve correct displaytitle for language variants', () => {
15-
const uri = `${server.config.bucketURL('zh.wikipedia.beta.wmflabs.org')}/related/%E5%8D%97%E5%8C%97%E6%9C%9D`;
16-
return preq.get({
17-
uri,
18-
headers: {
19-
'accept-language': 'zh-cn',
20-
}
21-
}).then((res) => {
22-
assert.deepEqual(res.status, 200);
23-
assert.ok(Array.isArray(res.body.pages));
24-
25-
// 无政府主义史 is zh-cn for 無政府主義史
26-
assert.ok(res.body.pages.some(page => page.displaytitle === '<span class=\"mw-page-title-main\">无政府主义史</span>' ));
27-
assert.deepEqual(res.headers['content-language'], 'zh-cn');
28-
assert.ok(res.headers['vary'].includes('accept-language'));
29-
});
30-
})
31-
32-
});
33-
348
describe('Language variants', function() {
359
this.timeout(20000);
3610
const server = new Server();

test/features/schema_tests.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,6 @@ parallel('Responses should conform to the provided JSON schema of the response',
6363
params: 'Earth',
6464
schema: 'summary'
6565
},
66-
{
67-
path: '/page/related',
68-
params: 'San_Francisco',
69-
schema: 'related'
70-
},
7166
{
7267
path: '/page/media-list',
7368
params: 'San_Francisco',

v1/related.js

Lines changed: 0 additions & 121 deletions
This file was deleted.

v1/related.yaml

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)