mediawiki/extensions/SemanticSifter (master)

sourcepatches
$ date
Thu Mar  4 06:07:17 UTC 2021

$ git clone file:///srv/git/mediawiki-extensions-SemanticSifter.git repo --depth=1 -b master
Cloning into 'repo'...

$ git config user.name libraryupgrader

$ git config user.email tools.libraryupgrader@tools.wmflabs.org

$ git submodule update --init

$ grr init
Installed commit-msg hook.

$ git show-ref refs/heads/master
9da712c0002299fc6eaae9d213db703f3043da78 refs/heads/master

$ composer install
Loading composer repositories with package information
Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2 is now available and you should upgrade. See https://getcomposer.org/2
Updating dependencies (including require-dev)
Package operations: 42 installs, 0 updates, 0 removals
  - Installing composer/installers (v1.10.0): Loading from cache
  - Installing symfony/polyfill-php80 (v1.22.1): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.22.1): Loading from cache
  - Installing symfony/polyfill-intl-normalizer (v1.22.1): Loading from cache
  - Installing symfony/polyfill-intl-grapheme (v1.22.1): Loading from cache
  - Installing symfony/polyfill-ctype (v1.22.1): Loading from cache
  - Installing symfony/string (v5.2.3): Loading from cache
  - Installing psr/container (1.0.0): Loading from cache
  - Installing symfony/service-contracts (v2.2.0): Loading from cache
  - Installing symfony/polyfill-php73 (v1.22.1): Loading from cache
  - Installing symfony/console (v5.2.3): Loading from cache
  - Installing mediawiki/minus-x (1.1.0): Loading from cache
  - Installing php-parallel-lint/php-console-color (v0.3): Loading from cache
  - Installing php-parallel-lint/php-console-highlighter (v0.5): Loading from cache
  - Installing php-parallel-lint/php-parallel-lint (v1.2.0): Loading from cache
  - Installing data-values/interfaces (0.2.5): Loading from cache
  - Installing data-values/data-values (2.3.0): Loading from cache
  - Installing data-values/validators (0.1.3): Loading from cache
  - Installing data-values/common (0.4.3): Loading from cache
  - Installing param-processor/param-processor (1.10.0): Loading from cache
  - Installing mediawiki/validator (2.2.3): Loading from cache
  - Installing justinrainbow/json-schema (5.2.10): Loading from cache
  - Installing seld/jsonlint (1.8.3): Loading from cache
  - Installing psr/log (1.1.3): Loading from cache
  - Installing react/promise (v2.8.0): Loading from cache
  - Installing ezimuel/guzzlestreams (3.0.1): Loading from cache
  - Installing ezimuel/ringphp (1.1.2): Loading from cache
  - Installing elasticsearch/elasticsearch (v6.8.0): Loading from cache
  - Installing symfony/css-selector (v3.4.47): Loading from cache
  - Installing onoi/shared-resources (0.4.3): Loading from cache
  - Installing wikimedia/textcat (1.3.0): Loading from cache
  - Installing wikimedia/cdb (1.4.1): Loading from cache
  - Installing onoi/tesa (0.1.0): Loading from cache
  - Installing onoi/callback-container (2.0.0): Loading from cache
  - Installing onoi/cache (1.2.0): Loading from cache
  - Installing onoi/http-request (1.3.1): Loading from cache
  - Installing onoi/blob-store (1.2.1): Loading from cache
  - Installing onoi/event-dispatcher (1.1.0): Loading from cache
  - Installing onoi/message-reporter (1.4.2): Loading from cache
  - Installing serialization/serialization (4.0.0): Loading from cache
  - Installing mediawiki/parser-hooks (1.6.1): Loading from cache
  - Installing mediawiki/semantic-media-wiki (3.2.2): Loading from cache
symfony/service-contracts suggests installing symfony/service-implementation
symfony/console suggests installing symfony/event-dispatcher
symfony/console suggests installing symfony/lock
symfony/console suggests installing symfony/process
elasticsearch/elasticsearch suggests installing monolog/monolog (Allows for client-level logging and tracing)
mediawiki/semantic-media-wiki suggests installing mediawiki/semantic-result-formats (Provides additional result formats for queries of structured data)
Writing lock file
Generating autoload files
15 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Upgrading n:eslint-config-wikimedia from 0.17.0 -> 0.18.1
$ npm install

> core-js@3.9.1 postinstall /src/repo/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

added 385 packages from 242 contributors and audited 385 packages in 105.295s

21 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities


$ npm update eslint -depth 10
+ eslint@7.21.0
added 7 packages from 4 contributors, removed 19 packages, updated 16 packages and audited 373 packages in 39.813s

20 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities


$ npm install grunt-eslint@23.0.0 --save-exact
+ grunt-eslint@23.0.0
removed 6 packages, updated 1 package and audited 367 packages in 39.621s

20 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities


$ ./node_modules/.bin/eslint i18n/hu.json i18n/fr.json i18n/lv.json i18n/pl.json Gruntfile.js resources/main/js/ext.semanticsifter.js package.json i18n/zh-hant.json i18n/br.json i18n/gl.json i18n/nb.json i18n/en.json i18n/ast.json i18n/roa-tara.json i18n/lb.json i18n/it.json i18n/de.json i18n/sco.json i18n/qqq.json package-lock.json i18n/pt.json i18n/ar.json composer.json i18n/pt-br.json i18n/zh-hans.json i18n/nl.json i18n/ksh.json i18n/mk.json i18n/ko.json i18n/fa.json i18n/ps.json i18n/tr.json i18n/ja.json i18n/ru.json i18n/es.json i18n/sv.json i18n/si.json i18n/uk.json --fix

/src/repo/resources/main/js/ext.semanticsifter.js
   6:3   warning  Prefer Array#forEach to $.each                                                      no-jquery/no-each-util
  19:2   warning  Prefer $() to .ready                                                                no-jquery/no-ready-shorthand
  20:7   warning  jQuery collection names must match the variablePattern                              no-jquery/variable-pattern
  20:19  warning  Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible  no-jquery/no-global-selector
  21:4   warning  jQuery collection names must match the variablePattern                              no-jquery/variable-pattern
  21:11  warning  Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible  no-jquery/no-global-selector
  26:6   warning  'data' is assigned a value but never used                                           no-unused-vars
  45:9   warning  All 'var' declarations must be at the top of the function scope                     vars-on-top
  45:9   warning  Combine this with the previous 'var' statement                                      one-var
  46:4   warning  Combine this with the previous 'var' statement                                      one-var
  46:4   warning  All 'var' declarations must be at the top of the function scope                     vars-on-top

✖ 11 problems (0 errors, 11 warnings)


$ ./node_modules/.bin/eslint i18n/hu.json i18n/fr.json i18n/lv.json i18n/pl.json Gruntfile.js resources/main/js/ext.semanticsifter.js package.json i18n/zh-hant.json i18n/br.json i18n/gl.json i18n/nb.json i18n/en.json i18n/ast.json i18n/roa-tara.json i18n/lb.json i18n/it.json i18n/de.json i18n/sco.json i18n/qqq.json package-lock.json i18n/pt.json i18n/ar.json composer.json i18n/pt-br.json i18n/zh-hans.json i18n/nl.json i18n/ksh.json i18n/mk.json i18n/ko.json i18n/fa.json i18n/ps.json i18n/tr.json i18n/ja.json i18n/ru.json i18n/es.json i18n/sv.json i18n/si.json i18n/uk.json -f json
[{"filePath":"/src/repo/Gruntfile.js","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/composer.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/ar.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/ast.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/br.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/de.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/en.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/es.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/fa.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/fr.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/gl.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/hu.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/it.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/ja.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/ko.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/ksh.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/lb.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/lv.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/mk.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/nb.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/nl.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/pl.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/ps.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/pt-br.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/pt.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/qqq.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/roa-tara.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/ru.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/sco.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/si.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/sv.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/tr.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/uk.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/zh-hans.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/i18n/zh-hant.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/package-lock.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/package.json","messages":[],"errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":[]},{"filePath":"/src/repo/resources/main/js/ext.semanticsifter.js","messages":[{"ruleId":"no-jquery/no-each-util","severity":1,"message":"Prefer Array#forEach to $.each","line":6,"column":3,"nodeType":"CallExpression","endLine":15,"endColumn":6},{"ruleId":"no-jquery/no-ready-shorthand","severity":1,"message":"Prefer $() to .ready","line":19,"column":2,"nodeType":"CallExpression","endLine":52,"endColumn":5},{"ruleId":"no-jquery/variable-pattern","severity":1,"message":"jQuery collection names must match the variablePattern","line":20,"column":7,"nodeType":"VariableDeclarator","endLine":20,"endColumn":39},{"ruleId":"no-jquery/no-global-selector","severity":1,"message":"Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible.","line":20,"column":19,"nodeType":"CallExpression","endLine":20,"endColumn":39},{"ruleId":"no-jquery/variable-pattern","severity":1,"message":"jQuery collection names must match the variablePattern","line":21,"column":4,"nodeType":"VariableDeclarator","endLine":21,"endColumn":35},{"ruleId":"no-jquery/no-global-selector","severity":1,"message":"Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible.","line":21,"column":11,"nodeType":"CallExpression","endLine":21,"endColumn":35},{"ruleId":"no-unused-vars","severity":1,"message":"'data' is assigned a value but never used.","line":26,"column":6,"nodeType":"Identifier","messageId":"unusedVar","endLine":26,"endColumn":10},{"ruleId":"vars-on-top","severity":1,"message":"All 'var' declarations must be at the top of the function scope.","line":45,"column":9,"nodeType":"VariableDeclaration","messageId":"top","endLine":45,"endColumn":16},{"ruleId":"one-var","severity":1,"message":"Combine this with the previous 'var' statement.","line":45,"column":9,"nodeType":"VariableDeclaration","messageId":"combine","endLine":45,"endColumn":16},{"ruleId":"one-var","severity":1,"message":"Combine this with the previous 'var' statement.","line":46,"column":4,"nodeType":"VariableDeclaration","messageId":"combine","endLine":46,"endColumn":46},{"ruleId":"vars-on-top","severity":1,"message":"All 'var' declarations must be at the top of the function scope.","line":46,"column":4,"nodeType":"VariableDeclaration","messageId":"top","endLine":46,"endColumn":46}],"errorCount":0,"warningCount":11,"fixableErrorCount":0,"fixableWarningCount":0,"source":"( function ( $, mw ) {\n\n\tfunction serializeObject( obj ) {\n\t\tvar o = {},\n\t\t\ta = obj.serializeArray();\n\t\t$.each( a, function () {\n\t\t\tif ( o[ this.name ] !== undefined ) {\n\t\t\t\tif ( !o[ this.name ].push ) {\n\t\t\t\t\to[ this.name ] = [ o[ this.name ] ];\n\t\t\t\t}\n\t\t\t\to[ this.name ].push( this.value || '' );\n\t\t\t} else {\n\t\t\t\to[ this.name ] = this.value || '';\n\t\t\t}\n\t\t} );\n\t\treturn o;\n\t}\n\n\t$( document ).ready( function () {\n\t\tvar container = $( '.ss-container' ),\n\t\t\tform = $( '.ss-filteringform' );\n\n\t\tform.each( function () {\n\t\t\t$( this ).on( 'submit', function () {\n\t\t\t\tvar filters = serializeObject( form ),\n\t\t\t\t\tdata = $.get(\n\t\t\t\t\t\tmw.util.wikiScript(),\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taction: 'ajax',\n\t\t\t\t\t\t\trs: 'SemanticSifter\\\\API\\\\API::filter',\n\t\t\t\t\t\t\trsargs: [ JSON.stringify( filters ) ]\n\t\t\t\t\t\t}\n\t\t\t\t\t).done( function ( response ) {\n\t\t\t\t\t\tvar uri = new mw.Uri();\n\t\t\t\t\t\turi.extend( { filter: response } );\n\t\t\t\t\t\twindow.location.href = uri;\n\t\t\t\t\t} );\n\n\t\t\t\treturn false;\n\t\t\t} );\n\t\t} );\n\n\t\tcontainer.find( '.ss-propertyfilter > select' ).chosen( { width: '100%' } );\n\n\t\tfor ( var key in window.SemanticSifter ) {\n\t\t\tvar config = window.SemanticSifter[ key ];\n\t\t\t$( '#' + key ).find( '.ss-propertyfilter' ).width( config[ 'filterbox-width' ] );\n\n\t\t}\n\n\t\tcontainer.fadeIn();\n\t} );\n}( jQuery, mediaWiki ) );\n","usedDeprecatedRules":[]}]

$ npm ci
npm WARN prepare removing existing node_modules/ before installation

> core-js@3.9.1 postinstall /src/repo/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

added 367 packages in 11.486s

$ npm test

> @ test /src/repo
> grunt test

Running "eslint:all" (eslint) task

/src/repo/resources/main/js/ext.semanticsifter.js
   6:3   warning  Prefer Array#forEach to $.each                                                      no-jquery/no-each-util
  19:2   warning  Prefer $() to .ready                                                                no-jquery/no-ready-shorthand
  20:7   warning  jQuery collection names must match the variablePattern                              no-jquery/variable-pattern
  20:19  warning  Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible  no-jquery/no-global-selector
  21:4   warning  jQuery collection names must match the variablePattern                              no-jquery/variable-pattern
  21:11  warning  Avoid queries which search the entire DOM. Keep DOM nodes in memory where possible  no-jquery/no-global-selector
  26:6   warning  'data' is assigned a value but never used                                           no-unused-vars
  45:9   warning  All 'var' declarations must be at the top of the function scope                     vars-on-top
  45:9   warning  Combine this with the previous 'var' statement                                      one-var
  46:4   warning  Combine this with the previous 'var' statement                                      one-var
  46:4   warning  All 'var' declarations must be at the top of the function scope                     vars-on-top

✖ 11 problems (0 errors, 11 warnings)


Running "banana:all" (banana) task
>> 1 message directory checked.

Done.

Upgrading c:mediawiki/minus-x from 1.1.0 -> 1.1.1
$ composer update
Loading composer repositories with package information
Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2 is now available and you should upgrade. See https://getcomposer.org/2
Updating dependencies (including require-dev)
Package operations: 0 installs, 1 update, 0 removals
  - Updating mediawiki/minus-x (1.1.0 => 1.1.1): Loading from cache
Writing lock file
Generating autoload files
15 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

$ composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files
15 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

$ composer test
> parallel-lint . --exclude vendor --exclude node_modules --exclude extensions
This file is an extension to the MediaWiki software and cannot be used standalone.
Script parallel-lint . --exclude vendor --exclude node_modules --exclude extensions handling the test event returned with error code 1

Traceback (most recent call last):
  File "/venv/lib/python3.7/site-packages/libup-0.0.1-py3.7.egg/libup/ng.py", line 1188, in main
    libup.run(args.repo, args.output, args.branch)
  File "/venv/lib/python3.7/site-packages/libup-0.0.1-py3.7.egg/libup/ng.py", line 1131, in run
    self.composer_upgrade(plan)
  File "/venv/lib/python3.7/site-packages/libup-0.0.1-py3.7.egg/libup/ng.py", line 684, in composer_upgrade
    self.composer_test()
  File "/venv/lib/python3.7/site-packages/libup-0.0.1-py3.7.egg/libup/ng.py", line 246, in composer_test
    self.check_call(['composer', 'test'])
  File "/venv/lib/python3.7/site-packages/libup-0.0.1-py3.7.egg/libup/shell.py", line 38, in check_call
    res.check_returncode()
  File "/usr/lib/python3.7/subprocess.py", line 428, in check_returncode
    self.stderr)
subprocess.CalledProcessError: Command '['composer', 'test']' returned non-zero exit status 1.

composer dependencies

Dependencies
Development dependencies

npm dependencies

Development dependencies

Logs

Source code is licensed under the AGPL.