wiki.techinc.nl/includes/logging
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
..
Hook Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
BlockLogFormatter.php User: use ActorNormalization to insert actor 2021-04-15 13:42:39 -07:00
ContentModelLogFormatter.php Convert logging namespace to Authority 2021-02-23 21:58:37 +00:00
DatabaseLogEntry.php Deprecate LogEntry::getPerformer in favor of ::getPerformerIdentity 2021-03-01 15:27:42 +02:00
DeleteLogFormatter.php Convert logging namespace to Authority 2021-02-23 21:58:37 +00:00
ImportLogFormatter.php Fix MediaWiki.Commenting.LicenseComment.InvalidLicenseTag errors 2018-05-23 16:23:42 -07:00
LegacyLogFormatter.php Hooks::run() call site migration 2020-05-30 14:23:28 +00:00
LogEntry.php Introduce LogEntry::getPerformerIdentity and deprecate ::getPerformer 2021-02-17 19:12:22 +02:00
LogEntryBase.php Unsuppress more phan issues (part 3) 2019-08-31 16:38:55 +00:00
LogEventsList.php Move several legacy style rules to existing dedicated modules 2021-03-26 20:39:39 +01:00
LogFormatter.php Convert logging namespace to Authority 2021-02-23 21:58:37 +00:00
LogPage.php Convert LogPage to UserIdentity 2021-03-23 12:02:40 -06:00
LogPager.php Deprecate UserIdentity::getActorId() 2021-03-13 19:45:57 +01:00
ManualLogEntry.php Deprecate LogEntry::getPerformer in favor of ::getPerformerIdentity 2021-03-01 15:27:42 +02:00
MergeLogFormatter.php Convert logging namespace to Authority 2021-02-23 21:58:37 +00:00
MoveLogFormatter.php Convert logging namespace to Authority 2021-02-23 21:58:37 +00:00
NewUsersLogFormatter.php Fix MediaWiki.Commenting.LicenseComment.InvalidLicenseTag errors 2018-05-23 16:23:42 -07:00
PageLangLogFormatter.php Remove usages of deprecated Language methods 2020-02-16 00:45:48 +00:00
PatrolLog.php Convert RecentChange::doMarkPatrolled to Authority 2021-03-03 20:23:56 -07:00
PatrolLogFormatter.php build: Enable phan-taint-check-plugin and suppress issues 2020-12-30 19:02:22 +01:00
ProtectLogFormatter.php Convert logging namespace to Authority 2021-02-23 21:58:37 +00:00
RCDatabaseLogEntry.php Deprecate LogEntry::getPerformer in favor of ::getPerformerIdentity 2021-03-01 15:27:42 +02:00
RightsLogFormatter.php Use static closures where safe to use 2021-02-11 00:13:52 +00:00
TagLogFormatter.php build: Enable phan-taint-check-plugin and suppress issues 2020-12-30 19:02:22 +01:00
UploadLogFormatter.php Fix MediaWiki.Commenting.LicenseComment.InvalidLicenseTag errors 2018-05-23 16:23:42 -07:00
WikitextLogFormatter.php Fix MediaWiki.Commenting.LicenseComment.InvalidLicenseTag errors 2018-05-23 16:23:42 -07:00