mediawiki/extensions/WikibaseLexeme (REL1_31)

sourcepatches
$ date
Thu Jun 10 23:03:25 UTC 2021

$ git clone file:///srv/git/mediawiki-extensions-WikibaseLexeme.git repo --depth=1 -b REL1_31
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/REL1_31
7d3e13346d0b0b494a6a8ab8a7890f3b835f78e1 refs/heads/REL1_31

$ composer install
Loading composer repositories with package information
                                                      Warning from https://repo.packagist.org: Support for Composer 1 is deprecated and some packages will not be available. You should upgrade to Composer 2. See https://blog.packagist.com/deprecating-composer-1-support/
Updating dependencies (including require-dev)
Package operations: 42 installs, 0 updates, 0 removals
  - Installing giorgiosironi/eris (dev-master 34ca017): Cloning 34ca017890 from cache
  - Installing patchwork/utf8 (v1.3.3): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing doctrine/lexer (1.2.1): Downloading (connecting...)Downloading (0%)           Downloading (100%)
  - Installing psr/cache (1.0.1): Loading from cache
  - Installing doctrine/annotations (1.13.1): Downloading (connecting...)Downloading (0%)           Downloading (15%)Downloading (30%)Downloading (45%)Downloading (60%)Downloading (85%)Downloading (100%)
  - Installing doctrine/reflection (1.2.2): Downloading (connecting...)Downloading (0%)           Downloading (15%)Downloading (30%)Downloading (45%)Downloading (60%)Downloading (75%)Downloading (90%)Downloading (100%)
  - Installing doctrine/event-manager (1.1.1): Loading from cache
  - Installing doctrine/collections (1.6.7): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (100%)
  - Installing doctrine/cache (1.11.3): Loading from cache
  - Installing doctrine/persistence (1.3.8): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (100%)
  - Installing doctrine/inflector (1.4.4): Downloading (connecting...)Downloading (0%)           Downloading (15%)Downloading (40%)Downloading (55%)Downloading (80%)Downloading (95%)Downloading (100%)
  - Installing doctrine/common (2.13.3): Downloading (connecting...)Downloading (0%)           Downloading (20%)Downloading (30%)Downloading (50%)Downloading (70%)Downloading (90%)Downloading (100%)
  - Installing icomefromthenet/reverse-regex (v0.0.6.3): Downloading (connecting...)Downloading (100%)         
  - Installing symfony/polyfill-php80 (v1.23.0): Loading from cache
  - Installing psr/log (1.1.4): Loading from cache
  - Installing symfony/debug (v4.4.25): Loading from cache
  - Installing symfony/polyfill-mbstring (v1.23.0): Loading from cache
  - Installing symfony/console (v3.4.47): Loading from cache
  - Installing mediawiki/minus-x (0.3.1): Loading from cache
  - Installing jakub-onderka/php-console-color (v0.2): Loading from cache
  - Installing php-parallel-lint/php-console-highlighter (v0.3.2): Loading from cache
  - Installing php-parallel-lint/php-parallel-lint (v1.0.0): Loading from cache
  - Installing squizlabs/php_codesniffer (3.3.1): Loading from cache
  - Installing composer/spdx-licenses (1.3.0): Loading from cache
  - Installing composer/semver (1.4.2): Loading from cache
  - Installing mediawiki/mediawiki-codesniffer (19.1.0): Loading from cache
  - Installing wikibase/wikibase-codesniffer (0.5.1): Loading from cache
  - Installing serialization/serialization (3.2.2): Loading from cache
  - Installing data-values/data-values (1.1.1): Loading from cache
  - Installing data-values/serialization (1.2.4): Loading from cache
  - Installing wikimedia/assert (v0.2.2): Loading from cache
  - Installing wikibase/data-model (7.5.0): Loading from cache
  - Installing wikibase/data-model-serialization (2.9.1): Loading from cache
  - Installing diff/diff (2.3.0): Loading from cache
  - Installing wikibase/data-model-services (3.15.0): Loading from cache
  - Installing wmde/php-vuejs-templating (dev-master f0c35ef): Cloning f0c35ef087 from cache
  - Installing symfony/translation-contracts (v2.4.0): Downloading (connecting...)Downloading (0%)           Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing symfony/translation (v4.4.25): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing symfony/polyfill-ctype (v1.23.0): Loading from cache
  - Installing symfony/validator (v3.4.47): Downloading (connecting...)Downloading (0%)           Downloading (5%)Downloading (10%)Downloading (15%)Downloading (20%)Downloading (25%)Downloading (30%)Downloading (35%)Downloading (40%)Downloading (45%)Downloading (50%)Downloading (55%)Downloading (60%)Downloading (65%)Downloading (70%)Downloading (75%)Downloading (80%)Downloading (85%)Downloading (90%)Downloading (95%)Downloading (100%)
  - Installing davidrjonas/composer-lock-diff (1.5.1): Downloading (connecting...)Downloading (100%)         
  - Installing hamcrest/hamcrest-php (v2.0.1): Loading from cache
giorgiosironi/eris suggests installing phpunit/phpunit (Standard way to run generated test cases)
patchwork/utf8 suggests installing ext-wfio (Use WFIO for UTF-8 filesystem access on Windows)
doctrine/cache suggests installing alcaeus/mongo-php-adapter (Required to use legacy MongoDB driver)
symfony/console suggests installing symfony/event-dispatcher
symfony/console suggests installing symfony/lock
symfony/console suggests installing symfony/process
php-parallel-lint/php-parallel-lint suggests installing jakub-onderka/php-console-highlighter (Highlight syntax in code snippet)
wikibase/data-model-serialization suggests installing data-values/geo (Needed for deserialization of geographical values)
wikibase/data-model-serialization suggests installing data-values/number (Needed for deserialization of numerical values)
wikibase/data-model-serialization suggests installing data-values/time (Needed for deserialization of time values)
symfony/translation suggests installing symfony/config
symfony/translation suggests installing symfony/yaml
symfony/validator suggests installing psr/cache-implementation (For using the metadata cache.)
symfony/validator suggests installing symfony/http-foundation
symfony/validator suggests installing symfony/intl
symfony/validator suggests installing symfony/yaml
symfony/validator suggests installing symfony/config
symfony/validator suggests installing egulias/email-validator (Strict (RFC compliant) email validation)
symfony/validator suggests installing symfony/property-access (For accessing properties within comparison constraints)
symfony/validator suggests installing symfony/expression-language (For using the Expression validator)
Package patchwork/utf8 is abandoned, you should avoid using it. Use symfony/polyfill-mbstring or symfony/string instead.
Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.
Package jakub-onderka/php-console-color is abandoned, you should avoid using it. Use php-parallel-lint/php-console-color instead.
Package wikibase/wikibase-codesniffer is abandoned, you should avoid using it. Use mediawiki/mediawiki-codesniffer instead.
Writing lock file
Generating autoload files
15 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Attempting to npm audit fix
$ npm audit fix --only=dev
added 446 packages from 662 contributors in 10.546s

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

fixed 0 of 33 vulnerabilities in 446 scanned packages
  26 vulnerabilities required manual review and could not be updated
  4 package updates for 7 vulnerabilities involved breaking changes
  (use `npm audit fix --force` to install breaking changes; or refer to `npm audit` for steps to fix these manually)

$ npm audit fix --only=dev
up to date in 2.568s

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

fixed 0 of 33 vulnerabilities in 446 scanned packages
  26 vulnerabilities required manual review and could not be updated
  4 package updates for 7 vulnerabilities involved breaking changes
  (use `npm audit fix --force` to install breaking changes; or refer to `npm audit` for steps to fix these manually)

$ npm audit fix --only=dev
up to date in 2.152s

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

fixed 0 of 33 vulnerabilities in 446 scanned packages
  26 vulnerabilities required manual review and could not be updated
  4 package updates for 7 vulnerabilities involved breaking changes
  (use `npm audit fix --force` to install breaking changes; or refer to `npm audit` for steps to fix these manually)

$ package-lock-lint package-lock.json
0 issues found in: package-lock.json

Verifying that tests still pass
$ npm ci
npm WARN prepare removing existing node_modules/ before installation
added 446 packages in 8.333s

$ npm test

> @ test /src/repo
> grunt test

Running "eslint:all" (eslint) task

Running "jsonlint:all" (jsonlint) task
>> 56 files lint free.

Running "banana:all" (banana) task
>> 81 messages checked.

Running "jasmine_nodejs:all" (jasmine_nodejs) task

>> Executing 37 defined specs...

Test Suites & Specs:

1) wikibase.lexeme.widgets.LexemeHeader.newLexemeHeaderStore
   ✔ mutation startSaving switches the isSaving flag to true
You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html
   ✔ action save calls API with correct parameters and changes state using data from response
   ✔ mutation finishSaving switches the isSaving flag to false
   ✔ mutation updateLanguage changes lexical category and the link to given values
   ✔ action save calls API with correct parameters when removing an item from the state
   ✔ mutation updateRevisionId changes baseRevId to given value
   ✔ mutation updateLanguage changes language and languageLink to given values
   ✔ action save on success mutates the state to start saving, updates state and finishes saving

2) wikibase.lexeme.widgets.RepresentationWidget
   ✔ switches to edit mode when editing
   ✔ is not in edit mode after editing is stopped
   ✔ adds an empty representation on add
   ✔ can remove a representation
   ✔ cannot add representation if not in edit mode
   ✔ cannot remove representation if not in edit mode
   ✔ adds a new empty representation when editing the widget with no representations
   ✔ is not in edit mode after being created
   ✔ shows only the representation it contains when editing the widget with some representation

3) wikibase.lexeme.widgets.LemmaWidget
   ✔ initialize widget with one lemma
   ✔ edit mode is true
   ✔ add a new lemma
   ✔ edit mode is false
   ✔ remove a lemma

4) wikibase.lexeme.widgets.GlossWidget
   ✔ stop editing
   ✔ initialize widget with one gloss
   ✔ removes empty glosses when saved
   ✔ remove a gloss
   ✔ add a new gloss
   ✔ switch to edit mode
   ✔ create with no glosses - when switched to edit mode empty gloss is added

5) wikibase.lexeme.widgets.LexemeHeader
   ✔ passes lemmas to LemmaWidget
   ✔ save lemma list with error
   ✔ switch to edit mode
   ✔ save lemma list
   ✔ cancel edit mode
   ✔ passes language and lexical category to LanguageAndLexicalCategoryWidget

6) wikibase.lexeme.widgets.LanguageAndLexicalCategoryWidget
   ✔ switches to edit mode and back
   ✔ shows the language and the lexical category

>> Done!


Summary:

Suites:  6 of 6
Specs:   37 of 37
Expects: 0 (0 failures)
Finished in 0.367 seconds

>> Successful!

Done.

$ package-lock-lint package-lock.json
0 issues found in: package-lock.json

$ git add .

$ git commit -F /tmp/tmp67iwja5u
On branch REL1_31
Your branch is up to date with 'origin/REL1_31'.

nothing to commit, working tree clean

composer dependencies

Dependencies
Development dependencies

npm dependencies

Development dependencies

Logs

Source code is licensed under the AGPL.