Commit graph

126341 commits

Author SHA1 Message Date
jenkins-bot
cd5fe6c658 Merge "languages: Switch around formalityIndex for nl and nl-informal" 2024-08-29 02:26:26 +00:00
Timo Tijhof
5943b6e691 phpunit: Replace trivial wfParseUrl use with parse_url()
Follows-up changes I57a8e7ea1b3, I1e76d2f5ae, I98ea4670e8, and
more in a search for "parse_url" in Codesearch (WMF Deployed).

Bug: T319340
Change-Id: I2b389612f4d591080f7e6235ddfc72f832b31143
2024-08-29 03:15:36 +01:00
jenkins-bot
81ebe177ca Merge "ResourceLoader: Switch CodexModule from BaseDirectory to MW_INSTALL_PATH" 2024-08-29 02:14:01 +00:00
jenkins-bot
7735987c26 Merge "ResourceLoader: Migrate from deprecated $IP global to MW_INSTALL_PATH" 2024-08-29 02:13:53 +00:00
jenkins-bot
e201b5414f Merge "PasswordReset: remove $wgAllowRequiringEmailForResets feature flag" 2024-08-29 02:13:46 +00:00
Timo Tijhof
d5a044ba35 api: Use MW_INSTALL_PATH in ApiBase
Does not need to be configurable.

Change-Id: Iaf58333db54a09af1dca2f39bbb86d256e7eb0a0
2024-08-29 02:47:46 +01:00
Roan Kattouw
5b055f7ef0 ResourceLoader: Switch CodexModule from BaseDirectory to MW_INSTALL_PATH
Change-Id: I6d6e6dd79f4d6cf8601dcc3d02195bd87b216649
2024-08-29 01:44:12 +00:00
jenkins-bot
e60d7bde5b Merge "ResourceLoader: Fix require('../../foo.js') from module base directory" 2024-08-28 19:53:02 +00:00
jenkins-bot
b79875fb14 Merge "Deprecate OutputPage::setCategoryLinks()" 2024-08-28 18:42:15 +00:00
Timo Tijhof
67fa7f144d ResourceLoader: Fix require('../../foo.js') from module base directory
Follows-up 657872dee5, which fixed `../` access to preserve 0 or 1
above the module base directory. It didn't do that intentionally, but
it was a side-effect of the uncached .length check.

Once the array is empty, we reach the base directory, and interpret
`..` as something to push instead of pop. That's all great.

But, then the next `..` would pop again since it is now non-empty.

Fix this by remembering whether we reached the base, and only pushing
from that moment on. Don't switch from pushing back to popping.

Bug: T373065
Change-Id: I777f2c12e845a738edeac00e19818d4c939a1ef1
2024-08-28 19:20:06 +01:00
jenkins-bot
c2c9146874 Merge "More robust assert.step() call in mediawiki.base/track test" 2024-08-28 17:39:55 +00:00
jenkins-bot
82201b380f Merge "RELEASE-NOTES-1.43: Move MessageContent entry to correct section" 2024-08-28 16:45:20 +00:00
jenkins-bot
a0b37a5ac8 Merge "auth: Relax AuthManager session state check while cde00b55 is deployed" 2024-08-28 16:33:32 +00:00
James D. Forrester
de99e33829 RELEASE-NOTES-1.43: Move MessageContent entry to correct section
Removal is a breaking change, not a deprecation.

Change-Id: If628548aa38b290dad2ab216e74c69946e881061
2024-08-28 10:59:41 -04:00
jenkins-bot
bcc2e9ff00 Merge "Add Haryanvi language (bgc)" 2024-08-28 14:37:07 +00:00
jenkins-bot
7bbc428f1e Merge "remove @internal from getStatsFactory()" 2024-08-28 14:37:01 +00:00
Amir E. Aharoni
3a275a80aa Add Haryanvi language (bgc)
Bug: T364737
Change-Id: Ic88ea60db67ed32dd8ac4534025f71537b1d0e11
2024-08-28 14:12:16 +00:00
Gergő Tisza
9c62cd1af5
auth: Relax AuthManager session state check while cde00b55 is deployed
Follows up If5435b54a4fc08f685c04fc10eb44c6d72cd78fa.

Bug: T373504
Change-Id: I7cf157f04028a69f5893c9524c1d9a277033ad38
2024-08-28 15:37:41 +02:00
thiemowmde
4d9c5295be More robust assert.step() call in mediawiki.base/track test
This test was added not long ago, see Ie5b8ae4. We see it failing in
unrelated patches, see I7dc9e26. Unfortunately the error message is
not helpful because assert.step() apparently ends being called with
incompatible arguments. This will probably not fix the issue, but
make the output more helpful.

Needed-By: I7dc9e26edc954d195dff8aeefa7d923ea7534fea
Change-Id: I75d74e74eca0bdfb592e2d3ababcaea062d09190
2024-08-28 15:29:41 +02:00
jenkins-bot
d3b49baccd Merge "i18n: add ChipInput messages for aria-live attribute" 2024-08-28 13:11:46 +00:00
jenkins-bot
4550c5f120 Merge "installer: remove redundant clearFlag( DBO_TRX )/commit() calls" 2024-08-28 11:21:30 +00:00
Translation updater bot
f0aecf7235
Localisation updates from https://translatewiki.net.
Change-Id: Ic5cfc584d8047dcd8f68e6b4a7e6a23a46e0bee4
2024-08-28 09:07:09 +02:00
MusikAnimal
ef14cd41c3 PasswordReset: remove $wgAllowRequiringEmailForResets feature flag
Update a few tests that relied on the feature flag to ignore
the 'requireemail' preference on "User1" to instead use "User2",
who doesn't have the preference set.

Bug: T242406
Change-Id: I996d3996272d704a071d1d2094c3568247b80f98
2024-08-28 00:55:43 +02:00
Cole White
d286c55473 remove @internal from getStatsFactory()
Bug: T350592
Change-Id: I0f2e3fc431d2091492d9a13c9936beca790a7736
2024-08-27 22:52:34 +00:00
C. Scott Ananian
3739467256 Deprecate OutputPage::setCategoryLinks()
This method has a weird behavior where it resets the category *link* list
while not resetting the category *list*.  It turns out that no one actually
needs that weird behavior; in fact no one needs this method at all, since
the only external user is the Translate extension, which could use the
OutputPage::addCategoryLinks() method instead, which has existed since
2014 (Id25041a7891f588ffa787fdd2c092342eecd30c8).

Deprecate this method with warnings.

Bug: T373480
Depends-On: Id25041a7891f588ffa787fdd2c092342eecd30c8
Change-Id: I7b07d761eb8cd5ad1e6da2dd836e969a0d492c2b
2024-08-27 22:42:09 +00:00
jenkins-bot
99e6031f32 Merge "rdbms: override sanitizeConnectionFlags() in LoadBalancerSingle" 2024-08-27 22:30:02 +00:00
jenkins-bot
bbea7ef73e Merge "rdbms: remove CONN_INTENT_WRITABLE and deprecate other CONN_* constants" 2024-08-27 22:28:19 +00:00
lwatson
02391f2f5c i18n: add ChipInput messages for aria-live attribute
Bug: T364441
Change-Id: Ifabb9b94c22f5726a72007054157501e75b5b403
2024-08-27 17:35:32 -04:00
jenkins-bot
f093e5d551 Merge "Remove a vandal's username from translation file" 2024-08-27 19:03:13 +00:00
Nemoralis
ec372cbffd Update date format for Uzbek language
Bug: T369787
Change-Id: I0de4623ef30ff6746ffc29deb75e9cc62bc87917
2024-08-27 21:52:46 +04:00
mary123
2ca11e8774 Remove a vandal's username from translation file
Change-Id: I1f95616a994e832b6d5bd9a77d33411a97fbd919
2024-08-27 20:40:11 +03:00
jenkins-bot
8620c365f8 Merge "remove <em> from recentchanges-legend-plusminus" 2024-08-27 16:54:48 +00:00
Srishakatux
b5b7966355 Merge "Add namespace translations for Saint Lucian Creole (acf)" 2024-08-27 16:29:05 +00:00
jenkins-bot
7415ff9e0b Merge "CodexModule: Also print dev mode warning when loading full library" 2024-08-27 16:23:08 +00:00
jenkins-bot
a1af09c6fa Merge "auth: Fix documentation of AuthManagerVerifyAuthentication hook" 2024-08-27 15:56:05 +00:00
Roan Kattouw
1c950a1e83 ResourceLoader: Migrate from deprecated $IP global to MW_INSTALL_PATH
Change-Id: I37a65a54ec4422a96b141d29bb771378532de0fc
2024-08-27 08:21:04 -07:00
jenkins-bot
e1e674ebc6 Merge "selenium: Example code for Selenium/Explanation/Page object pattern" 2024-08-27 14:54:23 +00:00
jenkins-bot
e3d0999bbd Merge "Exclude boilerplate maintenance code from code coverage reports" 2024-08-27 14:51:29 +00:00
Dreamy Jazz
e7393b3cc7 Exclude boilerplate maintenance code from code coverage reports
Why:
* Maintenance scripts in core have bolierplate code that is
  added before and after the class to allow directly running
  the maintenance script.
* Running the maintenance script directly has been deprecated
  since 1.40, so this boilerplate code is only to support a now
  deprecated method of running maintenance scripts.
* This code cannot also be marked as covered, due to PHPUnit
  not recognising code coverage for files.
* Therefore, it is best to ignore this boilerplate code in code
  coverage reports as it cannot be marked as covered and also
  is for deprecated code.

What:
* Wrap the boilerplate code (requiring Maintenance.php and then
  later defining the maintenance script class and running if the
  maintenance script was called directly) with @codeCoverageIgnore
  comments.
* Some files use a different boilerplate code, however, these
  should also be marked as ignored for coverage for the same
  reason that coverage is not properly reported for files.

Bug: T371167
Change-Id: I32f5c6362dfb354149a48ce9c28da9a7fc494f7c
2024-08-27 13:22:29 +01:00
James D. Forrester
3c331f4155 RELEASE-NOTES: Add entry for @vue/composition-api removal
Follow-up to 33c8f3cce2.

Change-Id: I2b19accd1f1d096752bd0b8c3d9abcf074fa5e9d
2024-08-27 07:48:49 -04:00
Željko Filipin
ef832a2fc0 selenium: Example code for Selenium/Explanation/Page object pattern
https://www.mediawiki.org/wiki/Selenium/Explanation/Page_object_pattern

Bug: T368535
Change-Id: Ib69e0696060885476e9f880f37067539ed7e1904
2024-08-27 11:41:33 +00:00
jenkins-bot
be2bef0de5 Merge "Remove deprecated since 1.41 '@vue/composition-api' module" 2024-08-27 10:47:47 +00:00
Gergő Tisza
dddc54d5f0
auth: Fix documentation of AuthManagerVerifyAuthentication hook
Follows up I835b2fe2f43e6e81f23348165cbb9c93832e6583.

Change-Id: Ie7e8b57bfb3e7a0caf038446ece21d3cfa6df9e9
2024-08-27 11:45:25 +02:00
Translation updater bot
ef87455d7c
Localisation updates from https://translatewiki.net.
Change-Id: I98881cc25322ba1cd658d086dd526736dea5f504
2024-08-27 09:04:53 +02:00
Ebrahim Byagowi
33c8f3cce2 Remove deprecated since 1.41 '@vue/composition-api' module
Deprecated since Iaf7bd2986b7f4185923969899d61878e5ee5905b
and no longer it seems used in Wikimedia codebase or gadgets in
Wikidata or Wikimedia Commons, there was one userscript
in English Wikipedia (not a gadget and was in User: namespace),
which I notified them they can just use Vue module.

Change-Id: I0a45d97866519765be5c3bdff9c0a20b003f78ae
2024-08-27 08:38:08 +03:30
Amir E. Aharoni
be9bb3e048 Add Nupe (nup) namespace translations
Contributed by User:Misbahu umar at
https://translatewiki.net/w/i.php?title=User_talk:Misbahu_umar&oldid=12560109#Namespaces

Bug: T370123
Change-Id: Ied715350350606bd09887af7abf77ad34edf2ab1
2024-08-27 02:38:49 +00:00
Andrei Rybak
34c64601bc remove <em> from recentchanges-legend-plusminus
Bug: T373412
Change-Id: I4b2c9d2dec53c2c665c273b33e3d8caa3160e2ac
2024-08-27 01:51:00 +00:00
jenkins-bot
3abfedbcbb Merge "auth: Add AuthManagerVerifyAuthentication hook" 2024-08-27 01:16:31 +00:00
jenkins-bot
8cf23d37ef Merge "auth: Add AuthManagerFilterProviders hook" 2024-08-27 01:16:14 +00:00
Gergő Tisza
e3cea8e11f auth: Add AuthManagerVerifyAuthentication hook
Add a new hook that can be used to prevent authentication just
before AuthManager takes the main action (writing the session
for login, creating the local user account for account creation).

The driving use case is a wiki which supports both a local and
a central (wiki-farm-level) login or signup flow - various
security options (such as 2FA) are needed during local login
but unnecessary during central login (which will have those
security features centrally), so we need to skip much of the
security when the user is taking the central route, and a bug
in how that's done could result in circumvention of security
features during local login. The hook makes it easy to inspect
and potentially interrupt login near the end, when we know for
sure what route it took. (Specifically, we know which primary
provider was used. The hook doesn't expose other details,
such as the list of preauth or secondary provders that were
invoked, because they were not needed for the immediate use
case, but they are easy to add in the future.)

The hook is called after the secondary providers for login
and before them for account creation, since secondaries can
interrupt login but cannot interrupt account creation.

A shortcoming is that since the hook is called after a primary
provider succeeded, it cannot prevent the primary provider from
doing work, ie. it cannot prevent creation of the remote account
during account creation (although it will prevent the creation
of the local account). This is not great but acceptable, since
creating a new account isn't very security-sensitive.
This also means the hook would not be useful during account
linking, as AuthManager does not do anything there, all the work
happens in the primary provider. This is even less great but
few authentication extensions implement account linking.

The hook is not called for authentication happening via
CreatedAccountAuthenticationRequest, which is a weird internal
hack hook handlers should not have to know about.

Also rename a confusingly named variable.

Change-Id: I835b2fe2f43e6e81f23348165cbb9c93832e6583
2024-08-26 23:57:31 +00:00