-
-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MW1.33+: Maintenance logging no longer works due to missing user #4077
Comments
Seriously!?! I'd say that worked before and it should work on 1.33+. I'm not going to invest any time into digging of what has changed, so please contact the responsible WMF developer and ask for support of how to remedy this regression. |
Reported with T225361. I guess in the end we need a sane way of automatically creating the respective users when installing SMW. |
After manually creating an account called "RebuildConceptCacheLogger" the logging works again. I know that MediaWiki automatically creates new users. Thus it should be possible to do so for Semantic MediaWiki too. Dunno how painful this is though. |
The following code used to work, raising an exception in MW 1.33+ because of some internal changes is a BC break and should go through a proper deprecation. Furthermore, I expect a migration path so that established functionality can be retained without breaking this in the next release again. SemanticMediaWiki/src/MediaWiki/ManualEntryLogger.php Lines 56 to 74 in 5b80143
I don't want to deal with any user/bot/session management as it pulls in MW dependencies and increases the likelihood for a breakage (evidence is this issue itself). |
The extend of my question on phabricator was not fully understood when it comes to the impact on other extensions but we got an answer. |
extensions but we got an answer.
If I interpret the answer from the cited phab ticket correctly then
the following change should restore known behaviour:
```
@@ -61,11 +61,11 @@ class ManualEntryLogger {
$logEntry = $this->newManualLogEntryForType( $type );
$logEntry->setTarget( Title::newFromText( $target ) );
if ( is_string( $performer) ) {
- $performer = User::newFromName( $performer );
+ $performer = User::newSystemUser( $performer, [ 'steal' => true ] );
}
```
…On 6/11/19, Karsten Hoffmeyer ***@***.***> wrote:
The extend of my question on phabricator was not fully understood when it
comes to the impact on other extensions but we got an answer.
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
#4077 (comment)
|
Let's see what happens. I can test with "rebuildFulltextSearchTable.php" |
Setup and configuration
Issue
Since the upgrade to MediaWiki 1.33.0-rc.0 the maintenance logging for the maintenance scripts by SMW no longer shown. Moreover it is no longer possible to create new entries using the
--with-maintenance-log
flag.Stacktrace
Steps to reproduce
Produces the following output followed by the stacktrace.
Notes
When applying the schema changes with
update.php
the following notes were issued when doingWhen running
maintenance/cleanupUsersWithNoId.php --prefix=sbxsmw
as instructed the result was:The text was updated successfully, but these errors were encountered: