-
Notifications
You must be signed in to change notification settings - Fork 26
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
1.25 / WikiPage::getCount is gone #47
Comments
Indeed it will be nice to have a check for the presence of the HitCounters extension. Hope to do a field test if both extensions play soon. |
Nope, they do not play. SESP creates the respective table for the views however no views a piped into it. The special property for views does not show up. |
I expected it to crash since
As expected because SESP only looks for |
Ah, so the way out should be provided by the HitCounters extension. I will give Mark a ping about it and depending on his assessment we will probably kill this in SESP or not if there is no other way. |
@hexmode Any chance of getting Composer support for |
@hexmode What is the replacement for |
HitCounters::getCount( $title ) |
mwjames writes:
Certainly, but I don't have time right now. I'd happily take a patch... |
It would be helpful to me for this issue to be resolved. What is the next step in moving it forward? Is composer support in HitCounters the only limitation? |
From what I got out of this implementing |
It would certainly help to clarify the dependency together with a spaghetti check that contains something like (under the expectation that
|
Adding composter support is probably something for @paladox He worked on the HitCounters extension in the past too. Just a suggestion though. |
No. |
Thanks for the insight @paladox I am in an land of confusion now but I guess this is just the way it is. Dunno what to say or write. |
Let's focus on the actual issue: #47 (comment) |
This what the WMF has decided, this isn't true for SMW or its extension and since we don't adhere a WMF regime we will not stop supporting this just because someone decided to do so. |
Ok. |
So, if I test mwjames' suggested patch above with HitCounters,and it works, and I submit a pull request with the modified code, will the pull request be merged even if HitCounters does not yet support composer? |
Of course (given that tests are passed). PS: Any contribution and engagement is welcome. |
Great! I will do so. |
The suggested code worked great with one minor modification to include the HitCounters namespace. |
@cicalese will you submit this as a pull request? |
Sorry! I forgot the last step in creating the pull request. It is submitted now. |
I'm guessing
https://github.com/SemanticMediaWiki/SemanticExtraSpecialProperties/blob/master/src/Annotator/ExtraPropertyAnnotator.php#L206-L209
will fail now that
WikiPage::getCount()
is gone in 1.25 (wikimedia/mediawiki@90d90da#diff-a0f7feeaae57e9d2c735c8919c16ad15)See also https://gerrit.wikimedia.org/r/#/c/221427/.
@kghbln Maybe something to follow-up? / https://www.mediawiki.org/wiki/Extension:HitCounters
The text was updated successfully, but these errors were encountered: