Skip to content

Commit

Permalink
Merge pull request #1168 from Pchelolo/store_pcs
Browse files Browse the repository at this point in the history
Store PCS endpoints.
  • Loading branch information
Pchelolo committed Jul 24, 2019
2 parents e674a18 + 08a6668 commit 7730e0d
Show file tree
Hide file tree
Showing 19 changed files with 680 additions and 472 deletions.
16 changes: 12 additions & 4 deletions projects/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,28 @@ paths:
- path: v1/mobileapps.js
options: '{{merge({"response_cache_control": options.purged_cache_control},
options.mobileapps)}}'
- path: v1/media.yaml
- path: v1/pcs/media.yaml
options:
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/metadata.yaml
- path: v1/pcs/stored_endpoint.js
options:
name: media-list
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/references.yaml
- path: v1/pcs/stored_endpoint.js
options:
name: metadata
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/mobile-html.yaml
- path: v1/pcs/stored_endpoint.js
options:
name: references
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/pcs/stored_endpoint.js
options:
name: mobile-html
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
/transform:
Expand Down
16 changes: 12 additions & 4 deletions projects/v1/wikipedia.wmf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,28 @@ paths:
- path: v1/summary.js
options: '{{merge({"response_cache_control": options.purged_cache_control_client_cache},
options.summary)}}'
- path: v1/media.yaml
- path: v1/pcs/media.yaml
options:
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/metadata.yaml
- path: v1/pcs/stored_endpoint.js
options:
name: media-list
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/references.yaml
- path: v1/pcs/stored_endpoint.js
options:
name: metadata
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/mobile-html.yaml
- path: v1/pcs/stored_endpoint.js
options:
name: references
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/pcs/stored_endpoint.js
options:
name: mobile-html
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/related.js
Expand Down
16 changes: 12 additions & 4 deletions projects/v1/wikivoyage.wmf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,20 +72,28 @@ paths:
- path: v1/summary.js
options: '{{merge({"response_cache_control": options.purged_cache_control_client_cache},
options.summary)}}'
- path: v1/media.yaml
- path: v1/pcs/media.yaml
options:
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/metadata.yaml
- path: v1/pcs/stored_endpoint.js
options:
name: media-list
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/references.yaml
- path: v1/pcs/stored_endpoint.js
options:
name: metadata
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/mobile-html.yaml
- path: v1/pcs/stored_endpoint.js
options:
name: references
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/pcs/stored_endpoint.js
options:
name: mobile-html
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/related.js
Expand Down
16 changes: 12 additions & 4 deletions projects/v1/wiktionary.wmf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,28 @@ paths:
- path: v1/mobileapps.js
options: '{{merge({"response_cache_control": options.purged_cache_control},
options.mobileapps)}}'
- path: v1/media.yaml
- path: v1/pcs/media.yaml
options:
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/metadata.yaml
- path: v1/pcs/stored_endpoint.js
options:
name: media-list
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/references.yaml
- path: v1/pcs/stored_endpoint.js
options:
name: metadata
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/mobile-html.yaml
- path: v1/pcs/stored_endpoint.js
options:
name: references
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/pcs/stored_endpoint.js
options:
name: mobile-html
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/graphoid.yaml
Expand Down
16 changes: 12 additions & 4 deletions projects/wmf_enwiki.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,28 @@ paths:
- path: v1/summary.js
options: '{{merge({"response_cache_control": options.purged_cache_control_client_cache},
options.summary)}}'
- path: v1/media.yaml
- path: v1/pcs/media.yaml
options:
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/metadata.yaml
- path: v1/pcs/stored_endpoint.js
options:
name: media-list
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/references.yaml
- path: v1/pcs/stored_endpoint.js
options:
name: metadata
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/mobile-html.yaml
- path: v1/pcs/stored_endpoint.js
options:
name: references
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/pcs/stored_endpoint.js
options:
name: mobile-html
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/related.js
Expand Down
13 changes: 10 additions & 3 deletions projects/wmf_wikipedia.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,27 @@ paths:
- path: v1/summary.js
options: '{{merge({"response_cache_control": options.purged_cache_control_client_cache},
options.summary)}}'
- path: v1/media.yaml
- path: v1/pcs/media.yaml
options:
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/pcs/stored_endpoint.js
options:
name: media-list
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/metadata.yaml
options:
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/references.yaml
- path: v1/pcs/stored_endpoint.js
options:
name: references
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/mobile-html.yaml
- path: v1/pcs/stored_endpoint.js
options:
name: mobile-html
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/related.js
Expand Down
16 changes: 12 additions & 4 deletions projects/wmf_wikivoyage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,20 +76,28 @@ paths:
- path: v1/summary.js
options: '{{merge({"response_cache_control": options.purged_cache_control_client_cache},
options.summary)}}'
- path: v1/media.yaml
- path: v1/pcs/media.yaml
options:
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/metadata.yaml
- path: v1/pcs/stored_endpoint.js
options:
name: media-list
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/references.yaml
- path: v1/pcs/stored_endpoint.js
options:
name: metadata
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/mobile-html.yaml
- path: v1/pcs/stored_endpoint.js
options:
name: references
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/pcs/stored_endpoint.js
options:
name: mobile-html
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/related.js
Expand Down
13 changes: 10 additions & 3 deletions projects/wmf_wiktionary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,20 +71,27 @@ paths:
- path: v1/mobileapps.js
options: '{{merge({"response_cache_control": options.purged_cache_control},
options.mobileapps)}}'
- path: v1/media.yaml
- path: v1/pcs/media.yaml
options:
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/pcs/stored_endpoint.js
options:
name: media-list
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/metadata.yaml
options:
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/references.yaml
- path: v1/pcs/stored_endpoint.js
options:
name: references
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/mobile-html.yaml
- path: v1/pcs/stored_endpoint.js
options:
name: mobile-html
response_cache_control: '{{options.purged_cache_control}}'
host: '{{options.mobileapps.host}}'
- path: v1/graphoid.yaml
Expand Down
39 changes: 0 additions & 39 deletions test/features/media.js

This file was deleted.

46 changes: 0 additions & 46 deletions test/features/metadata.js

This file was deleted.

0 comments on commit 7730e0d

Please sign in to comment.