Page MenuHomePhabricator

Workflow to create special properties and items at boot stage
Closed, DuplicatePublic

Description

Problem

Some components (either Wikibase itself or some extensions) rely on special properties or items which have a special behavior. For instance, Wikibase has a $formatterUrlProperty configuration variable which expects a PID. This property is then used to render values for external identifiers. The Quality Constraints extension relies on bazillions of special PIDs and QIDs to define the constraints. The OpenRefine reconciliation interface also relies on some (instance of, subclass of…).

We need a workflow to set up these magic properties.

Currently

  • Boot your Wikibase with Docker
  • Manually login as WikibaseAdmin and create the properties / items
  • Put the properties / ids of these entities in the various config files of the various components that require them
  • Reboot Wikibase.

Ideally

As the docker-compose config grows and integrates more services (such as the ones mentioned above), it will become quite inconvenient to create all these special entities manually. It seems hard to do this process completely automatically as part of the Docker boot process (since we can't really avoid restarting Wikibase after formatterUrlProperty has been set), but there could be a maintenance script that creates all these special entities and store their ids in a file that is accessible to all relevant Docker containers, which would then feed these ids into their own config files.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

I moved my comment to the other ticket.
I'll also merge the 2 task descriptions as these are essentially about the same thing.