Commit graph

103025 commits

Author SHA1 Message Date
Reedy
d750ddc890 UserPasswordPolicyTest: Replace PasswordCannotMatchBlacklist with PasswordCannotMatchDefaults
Change-Id: Id04346ea0a7dcc554e89196995c792fcf5d5d7ed
2021-04-18 23:52:57 +01:00
jenkins-bot
93c056406e Merge "Change "saving" to "publishing"" 2021-04-18 20:50:45 +00:00
jenkins-bot
f2274aee22 Merge "Change "blacklisted" to "forbidden" in a spam filter message" 2021-04-18 19:21:39 +00:00
jenkins-bot
39ae34a876 Merge "Use some more neutral language" 2021-04-18 19:21:32 +00:00
Amir Aharoni
23a4a6d8c6 Change "blacklisted" to "forbidden" in a spam filter message
Bug: T277987
Change-Id: I82782a0bc02048daeba4ede165a33c9bfcf1b654
2021-04-18 19:03:31 +03:00
Reedy
fb771021ea Use some more neutral language
Bug: T277987
Change-Id: Ieceb01f7a61693a0f03cc331213cb8f93163b8e9
2021-04-18 16:49:36 +01:00
Reedy
2b40657a36 .phpcs.xml: Replace useage of whitelist in comments
Bug: T277987
Change-Id: I7735279b4dceceb0c9620bb0983ca4839245f194
2021-04-18 16:22:58 +01:00
Amir Aharoni
5b9a5691ac Change "saving" to "publishing"
Follow-up to
Ie8a3ff95e46ec8a116e1f6603a380c5643148d1e

Change-Id: Ifc0154a8015762bc1674fbf872fe5a7e658466aa
2021-04-18 12:53:10 +03:00
Taavi Väänänen
23efcf9dbf
Add change tag for media uploaded using importImages.php
Change-Id: I74a7d6f9e5e7bada4803f7e807c7c74d237e9d47
2021-04-17 22:45:52 +03:00
jenkins-bot
9f84096300 Merge "Convert PageEditStash to PageIdentity/UserIdentity" 2021-04-16 22:29:31 +00:00
jenkins-bot
7d7a313e8a Merge "User: use ActorNormalization to insert actor" 2021-04-16 22:29:17 +00:00
jenkins-bot
3a5cd16b85 Merge "rdbms: Add DB_PRIMARY to replace DB_MASTER" 2021-04-16 22:01:11 +00:00
jenkins-bot
d5d8cef623 Merge "phpunit: Mass-replace setMethods with onlyMethods and adjust" 2021-04-16 19:49:27 +00:00
jenkins-bot
7258a8f116 Merge "selenium: Fix ReferenceError: test is not defined" 2021-04-16 19:22:01 +00:00
jenkins-bot
90c48082f1 Merge "ApiTag: inject services" 2021-04-16 18:56:12 +00:00
Daimona Eaytoy
535d7abf59 phpunit: Mass-replace setMethods with onlyMethods and adjust
Ended up using
  grep -Prl '\->setMethods\(' . | xargs sed -r -i 's/setMethods\(/onlyMethods\(/g'

special-casing setMethods( null ) -> onlyMethods( [] )

and then manual fix of failing test (from PS2 onwards).

Bug: T278010
Change-Id: I012dca7ae774bb430c1c44d50991ba0b633353f1
2021-04-16 20:15:00 +02:00
Željko Filipin
1d851ec5bd selenium: Fix ReferenceError: test is not defined
I've removed `test` argument from afterTest hook by mistake in 2320f00.
It's needed by `filePath()`.

Linters didn't catch this and tests didn't fail, so this mistake went
unnoticed.

Bug: T280355
Change-Id: I1bc142d8282b7a7266233c69d0b27f8700c8f473
2021-04-16 20:11:05 +02:00
jenkins-bot
592bb57b31 Merge "Remove Title from public interface of OutputPage" 2021-04-16 17:49:53 +00:00
jenkins-bot
2bb6e3b270 Merge "selenium: Explicitly make screenshots for passing and failing tests" 2021-04-16 17:49:47 +00:00
daniel
c1eb74603a Remove Title from public interface of OutputPage
Bug: T278459
Change-Id: If455682540faf8d42fd8a14e0ef09bac24f72db4
2021-04-16 10:01:56 -07:00
Željko Filipin
2320f00eef selenium: Explicitly make screenshots for passing and failing tests
There is code in wdio.conf.js to only take screenshots of failed tests.

For a while now, `test.passed` is returning `undefined`, so screenshots
are taken for both passing and failing tests. The change probably
happened when we upgraded webdriverio to v5 or v6, but nobody noticed
it.

I actually like the current behavior. We take videos for both passing
and failing tests, so it makes sense to take screenshots too. Both
screenshots and videos are small files.
(The biggest screenshot is 539 KB, the biggest video is 21 KB.)

Bug: T280355
Change-Id: I8a73afcda19d6dc1cad75256835448488aff37d5
2021-04-16 17:01:53 +00:00
jenkins-bot
e6a88353de Merge "Do not use a NullLogger when no handler is declared" 2021-04-16 16:40:15 +00:00
jenkins-bot
2ce9b49935 Merge "selenium: Remove Screenshot location... messages" 2021-04-16 16:32:45 +00:00
Željko Filipin
d0762b576f selenium: Remove Screenshot location... messages
A typical output when running Selenium tests contains a lot of
`Screenshot location...` messages. They are not useful and should be
removed.

Bug: T280343
Change-Id: I462a3764f4a26c4231ff48797c4834ba80a4079d
2021-04-16 15:45:53 +02:00
jenkins-bot
7d1f23b64e Merge "Use Accent50 for progress indicators" 2021-04-16 13:10:34 +00:00
Translation updater bot
085a1ef4ce Localisation updates from https://translatewiki.net.
Change-Id: I7db54abba1be4abe036da5e53958e9dbf4768f60
2021-04-16 09:49:24 +02:00
jenkins-bot
c6a8b0c033 Merge "Correct "nonwrite-api-promise-error" message and improve docs" 2021-04-16 04:40:50 +00:00
Taavi Väänänen
8dc6887a3c rdbms: Add DB_PRIMARY to replace DB_MASTER
Bug: T278026
Change-Id: I878d6cacf560a69764cc694b912b39d70f62a292
2021-04-15 15:22:49 -07:00
Petr Pchelko
021206c232 User: use ActorNormalization to insert actor
While creating users, we have several interesting corner cases:

- When creating a new User, we actually rely on the 'unique'
constraint on actor_name. This is important if something calls
'User::createNew' with a name that is already occupied by an
existing anon actor with no user. This is quite a weird corner case,
but there's a test for that. We could probably assimilate this
nicly in actor store by checking whether the user id in the database
for the actor we found is the same as user id in the passed in user identity.
- Even more interesting use-case is 'subsuming' existing actors with
reserved user names. When we call User::newSystemUser, and there is
already an actor with the same reserved name, we 'subsume' that actor
and take over it's actor_id for our new system user. This can now be
done with an upsert. This state of having reserved actor with no user
is not easy to cause, but imports or updating from old MW versions
seem to be able to produce this state. Archeology revealed that
'subsuming' existing actor was added for installer.

Change-Id: I16b2f088217db0283215fc2ef5fb04a3742e1626
2021-04-15 13:42:39 -07:00
jenkins-bot
41987562d9 Merge "Set $status->value in EditFilterMergedContentHookConstraint::checkConstraint() properly to display error message" 2021-04-15 20:23:47 +00:00
Func
278e195ab7 Set $status->value in EditFilterMergedContentHookConstraint::checkConstraint() properly to display error message
When hook handler return false and use $status->fatal() to put up a error,
we should set $status->value to self::AS_HOOK_ERROR_EXPECTED to show edit form
and display error message.

Bug: T273354
Change-Id: I02d643c5cb1978da8ab749856493d75137b6cb02
2021-04-15 22:01:30 +02:00
jenkins-bot
cd77fdcdd9 Merge "mediawiki.ui: Remove obsolete Firefox normalization" 2021-04-15 19:56:45 +00:00
jenkins-bot
94d14ef42e Merge "Pass user object to Language::formatExpiry" 2021-04-15 19:26:00 +00:00
Umherirrender
cf541752e0 Add comment to fall-through cases in switch
Fix new coming sniff
PSR2.ControlStructures.SwitchDeclaration.TerminatingComment

Bug: T182546
Change-Id: I3f8d43c730981d8faaa72910d7f3b58a14a8372f
2021-04-15 17:31:12 +00:00
DannyS712
d638b0c2cf Move remaining ParamValidator tests to unit tests
Change-Id: I82d18a3c8a4c68c7456d5e5e4979d6445185f1c8
2021-04-15 14:51:39 +00:00
jenkins-bot
c32c06887f Merge "Move most ParamValidator tests to unit tests" 2021-04-15 14:49:13 +00:00
jenkins-bot
a8bd497fda Merge "Remove MovePageFactoryTest" 2021-04-15 13:12:24 +00:00
jenkins-bot
da1c9896e1 Merge "objectcache: make BagOStuff log values that are not JSON serializable" 2021-04-15 08:11:22 +00:00
Translation updater bot
3483673568 Localisation updates from https://translatewiki.net.
Change-Id: If0ecb6f1340ff810d2ed594944a1fe8b7a79cc93
2021-04-15 08:41:54 +02:00
Tim Starling
647e6be277 Remove MovePageFactoryTest
The tests in this file make no sense now that MovePageFactory no longer
exists. Obviously you do not pass all constructor arguments to
PageCommandFactory through to MovePage.

To make it pass against the following commit, I could update the
getExtraClassArgCount(), but that would be necessary pretty much every
time the constructor argument list of either class is changed. There's
no reason to think a difference in argument count is an error anymore.

Change-Id: Id4f4b43d47217ebb0111800d7ccb9855d56f7abb
2021-04-15 14:05:49 +10:00
jenkins-bot
92eb65128a Merge "resourceloader: Correctly handle a null getMessageBlob() in SkinModule" 2021-04-15 01:19:58 +00:00
jdlrobson
de63b08fe1 resourceloader: Correctly handle a null getMessageBlob() in SkinModule
Fixes the issue:
> Warning: array_intersect_key(): Expected parameter 1 to be an array,
> null given
> in includes/resourceloader/ResourceLoaderLessVarFileModule.php

... for SkinModule instances without any LESS messages, which will
occur after I3905bc2c324 gets merged.

Change-Id: I0e3ba3c2cfa64bba49e3944d93e0c802b553bac8
2021-04-15 01:55:05 +01:00
DannyS712
ec3d351c62 Move most ParamValidator tests to unit tests
No integration needed, except for maybe in
the tests for the UploadedFile* classes, which
are left where they are for now - those tests
deal with the file system.

Change-Id: I4f38557d524b2d36dea36a926d0f31e1afed5c7a
2021-04-14 23:57:20 +00:00
jenkins-bot
686abd50bf Merge "Convert WatchlistManager to use Authority and PageIdentity" 2021-04-14 23:18:35 +00:00
jenkins-bot
ccb2e92fe8 Merge "uuid: Simplify GlobalIdGenerator by removing QUICK_VOLATILE flag" 2021-04-14 22:45:40 +00:00
Cindy Cicalese
200e9abbd0 Convert WatchlistManager to use Authority and PageIdentity
- take PageIdentity in addition to LinkTarget where appropriate and
  deprecate taking LinkTarget
- take Authority in addition to UserIdentity where appropriate and
  deprecate taking UserIdentity

Change-Id: I410a4c26b25e086e1e6abb293789d718de4aa20a
2021-04-14 18:21:58 -04:00
jenkins-bot
5752dcbe0b Merge "Reset fake timestamps for unit tests too" 2021-04-14 21:45:02 +00:00
Aaron Schulz
bb1fdb91ac uuid: Simplify GlobalIdGenerator by removing QUICK_VOLATILE flag
Change-Id: I4f504be5d805281eeb9400cd4fd783c50b561b87
2021-04-14 21:40:35 +00:00
jenkins-bot
58fb3289f4 Merge "Convert MWLBFactoryTest to pure unit tests" 2021-04-14 21:26:25 +00:00
jenkins-bot
45966b9573 Merge "HTMLFileCache: replace Title in method signatures" 2021-04-14 21:26:17 +00:00