Skip to content

Latest commit

 

History

History
14 lines (7 loc) · 936 Bytes

File metadata and controls

14 lines (7 loc) · 936 Bytes

Datapumppu integration

Datapumppu API serves speaking turns for trustees. These speaking turns are listed on trustee pages.

The integration uses Drupal migration to fetch speaking turns to Statement entities. The migration is called in a cron job by run-datapumppu-integration.sh.

Known issues

Datapumppu API uses trustee names as ids. This is a somewhat unreliable. There has been issues with Ahjo API having different spelling for trustee names that Datapumppu. For this reason, trustee entity type has field_trustee_datapumppu_id, which can be used to override the name from Ahjo in Datapumppu queries.

Troubleshooting

Drush command drush datapumppu:all-trustee-statements can be used for advanced manipulation of the statement entities. Refer to --help for options.