-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdatapumppu_statements.yml
More file actions
55 lines (54 loc) · 1.52 KB
/
datapumppu_statements.yml
File metadata and controls
55 lines (54 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
langcode: en
status: true
dependencies:
enforced:
module:
- paatokset_ahjo_api
- paatokset_datapumppu
id: datapumppu_statements
field_plugin_method: null
cck_plugin_method: null
migration_tags:
- datapumppu_api
- datapumppu_api_statements
migration_group: datapumppu_api
label: 'Datapumppu API - Statements'
source:
plugin: datapumppu_statements
trustees: latest
# Some url is required by HttpSourcePluginBase.
url: 'https://hel-datapumppu.api.hel.fi'
process:
# Pseudofield: this does not exists on paatokset_statement entity.
formattedStartTime:
plugin: format_date
source: startTime
from_format: 'Y-m-d\TH:i:s'
to_format: 'Y-m-d\TH:i:s' # DateTimeItemInterface::DATETIME_STORAGE_FORMAT
from_timezone: Europe/Helsinki
to_timezone: UTC # DateTimeItemInterface::STORAGE_TIMEZONE
id:
# Lookup id so we can create translations. This assumes that all
# translations keep the same start time and that no two statements can
# start at the same time.
-
plugin: entity_lookup
entity_type: paatokset_statement
value_key: start_time
source: '@formattedStartTime'
-
plugin: skip_on_empty
method: process
langcode: langcode
title: title
speaker/target_id: trustee_nid
speech_type: speechType
start_time: '@formattedStartTime'
duration: durationSeconds
video_url: videoLink
case_number: caseNumber
meeting_id: meetingId
destination:
plugin: entity_complete:paatokset_statement
translations: true
migration_dependencies: { }