Page MenuHomePhabricator

[Story] Add WikibaseQualityConstraints to the docker image & configure?
Open, LowPublic

Description

It would be fabulous if we could just say "yes I want quality constraints in my own wikibase" and automatically populate the instance with all the necessary items and properties to define the constraints.

To do

  • Add WikibaseQualityConstraints extension to the bundle images
  • Update the bundle documentation with a docker exec snippet that runs the extension's data-import script and updates the configuration accordingly. (inspiration on the command doc)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Addshore triaged this task as Medium priority.Jun 26 2018, 4:14 PM
Vvjjkkii renamed this task from Add WikibaseQualityConstraints to the docker image to sqaaaaaaaa.Jul 1 2018, 1:03 AM
Vvjjkkii raised the priority of this task from Medium to High.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
CommunityTechBot renamed this task from sqaaaaaaaa to Add WikibaseQualityConstraints to the docker image.Jul 2 2018, 4:40 AM
CommunityTechBot lowered the priority of this task from High to Medium.
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot added a subscriber: Aklapper.
Addshore renamed this task from Add WikibaseQualityConstraints to the docker image to [Story] Add WikibaseQualityConstraints to the docker image & configure?.Jul 18 2019, 3:34 PM

The only part of this that remains is the documentation update

Addshore lowered the priority of this task from Medium to Low.Jan 27 2020, 3:25 PM

Hi, when this is ready I'm eager to test it. I imported the properties I need from Wikidata with the corresponding constrain properties, e.g.

https://linkedopendata.eu/wiki/Property:P73

As far as I understand I need only to map the wikidata config file with the wikidata constrained properties to the once used in our wikibase.

Thank you
D063520

The only part of this that remains is the documentation update

I'm not sure this is correct, I tried to pick it up but I don't see anything that says WBQC is going to be installed automatically in Dockerfile: https://github.com/wmde/wikibase-docker/blob/master/wikibase/1.34/bundle/Dockerfile

So you need to do whole dance of downloading the extension in the bundle then if the user wants to install it, they can add it to LocalSettings.php and then run something like `
docker-compose exec wikibase php /var/www/html/extensions/WikibaseQualityConstraints/maintenance/ImportConstraintEntities.php` Am I misunderstanding the AC very wrong?

and then run something like docker-compose exec wikibase php /var/www/html/extensions/WikibaseQualityConstraints/maintenance/ImportConstraintEntities.php Am I misunderstanding the AC very wrong?

And append the output of that to the LocalSettings.php, too.

and then run something like docker-compose exec wikibase php /var/www/html/extensions/WikibaseQualityConstraints/maintenance/ImportConstraintEntities.php Am I misunderstanding the AC very wrong?

And append the output of that to the LocalSettings.php, too.

Yeah but that's not the point here :D

@Ladsgroup looks like I go confused by both the merging in of T243066 and declining of T228439 and I misread that as believing the extension was already include..

Addshore updated the task description. (Show Details)

Needs to be prioritized by product.

Hi,

so as far I can see this plugin is not integrated into wikibase containers yet. I tried to install it manually. I followed the instructions here:

https://github.com/wikimedia/mediawiki-extensions-WikibaseQualityConstraints

What I did was:

  • Clone WikibaseQualityConstraints inside the extensions/
  • Install dependencies.
  • Load the extension.
  • Run php maintenance/update.php --quick.

When I then go to Special Pages I get:

[a599e442414423d40b3991ca] 2020-10-04 18:07:29: Fatal exception of type "Error"

If I remove the extension, i.e. uncomment the import in the LocalSettings.php the error goes away. Any hint how to debug it?

https://www.mediawiki.org/wiki/Manual:How_to_debug

Specifically, setting $wgShowExceptionDetails = true will probably help here.

https://www.mediawiki.org/wiki/Manual:How_to_debug

Specifically, setting $wgShowExceptionDetails = true will probably help here.

thank you, it was a problem of version, basically I have mediawiki 1.34 and the master brench of the plugin is mediawiki 1.35

The wikibase-docker git repository will be going away

This request is probably still relevant for the new images, so moving to Wikibase Release Strategy