Commit graph

47329 commits

Author SHA1 Message Date
jenkins-bot
15c5de3553 Merge "Hold number of search results in a data attribute" 2017-04-20 19:04:16 +00:00
Aaron Schulz
52c3a50028 Fix bogus field reference in Category::getCountMessage() callback
Follows-up 922e68f739. (T162121)

Bug: T162941
Change-Id: I40623203e97f7155c2af171a37b1128a59415315
2017-04-19 21:25:37 -07:00
This, that and the other
57a2ad595c Add different log-in tooltip for private wikis
Bug: T148006
Change-Id: I14e9a554c72222e6f67bc120941199b999740886
2017-04-20 12:25:59 +10:00
jenkins-bot
6bf4485004 Merge "Document which EtcdConfig parameters are optional" 2017-04-20 01:05:32 +00:00
jenkins-bot
72540f0cb0 Merge "Remove load array indexes from LoadBalancer errors" 2017-04-20 00:13:34 +00:00
jenkins-bot
718241d779 Merge "UploadBase::getTitle can return null" 2017-04-20 00:12:21 +00:00
jenkins-bot
3845fa4625 Merge "Lower the amount of jobs pushed into redis at once" 2017-04-20 00:10:59 +00:00
Aaron Schulz
52902b6667 Document which EtcdConfig parameters are optional
Change-Id: Ic6b56ed2f8789ae7920cdfc12f34b00db4a76c3a
2017-04-19 16:48:13 -07:00
Timo Tijhof
3c620b07ab ReadOnlyMode: Add a few doc blocks
Follows-up 820f46964f.

Change-Id: I7866eb7c8bb9c45a24a3c567a7befe3505821873
2017-04-19 23:13:22 +00:00
Aaron Schulz
0b58cdc7f2 Lower the amount of jobs pushed into redis at once
This further limits how long the server can be tied up by push().

Change-Id: I02d242578dadc19912c9fccfdcf5e15c5eb78e9e
2017-04-19 15:38:32 -07:00
jenkins-bot
c611380da2 Merge "A service for read-only mode" 2017-04-19 22:23:28 +00:00
Aaron Schulz
99fcf47b52 Remove load array indexes from LoadBalancer errors
This are not very useful and where not using SPI interpolation either.

Change-Id: Ia3a33da3a4593fbcba59b21f5b5028860752ce09
2017-04-19 14:30:25 -07:00
Translation updater bot
edda29d73a Localisation updates from https://translatewiki.net.
Change-Id: I6e67503e539268e66f495a594f29231e3ee4b6dd
2017-04-19 22:22:15 +02:00
jenkins-bot
354e20ddbc Merge "media: Remove unused private function in SVGMetadataExtractor" 2017-04-19 20:09:03 +00:00
Eugene Gvozdetsky
b7fa8f6f96 media: Remove unused private function in SVGMetadataExtractor
Change-Id: I3cd00bb4f460a141966ad01e155a97b8a087a8e8
2017-04-19 20:00:51 +00:00
Tim Starling
820f46964f A service for read-only mode
Introduce a service to represent wfReadOnly() and friends.

It's necessary to have two service instances, one for wfReadOnly() and
one for wfConfiguredReadOnlyReason(), to avoid a circular dependency,
since LoadBalancer needs the configured reason during construction, but
wfReadOnly() needs to query the currently active load balancer.

Not having a cache of the configuration makes it possible to dynamically
change the configuration. Ideally things would not change the
configuration, and I removed such instances in core, but to support
extensions, I added a test ensuring that the configuration can be changed.

Change-Id: I9bbee946c10742526d3423208efd68cb3cc5a7ee
2017-04-19 12:27:06 -07:00
jenkins-bot
6bb010ccac Merge "Remove links list from the 'rclinks' message" 2017-04-19 19:02:47 +00:00
Mikhail Popov
489f7e0b54 Hold number of search results in a data attribute
Current way of counting returned search results (e.g. for
Event Logging) relies on counting the appropriate elements
in the search results page's DOM, up to the limit the user
requested (e.g. 20 by default). This allows us to record
the total number and the offset, useful for event logging.
For example, if we wanted to know whether the user viewed
2nd or 3rd set of search results.

Change-Id: Ic8601e9eeddac84ba8e0d7dc6f127bf360b6f90f
2017-04-19 11:29:45 -07:00
jenkins-bot
37198b7d35 Merge "Allow editors to exclude navigation items from search indices" 2017-04-19 06:57:43 +00:00
jenkins-bot
6c81cf528d Merge "RC Filters: Detect filters conflicts to by-pass db query" 2017-04-19 03:20:22 +00:00
Stephane Bisson
93cbb2450c RC Filters: Detect filters conflicts to by-pass db query
Filters are in conflict when their combination is guaranteed
to return no results. For instance: minor and log entries
is a conflict because major/minor does not apply to
log entries and the field is set to major by default.

Letting conflicts go through result in some very slow
database queries.

Bug: T160220
Change-Id: Ia6b0125c675c4a3cc4e4be4f83d1bd10d23059ba
2017-04-18 22:49:58 -04:00
jenkins-bot
c7dfa9dedc Merge "Do an HTMLCacheUpdate of templatelinks on page creation" 2017-04-18 23:23:28 +00:00
Erik Bernhardson
53514e5d5d Allow editors to exclude navigation items from search indices
When you perform a particular search, the results can be polluted by
navigation elements that are not supposed to be displayed. This gives
editors the ability to mark sections of the document that should not
be indexed.

Bug: T162905
Change-Id: Iab2b83c3778cd5f7f44736c0da569fd938ae2968
2017-04-18 14:12:47 -07:00
Translation updater bot
8380cef07a Localisation updates from https://translatewiki.net.
Change-Id: I6c1534c40494dff1a9866fa5ec478c4646477688
2017-04-18 21:57:20 +02:00
addshore
65538b0ccd UploadBase::getTitle can return null
Change-Id: I5bd94f6233476bda43a01155f6e7d6df420412e2
2017-04-18 20:42:54 +01:00
Stephane Bisson
9f26901dc5 Remove links list from the 'rclinks' message
In some languages, the 'rclinks' message ends
with '...<br />$3.' where $3 is a list of links.
When $3 is empty, we end up with a lonely period
on a new line.

This change removes $3 and adds it on the page
on its own. Unfortunately, it requires fixing all
the messages. Not sure if it's the proper way to
do this.

Bug: T162844
Change-Id: If17f056c135b2e51747a5a1c8aeaba785cf18ff2
2017-04-18 15:40:11 -04:00
jenkins-bot
ad68cd419a Merge "EditPage: Restore IE 6 compatibility for OOUI-style buttons" 2017-04-18 19:03:23 +00:00
Bartosz Dziewoński
0c3a2e2446 EditPage: Restore IE 6 compatibility for OOUI-style buttons
Follow-up to 97d7de0b84.

Bug: T163219
Change-Id: Ifb5145c631ce1a3aa7e51956fab3ec7da8b994d2
2017-04-18 11:50:53 -07:00
Bartosz Dziewoński
9cbf4bdcc9 EditPage: Restore ability to provide edit summary for OOUI-style input
The 'name' attribute was missing, so the field was not being submitted
with the form.

Change-Id: Ic7238b9bfe9ca254f844fb828cf09ecf44171461
2017-04-18 18:09:11 +00:00
Brad Jorsch
aaa1c2ab96 Do an HTMLCacheUpdate of templatelinks on page creation
When a page is created, anything that's trying to transclude that page
needs to have an HTMLCacheUpdate run on it. But that's not currently
happening.

Normal template transclusion happens to get updates only because
transclusion of a nonexistent template is rendered as a link to that
template, which registers a pagelink, and pagelinks *are* being updated
on page creation to cause redlinks to turn blue.

Change-Id: I18b8cfdeedc53f8fdb1e758a6fca1cd23d9574f8
2017-04-18 12:42:55 -04:00
jenkins-bot
5747ee5b93 Merge "Split up LoadBalancer::getReaderIndex() and simplify the code a bit" 2017-04-17 23:48:01 +00:00
Aaron Schulz
b1d4ceaace Split up LoadBalancer::getReaderIndex() and simplify the code a bit
Change-Id: I4e0b5318ad2c987b2a059c4ef2bda3de14486687
2017-04-17 23:31:48 +00:00
jenkins-bot
d83306610d Merge "Move DB errors to Rdbms namespace" 2017-04-17 22:06:42 +00:00
jenkins-bot
d0fbec511d Merge "Clarify getLaggedReplicaMode()/laggedReplicaUsed() in LoadBalancer" 2017-04-17 20:58:17 +00:00
Translation updater bot
a1b093aa1f Localisation updates from https://translatewiki.net.
Change-Id: I6518eb7aa39e3933714d2df77f881a0929196d71
2017-04-17 21:54:55 +02:00
jenkins-bot
d1b068f231 Merge "Support GENDER in the message "sp-contributions-userrights"" 2017-04-17 16:19:57 +00:00
Translation updater bot
c3a61a2748 Localisation updates from https://translatewiki.net.
Change-Id: Id03227c4e4d8963db6cd44ee0bde953dbe2128c6
2017-04-17 09:57:10 +02:00
jenkins-bot
9526073855 Merge "EditPage: Make input and button widgets infusable" 2017-04-16 20:06:34 +00:00
jenkins-bot
6fbafe5494 Merge "Convert various FormActions to OOUI" 2017-04-16 19:30:55 +00:00
Translation updater bot
8260bc20b0 Localisation updates from https://translatewiki.net.
Change-Id: Ib5b863d0778647034f75e65c45e4a10986ec1a3d
2017-04-16 09:43:40 +02:00
Ed Sanders
093126b71e EditPage: Make input and button widgets infusable
This will allow gadget developers greater control, e.g. disabling.

Change-Id: I9a21cd2dd3fc7695fc09632b844cc1afd0db0355
2017-04-15 22:08:35 +00:00
Aaron Schulz
dd359741cc Move DB errors to Rdbms namespace
Change-Id: I463bd86123501abc68fdb78b4cda6110f7af2549
2017-04-15 10:47:41 -07:00
Matěj Suchánek
1f72636868 Support GENDER in the message "sp-contributions-userrights"
Bug: T130960
Change-Id: Iab6418c6c60c94a0c77e25243e83d1a13b7ca6e0
2017-04-15 15:28:57 +00:00
Translation updater bot
b7235c6c65 Localisation updates from https://translatewiki.net.
Change-Id: I077d94de0c0681f31bac6aab7257151eb8b76fec
2017-04-15 09:56:12 +02:00
Aaron Schulz
4ffc29a695 Clarify getLaggedReplicaMode()/laggedReplicaUsed() in LoadBalancer
Change-Id: I4ea9033d2d643c6758c49f34a69c9837598eea33
2017-04-15 06:50:36 +00:00
Antoine Musso
c5d736bcad media: Capture stderr when running 'convert --version'
At Wikimedia, $wgImageMagickConvertCommand points to a shell wrapper
that invokes ImageMagick convert with:

  firejail --profile=/etc/firejail/mediawiki-converters.profile

firejail emits to stderr an information message:

  Reading profile /etc/firejail/mediawiki-converters.profile

That ends up in HHVM stderr and is populated up to logstash as an error.

MediaWiki does check imagemagick version by running `convert -version`,
switch from wfShellExec() to wfShellExecWithStderr().

Bug: T158649
Change-Id: I78d1ef59533c605f59b42e10556bb595d6c2cc15
2017-04-15 03:22:33 +00:00
jenkins-bot
fd615cc215 Merge "Add grep infos to Parser::getImageParams" 2017-04-15 00:37:35 +00:00
Umherirrender
bf51e3542b Add grep infos to Parser::getImageParams
Comments for grep makes searching easier

Change-Id: I98e93baf6bd89df36185d535d6e63c51c6f65bc9
2017-04-14 23:42:15 +02:00
Aaron Schulz
dc17c8ddbf Fix some LoadBalancer::waitFor*() inconsistencies
* Make sure waitFor() always handles laggedReplicaMode updates,
  even if the actual waiting was deferred until a connection was
  needed.
* Restore the old mWaitForPos in waitForOne()/waitForAll() since
  this do not care about the generic reader index or the sort of
  ChronologyProtector logic related to it.

Change-Id: I0767e9831b8fd7fd115a472354977e3c1e12114a
2017-04-13 19:23:09 -07:00
Translation updater bot
c9f2b4d1c7 Localisation updates from https://translatewiki.net.
Change-Id: I69e7808271ea3f7afc65989ab13250d4022a603b
2017-04-13 21:57:59 +02:00