Commit graph

1816 commits

Author SHA1 Message Date
jenkins-bot c5559da8cb Merge "Detect signature using Title class" 2014-10-23 21:25:37 +00:00
Translation updater bot 9aaadb6781 Localisation updates from https://translatewiki.net.
Change-Id: I0eb84b75e0f439c1b6d8c47c2f4bc4d00ba414e2
2014-10-23 23:23:01 +02:00
Erik Bernhardson e69c63813e Hygiene: autogenerate $wgAutoloadFiles lines
Change-Id: I4f4d9f9d1c9dde0471611271ceb1ae074d19df72
2014-10-23 12:09:33 -07:00
Translation updater bot c7b9326633 Localisation updates from https://translatewiki.net.
Change-Id: Iea5a32c6739cff8bae15e99f155ec113872d893e
2014-10-22 22:02:23 +02:00
jenkins-bot cbb0dd732d Merge "Add UserMerge support" 2014-10-21 20:08:45 +00:00
Željko Filipin 57241c6867 Prepare repository for running RuboCop after every push to Gerrit
For now ignoring all problems.

Bug: 69245
Change-Id: I0e411fba725ecd9aea0ef9d40a145efb62bbf0fa
2014-10-21 12:59:54 +02:00
Translation updater bot 973e21cbfe Localisation updates from https://translatewiki.net.
Change-Id: Ib1511b38cadbf8a420d20ade665e55816045a26f
2014-10-20 22:25:05 +02:00
jenkins-bot d495389a1c Merge "Use MailAddress::newFromUser()" 2014-10-20 17:25:11 +00:00
Translation updater bot 3d91ac75a4 Localisation updates from https://translatewiki.net.
Change-Id: Iee9a14896bf4b7e772725caf5c55f3dc29035d99
2014-10-19 22:05:05 +02:00
Translation updater bot 1688269aff Localisation updates from https://translatewiki.net.
Change-Id: Iee7638b8b30ed07c863929a1fe0ad7be5939691f
2014-10-17 21:14:46 +02:00
Kunal Mehta fae2556494 Add UserMerge support
Depends on Id1726673 in UserMerge to allow specifying
a custom database object to use.

Bug: 67766
Change-Id: Iceb4b8d2fd53c50ed00a4aab9bc374f4bb716466
2014-10-17 10:08:59 -07:00
jenkins-bot b6ea35e743 Merge "SpecialNotifications: Use a constant" 2014-10-16 05:16:13 +00:00
jenkins-bot eb89852cc6 Merge "Remove unused global" 2014-10-16 05:16:11 +00:00
Translation updater bot f70d159e49 Localisation updates from https://translatewiki.net.
Change-Id: Ia97343862bf8b875a7c412e021dc8c18c3bcae88
2014-10-15 22:05:13 +02:00
Erik Bernhardson b552201829 I-2. Change the default number of Flow Messages in the flyout
Previously this was loading 25 unread notifications.  If less than 25 were
found it would add in 3 read notifications so it wasn't empty.

This patch changes things around to always return 25 notifications if the
user has at least that many.  Instead of backfilling a static count of 3
we backfill 25 - $count with previously read notifications.

Change-Id: I723316486216d7b9dacfcc9765c1a8212e973518
2014-10-15 10:08:00 -07:00
Translation updater bot 0776410395 Localisation updates from https://translatewiki.net.
Change-Id: Ibf540e88dcbb620ffdefeda57558e9e08764ea04
2014-10-13 21:52:27 +02:00
Translation updater bot 833fcb5dc8 Localisation updates from https://translatewiki.net.
Change-Id: Ia95e798303db59beef7b3b02ba3b6c7ae5da9c9f
2014-10-12 22:15:35 +02:00
Translation updater bot 795c39489d Localisation updates from https://translatewiki.net.
Change-Id: I411fd5e1984e8b3fc1f0aedb249f08d7b1ba655a
2014-10-11 22:43:39 +02:00
Kunal Mehta 22a88919af SpecialNotifications: Use a constant
Change-Id: I318f6813caa3c63529d66c646a3d8e4e642bd1a7
2014-10-11 12:15:30 -07:00
Kunal Mehta e91e8fcab8 Remove unused global
Change-Id: I135730c0aa875d4bdb28e832043dfccfefbacd1e
2014-10-11 12:12:59 -07:00
Translation updater bot 6e6fd4ba1a Localisation updates from https://translatewiki.net.
Change-Id: I13acec9045096b7d45bad4b337d836e752f6e59a
2014-10-10 21:59:05 +02:00
Translation updater bot 101c801e0f Localisation updates from https://translatewiki.net.
Change-Id: I3e90871c76ecd2c284e255b2e2950be775d28f4c
2014-10-09 21:18:52 +02:00
Translation updater bot 3258514b7b Localisation updates from https://translatewiki.net.
Change-Id: I38f442737af389000792fdad5dba42edab151011
2014-10-08 21:24:08 +02:00
Erik Bernhardson 44ec374632 Limit Echo mentions to 20 users
Bug: 50082
Change-Id: I7eb0f41fc9b0e3a396383a1adaecf51dc883217f
2014-10-07 22:27:20 +00:00
Translation updater bot f4ef97cb06 Localisation updates from https://translatewiki.net.
Change-Id: I3b2e08e330bbfeda3a31992a6b07b388ed383691
2014-10-07 20:58:19 +02:00
jenkins-bot ce51ecb8f0 Merge "Add reverse chronological ordering to unread notifications" 2014-10-07 18:01:48 +00:00
Translation updater bot 4fe477f9d4 Localisation updates from https://translatewiki.net.
Change-Id: I3830771dea718c41739d12af53b470c81804ced8
2014-10-05 22:11:01 +02:00
Translation updater bot 0c808a6760 Localisation updates from https://translatewiki.net.
Change-Id: If412fbdc86dcaa1e223407dc533c646026923f2a
2014-10-02 23:25:24 +02:00
Translation updater bot aa547e0d1a Localisation updates from https://translatewiki.net.
Change-Id: I2dee6356ce0d3a4c860e013f0a23266588ec2c7e
2014-10-01 22:05:19 +02:00
Erik Bernhardson 8da75c3a50 Detect signature using Title class
Currently echo attempts to find a signature by looking for a series of
strings starting with what it thinks are the current aliases of NS_USER
and NS_USER_TALK.  This has shown to be error prone, see the linked bug
for how a change to ru.wikipedia.org/wiki/Mediawiki:Signature broke
mention notifications.

Patch switches things arround to pull wikilinks out of the text and run
them through the Title class.  The results of this parsing are checked
for NS_USER and NS_USER_TALK, giving a much stronger guarantee of finding
translated namespaces.

Bug: 71353
Change-Id: Ib0d0f4e068339d2fd28761087c05f5a1acb3c1fc
2014-09-30 19:06:16 -07:00
Erik Bernhardson 0cfe5ca269 Don't fatal if a notification fails to initialize
Log info to Echo debug log group instead.

Bug: 71489
Change-Id: I4a7c669ef55936e3c683d268041d828b54a5a9b2
2014-10-01 01:11:30 +00:00
S Page e0cf3b23cb Ignore browser test screenshots
Same as Flow's change I525827d2

Change-Id: Idbf09c5b6ac3a76b8e0aa89412bd1b212f15fe96
2014-09-30 13:34:28 -07:00
bsitu 371abf6430 Add reverse chronological ordering to unread notifications
Has a performance impact, so this depends on deploying the job
that deletes older notifications.

Bug: 69919
Change-Id: Ia485c853d1b04c3c85e25e6a12f5060a046e9b11
2014-09-29 23:14:42 +00:00
bsitu 55ef794d74 Add job to keep user notifications in reasonable volume
Change-Id: I4d4fa4c987a1732e5e29536a7669e28c34d4ab18
2014-09-29 23:10:18 +00:00
Translation updater bot c679929e03 Localisation updates from https://translatewiki.net.
Change-Id: I5a1ccd1ff9ca1d06f4ac4821f5178ea74da43403
2014-09-29 23:30:23 +02:00
Translation updater bot fa804d8084 Localisation updates from https://translatewiki.net.
Change-Id: If5a80093af37b3200d887a0c36e648397d299b62
2014-09-28 22:33:26 +02:00
Translation updater bot 0d1091ff11 Localisation updates from https://translatewiki.net.
Change-Id: I78d38927c1b286bcf7df321f51623a6a484adba6
2014-09-27 20:27:54 +02:00
jenkins-bot 94736491cb Merge "QA: replace hard-coded 7 seconds sleep with poll method" 2014-09-25 22:52:17 +00:00
jenkins-bot d3a093ae68 Merge "QA update feature descriptions for messages test" 2014-09-25 21:41:04 +00:00
Translation updater bot 935a9e4917 Merge "Localisation updates from https://translatewiki.net." 2014-09-25 21:10:13 +00:00
Translation updater bot c7e7ab93ed Localisation updates from https://translatewiki.net.
Change-Id: I6e6ff785e331678c61c98ce3e5400e6c4daaf657
2014-09-25 23:04:11 +02:00
jenkins-bot a769340ba7 Merge "QA: add modern assertions to flyout tests" 2014-09-25 20:56:58 +00:00
Cmcmahon 530688aa39 QA: replace hard-coded 7 seconds sleep with poll method
The step formerly know as "I come back from grabbing a cup of coffee"
is replaced by a step that reloads the page a number of times, where
that number may be set by the user.  If the notification has arrived,
the polling stops and the test continues.

In practice with a local browser pointed to beta labs, the
notification is arriving in plenty of time for the first page load
and I do not see the page reloading at all.

Change-Id: I95dd77d4f5525645e46244e40bfcd86e9124f3b1
2014-09-24 15:07:10 -07:00
Translation updater bot de40ed7381 Localisation updates from https://translatewiki.net.
Change-Id: Ieb38149d3e385d9c6cdeba9efae4257df7bed8df
2014-09-24 22:14:51 +02:00
Cmcmahon 8f2681c01b QA update feature descriptions for messages test
Cucumber Scenario and Feature description are just plain text.
Instead of using comments, it is far better to describe in each
test step what should happen in each test step.

I believe I have described these test steps correctly. Please
advise if they need to be tweaked.

(The test itself seems to be fine, but feel free to review that
also)

Finally, since messages.feature uses the "I have no new notifications"
step, I updated those assertions for modern RSpec syntax

Change-Id: Ie884a85c1fc3f7045773a271a8d76fad6b0b3826
2014-09-24 11:50:18 -07:00
jenkins-bot c029539b98 Merge "Don't make the notifications list 5px taller than the screen" 2014-09-23 22:23:53 +00:00
Roan Kattouw e3c4ddc1ae Don't make the notifications list 5px taller than the screen
The max-height of the notifications list was hardcoded to
the height of the window minus 134 pixels. I don't know
where this value came from, but it doesn't seem to take
borders into account. The correct value appears to be
139 in Chrome and 140 in Firefox, so I changed it to 140.

Also, this really really should not be a hardcoded value.
This 140 value can be measured in JavaScript; that's how I
derived it. Even better, oojs-ui has a mixin called
OO.ui.ClippableElement that automatically does this for you
AND automatically adjusts the height when the window is resized
as well.

Change-Id: I17bc2c5333e5c3d5dd720e6bccf8cbbdbb4abe6c
2014-09-23 15:00:21 -07:00
Cmcmahon 4961e32b53 QA: add modern assertions to flyout tests
"Then" steps should always contains RSpec assertions. In the
past this meant using some version of the word "should", but
the modern convention in RSpec is to use "expect()" as I
did here.

Change-Id: I1c438a310803e29c0985328a76d2ec08578e0cb0
2014-09-23 14:14:47 -07:00
Dduvall f6eca28337 Merge "QA: Refactoring and making the nojs test dtrt" 2014-09-23 20:43:27 +00:00
Cmcmahon b3df4d0814 QA: Refactoring and making the nojs test dtrt
* add @custom_browser tag so we don't create an extra browser instance
* remove @chrome tag because this only works in Firefox
* alphabetize within G/W/T buckets in commons_steps.rb
* alphabetize flyout_steps.rb
* bring env.rb up to date with the modern situation
* make assertions about the URL and heading on the final destination page
* update Ruby gems, especially mediawiki-selenium with a @custom_browser improvement
** use modern RSpec assert syntax
*** we're going to have to update all the repos for this soon

Change-Id: I6cb20126a662bd2a20e2b4bbebe91e8f3b04c7df
2014-09-23 13:35:50 -07:00