This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Workaround to account for scope change inside range loops | |
# service-runner Changeprop app config.yaml. | |
spec: &spec | |
x-sub-request-filters: | |
- type: default | |
name: http | |
options: | |
allow: | |
- pattern: /^https?:\/\// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.sql.*; | |
import java.util.*; | |
import java.util.stream.Collectors; | |
public class Main { | |
public static void main(String[] args) { | |
System.out.println("Starting the application"); | |
String database = args[0]; | |
System.out.println("Getting data from database at " + database); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -XPOST -H 'content-type: text/html' https://mobileapps.wmflabs.org/en.wikipedia.beta.wmflabs.org/v1/transform/html/to/mobile-html/Main_Page --data '<!DOCTYPE html>\n<html prefix="dc: http://purl.org/dc/terms/ mw: http://mediawiki.org/rdf/"><head prefix="mwr: https://en.wikipedia.beta.wmflabs.org/wiki/Special:Redirect/"><meta charset="utf-8"/><meta property="mw:pageId" content="1"/><meta property="mw:pageNamespace" content="0"/><meta property="mw:revisionSHA1" content="3a132f94a1a8dd2ef82a00b5940af6ea171fe570"/><meta property="isMainPage" content="true"/><meta property="mw:html:version" content="2.1.0"/><link rel="dc:isVersionOf" href="https://en.wikipedia.beta.wmflabs.org/wiki/Main_Page"/><title>Main Page</title><base href="https://en.wikipedia.beta.wmflabs.org/wiki/"/><link rel="stylesheet" href="/w/load.php?modules=mediawiki.legacy.commonPrint%2Cshared%7Cmediawiki.skinning.content.parsoid%7Cmediawiki.skinning.interface%7Cskins.vector.styles%7Csite.styles%7Cext.cite.style%7Cext.cite.styles%7Cmediawiki.p |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/test/REST/PageHistory.js b/test/REST/PageHistory.js | |
index 5ec9a9e..df15ee6 100644 | |
--- a/test/REST/PageHistory.js | |
+++ b/test/REST/PageHistory.js | |
@@ -89,6 +89,7 @@ describe('Page History', () => { | |
describe('Revision deletion and un-deletion', async () => { | |
it('Should get total number of edits and editors when edits are hidden and shown', async () => { | |
const { editOne } = await setupDeletedPage(); | |
+ await utils.sleep(); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "/mediawiki/revision/score/2.0.0", | |
"meta": { | |
"stream": "mediawiki.revision-score", | |
"uri": "https://en.wikipedia.beta.wmflabs.org/wiki/TestORESEvent", | |
"request_id": "XYztkKwQBGoAAHYhRNQAAAAG", | |
"id": "80edf3d0-e07e-11e9-8bc4-a14d2af83f8a", | |
"dt": "2019-09-26T16:55:54.509Z", | |
"domain": "en.wikipedia.beta.wmflabs.org" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/srv/mediawiki/php/extensions/WikimediaMaintenance/purgeStaleMemcachedText.php: $latestReplicatedTextId = $db->selectField( [ 'recentchanges', 'revision' ], 'rev_text_id', | |
/srv/mediawiki/php/extensions/WikimediaMaintenance/bug-53687/fixOrphans.php: 'ar_text_id' => 'rev_text_id', | |
/srv/mediawiki/php/extensions/WikimediaMaintenance/bug-53687/fixOrphans.php: 'ar_text_id' => $revRow->rev_text_id, | |
/srv/mediawiki/php/extensions/WikimediaMaintenance/bug-53687/find-orphans.sql:select up_page,up_timestamp,log_namespace,log_title,rev_id,ar_rev_id is not null as ar_rev_match,rev_text_id=ar_text_id as ar_text_match from revision left join archive on ar_rev_id=rev_id ,updates left join logging on up_timestamp=log_timestamp where log_action='delete' and rev_page=up_page and up_action='delete'; | |
/srv/mediawiki/php/extensions/Translate/translationaids/TranslationAidDataProvider.php: 'text' => [ 'INNER JOIN', [ 'rev_text_id=old_id' ] ] | |
/srv/mediawiki/php/extensions/Translate/tag/PageTranslationHooks.php: $field = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "restbase", | |
"hostname": "restbase2009", | |
"pid": 130, | |
"level": 50, | |
"message": "504: internal_http_error", | |
"res": { | |
"name": "HTTPError", | |
"message": "504: internal_http_error", | |
"status": 504, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ppchelko@deployment-restbase02:~$ cat /etc/restbase/config.yaml | |
# Number of worker processes to spawn. | |
# Set to 0 to run everything in a single process without clustering. | |
# Use 'ncpu' to run as many workers as there are CPU units | |
num_workers: ncpu | |
# Number of workers to start in parallel after the first worker. | |
# The first worker is always started independently. After it has completed | |
# its start-up, this number controls the number of workers to start in | |
# parallel until `num_workers` have been started. Note that setting this |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/lint/{title}/{revision}: | |
x-route-filters: | |
- path: ./lib/access_check_filter.js | |
options: | |
redirect_cache_control: '{{options.response_cache_control}}' | |
- path: lib/security_response_header_filter.js | |
get: | |
<<: *lint_title_get_spec | |
parameters: | |
- name: title |