提交图

87 次代码提交

作者 SHA1 备注 提交日期
gesinn-it-gea
7dda5fdd1d replace deprecated SMWStore::updateDataBefore hook with SMW::Store::BeforeDataUpdateComplete, CI: AR 1.8.1 → 1.8.2 2023-04-06 13:56:10 +02:00
Hamish
aafae4614d
Replace removed User::getRights (#206)
* Replace removed User::getRights

Deprecated since 1.34

[master]

* Replace removed User::getRights

Deprecated since 1.34

[master]

* Replace removed User::getRights

Deprecated since 1.34

[master]

* Replace removed User::getRights

Deprecated since 1.34

[master]

* Replace removed User::getRights

Deprecated since 1.34

[master]
2023-02-27 20:53:15 +01:00
Alexander Mashin
4c84ec0369 Increase code coverage 2022-02-10 02:31:16 +07:00
Alexander Mashin
4257ac1ab5 User edit count per namespace
Property type: record (formally page).
Property ID: '___USEREDITCNT'.
Property structure:

    '___USEREDITCNT_NS': _num (namespace number),
    '___USEREDITCNTNS_CNT': _num (user's edit count in this namespace).
    Property domain: User namespace.
    Property uniqueness: one value per namespace provided user has made edits in it.
    Property annotator class: UserEditCountPropertyAnnotator.
    Property annotator test class: UserEditCountPerNsPropertyAnnotatorTest.

{{#ask:}} query examples:

Edit count rating per user per namespace:
{{#ask:[[-User edit count per namespace::+]]
| mainlabel = -
| ?-User edit count per namespace
| ?Namespace
| ?Edit count
| sort = Edit count
| order = DESC
}}

Certain user's edits in the main namespace:
{{#ask:[[-User edit count per namespace::User:Alex Mashin]]
[[Namespace::0]]
| ?Edit count =
| mainlabel = -
}}

Made in reference to #169.
2022-02-10 01:30:32 +07:00
Alexander Mashin
944ba5048c Property type: record (formally page).
Property ID: '___USEREDITCNT'.
Property structure:
* '___USEREDITCNT_NS': _num (namespace number),
* '___USEREDITCNTNS_CNT': _num (user's edit count in this namespace).
Property domain: User namespace.
Property uniqueness: one value per namespace provided user has made edits in it.
Property annotator class: UserEditCountPropertyAnnotator.
Property annotator test class: UserEditCountPerNsPropertyAnnotatorTest.

{{#ask:}} query examples:

Edit count rating per user per namespace:
{{#ask:[[-User edit count per namesoace::+]]
| mainlabel = -
| ?-User edit count per namespace
| ?Namespace
| ?Edit count
| sort = Edit count
| order = DESC
}}

Certain user's edits in the main namespace:
{{#ask:[[-User edit count per namespace::User:Alex Mashin]]
[[Namespace::0]]
| ?Edit count =
| mainlabel = -
}}

Made in reference to #169.
2022-02-07 11:13:19 +07:00
Mark A. Hershberger
3c8052e188
Merge pull request #193 from harugon/pageimage
Add new property PageImage
2021-12-29 07:52:06 -05:00
Mark A. Hershberger
5b30ca2619
Merge pull request #191 from cicalese/namespace
Fix test coverage and nit
2021-12-29 07:41:08 -05:00
harugon
6193bf5a02 Adds support for __PAGEIMG PageImage (Extensions:PageImage)
[*] definitions.json
[*] PropertyAnnotator
[*] DispatchingPropertyAnnotator
[*] PropertyAnnotatorTest
[*] DispatchingPropertyAnnotatorTest
[*] qqq.json
2021-12-29 13:47:27 +09:00
cicalese
33d8c7d4b8 Add missing properties to DispatchingPropertyAnnotator 2021-12-28 19:45:21 -05:00
cicalese
4449fc218f Fix test coverage and nit 2021-12-28 18:05:30 -05:00
cicalese
3eedfe6d62 Added coverage 2021-12-28 10:57:56 -05:00
cicalese
d22801b05b Fix namespace extra special properties 2021-12-28 00:52:00 -05:00
Mark A. Hershberger
2c3b23c0d6
Fix up tests for namespace annotator 2021-12-27 15:44:27 -05:00
Mark A. Hershberger
313bfecd41
Use MW_INSTALL_PATH, if available, to find SMW test autoloader. 2021-12-27 14:32:11 -05:00
Alexander
2250a1602f
Merge pull request #176 from WikibaseSolutions/master
Include check to see if page exists when annotating page contributors
2021-11-22 11:07:12 +01:00
Marijn van Wezel
151050bf3f
Check whether page exists (#156) 2021-11-22 10:52:50 +01:00
Markus Wagenhofer
a6d86252bd Added void return type to setUp() to make tests running for MW-1.35
Fixes #174
2021-11-22 10:32:13 +01:00
Markus Wagenhofer
2457042ae4 Get SESP version from SESP_VERSION instead of SemanticExtraSpecialProperties::getVersion()
Fixes #174
2021-11-22 10:20:17 +01:00
Mark A. Hershberger
38b91d4ecc
Merge branch 'master' into github-actions 2021-08-27 12:42:59 -04:00
Mark A. Hershberger
5373c40b63
Remove always-load SemanticExtraSpecialProperties.php
* This involves fixing up the initialization of this function, of course.
* Also commit some NS fixups that I did will tracking down SemanticMediaWiki\SemanticMediaWiki#5054
2021-08-27 12:19:18 -04:00
Mark A. Hershberger
2011560616
Make better use of extension.json 2021-08-26 17:55:41 -04:00
Mark A. Hershberger
877ad0cfac
only expect exception for 1.36+ 2021-08-25 19:16:46 -04:00
Mark A. Hershberger
42b40122bb
Add an assertion so we have some success 2021-08-25 18:27:00 -04:00
Mark A. Hershberger
52fb261c9d
Update to use the new DatabaseBlock 2021-08-25 18:00:25 -04:00
Mark A. Hershberger
b5388d1a6f
Working exception test 2021-08-25 17:16:10 -04:00
Mark A. Hershberger
043bfabb43
throw exception looks for class? 2021-08-25 16:44:47 -04:00
Mark A. Hershberger
cf8e512831
Add TypeError exceptions when getId is not int 2021-08-25 16:32:27 -04:00
Mark A. Hershberger
4c022ed825
MW 136 requires titles to return true for canExist 2021-08-25 15:28:17 -04:00
Mark A. Hershberger
7b84050fc7
assertInternalType replacement 2021-08-24 23:48:58 -04:00
Mark A. Hershberger
d0ccb89611
setup signature 2021-08-24 21:53:55 -04:00
gesinn-it
5fe2c71764 updated Travis, use CI scripts 2021-02-24 14:59:18 +01:00
Mark A. Hershberger
6f5178db0f
Introduce ns property
* Also use use AR to fetch AR properties
2021-01-23 18:45:29 -05:00
Jeroen De Dauw
c039f653d6
Update install-mediawiki.sh 2020-08-09 15:26:47 +02:00
mwjames
6c1e5bf283
Fix "Call to undefined method ... setExpectedException" 2020-02-08 23:50:57 +00:00
Karsten Hoffmeyer
d1c9378311 Fix exception at failed time string parsing (#114) 2019-05-25 22:17:37 +00:00
mwjames
fe914d39b9
Rename settings, refs 92 (#105) 2018-09-30 13:54:32 +00:00
mwjames
7657842f3e
Add wfLoadExtension( "SemanticMediaWiki" ) to test
SemanticMediaWiki/SemanticMediaWiki#1732
2018-03-31 21:59:03 +00:00
mwjames
b029dfdc8c
Support extension.json (#103) 2018-03-31 10:39:29 +00:00
mwjames
b8cf0d9c8c
Tidy (#102) 2018-03-24 18:26:10 +00:00
mwjames
dda6b298f8
Add User group, User right, and User block, refs 80 (#100) 2018-03-24 15:15:47 +00:00
mwjames
e619ac6b0a Fix styling issues, refs #98 2018-02-03 22:37:01 +09:00
Mark A. Hershberger
1fe2bcd01c Add additional properties for AR (#98) 2018-02-03 13:25:14 +00:00
Mark A. Hershberger
9107ad2340 Add ability to track information from ApprovedRevisions (#95) 2017-12-30 16:03:34 +00:00
Karsten Hoffmeyer
13f9011ba3 Convert to PHP 5.4+ short array syntax (#86) 2017-06-10 12:43:12 +02:00
mwjames
7189a8383d Add LabelFetcher with cache layer (#85) 2017-06-10 09:21:43 +00:00
mwjames
49ddd39ed8 Add DispatchingPropertyAnnotator (#84) 2017-06-10 09:04:51 +00:00
mwjames
1ef9a9a506 Add tests (#83) 2017-06-10 08:35:30 +00:00
mwjames
c775f5adab Check null on edit count, refs 77 (#82) 2017-06-10 08:19:30 +00:00
mwjames
5ce8bdc274 2.0 refactoring (#75) 2017-06-04 11:10:13 +00:00
mwjames
1599a7d576 Update HookRegistryTest.php 2016-12-31 04:36:35 +00:00