Commit graph

10 commits

Author SHA1 Message Date
Umherirrender 2b6f256a81 Use type-declaration on api module constructor
Parent class constructor gets type-declaration in 1145328459

Change-Id: Ibdf741544d701e3a95cc5cb5ba2cb950273445e1
2024-10-25 20:28:30 +02:00
Umherirrender c697355f04 Use namespaced classes
Changes to the use statements done automatically via script
Addition of missing use statement done manually

Change-Id: I230ada2f4ad95f86593759e8320d47acdf06a749
2024-10-20 13:21:21 +02:00
Umherirrender 0da96a7000 Use namespaced classes
Changes to the use statements done automatically via script
Addition of missing use statement done manually

Change-Id: If99e2c98969579306c7fdc626658bec5d6e26b5d
2024-06-10 22:00:22 +02:00
Umherirrender f5db77c750 Use namespaced classes
This requires 1.42 for some new names

Changes to the use statements done automatically via script
Addition of missing use statement done manually

Change-Id: I1b433ab02231087e0f84a734092751ce2cf28b2c
2024-01-04 22:22:56 +01:00
Umherirrender 3d1164f9a4 Use UserFactory::newFromUserIdentity/Title::castFromPageIdentity
As the revision is a local revision, the user identity can be used to
build a User. Not needed to use the id.

Same for the title/page id, where a PageIdentity already exists. Not
needed to use the id.

Change-Id: Ia088d964f75fb46bd0848c9aba8f5bc97ad7a067
2023-08-21 22:11:12 +02:00
Bartosz Dziewoński 7095811872 ApiCoreThank: Fix handling of hidden author of revision
Follow-up to ef903f25d7.

Bug: T344623
Change-Id: Id2f2ea08407fcc9a1cc60e5930e041ef3242ffd1
2023-08-21 16:12:36 +00:00
gerritbot e2ed94cff3 Replace some moved Title class uses, now MediaWiki\Title\Title
Bug: T321681
Change-Id: I491f0a12aaa4d70a4b6eccda3a478b223896feaa
2023-08-19 14:27:12 +00:00
Daimona Eaytoy 933f5591e5 Make ApiCoreThankIntegrationTest more robust
Use methods provided by core to create (non)existing test pages and
editing them. Make sure that revId is not 1, or the test will fail due
to T344475. This is needed by core change Ie2f1809d.

Change-Id: Ib7ea8c566d330db27c8abfcb4a783ddbd31787e0
2023-08-18 00:37:20 +00:00
Siddharth VP 6b71b859ee Use namespaced Echo classes
Change-Id: I1ff1d1772e615bc618ed2dd0080795cdfd98e79e
2023-06-09 23:16:35 +05:30
Marcin Kostrzewski e483b844c9 API: Refactor to match modern code standards
I've moved all API classes into a separate folder,
as I felt like grouping modules improves readability.
APIs themselves had storage logic which I extracted and put
in another folder. I was originally going with an interface
to the storage to allow for other storage methods than
log entries, but the code was too tightly coupled with it,
so I've left that for another day. Added dependency injection
for all services and used ServiceOptions for config vars.

Bug: T337002
Change-Id: Ie8a1f435d635e1d0e1286f673bfe96cc4fdfe4fe
2023-05-20 17:57:26 +03:00
Renamed from includes/ApiCoreThank.php (Browse further)