Skip to content

Commit

Permalink
Add EGIR config files to install directory in addition to Forløb config
Browse files Browse the repository at this point in the history
  • Loading branch information
Mads Nørgaard committed Sep 1, 2021
1 parent 1969805 commit 6fc5365
Show file tree
Hide file tree
Showing 47 changed files with 4,468 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
langcode: en
status: true
dependencies:
config:
- field.field.taxonomy_term.consultant_type.feeds_item
- field.field.taxonomy_term.consultant_type.field_user_key
- field.field.taxonomy_term.consultant_type.field_uuid
- taxonomy.vocabulary.consultant_type
module:
- path
- text
id: taxonomy_term.consultant_type.default
targetEntityType: taxonomy_term
bundle: consultant_type
mode: default
content:
description:
type: text_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_user_key:
weight: 101
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
field_uuid:
weight: 102
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
langcode:
type: language_select
weight: 2
region: content
settings:
include_locked: true
third_party_settings: { }
name:
type: string_textfield
weight: -5
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
path:
type: path
weight: 30
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
settings:
display_label: true
weight: 100
region: content
third_party_settings: { }
hidden:
feeds_item: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
langcode: en
status: true
dependencies:
config:
- field.field.taxonomy_term.orgunit.feeds_item
- field.field.taxonomy_term.orgunit.field_user_key
- field.field.taxonomy_term.orgunit.field_uuid
- taxonomy.vocabulary.orgunit
module:
- path
- text
id: taxonomy_term.orgunit.default
targetEntityType: taxonomy_term
bundle: orgunit
mode: default
content:
description:
type: text_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
field_user_key:
weight: 101
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
field_uuid:
weight: 102
settings:
size: 60
placeholder: ''
third_party_settings: { }
type: string_textfield
region: content
langcode:
type: language_select
weight: 2
region: content
settings:
include_locked: true
third_party_settings: { }
name:
type: string_textfield
weight: -5
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
path:
type: path
weight: 30
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
settings:
display_label: true
weight: 100
region: content
third_party_settings: { }
hidden:
feeds_item: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
langcode: en
status: true
dependencies:
config:
- field.field.taxonomy_term.consultant_type.feeds_item
- field.field.taxonomy_term.consultant_type.field_user_key
- field.field.taxonomy_term.consultant_type.field_uuid
- taxonomy.vocabulary.consultant_type
module:
- text
id: taxonomy_term.consultant_type.default
targetEntityType: taxonomy_term
bundle: consultant_type
mode: default
content:
description:
label: hidden
type: text_default
weight: 0
region: content
settings: { }
third_party_settings: { }
field_user_key:
weight: 1
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
field_uuid:
weight: 2
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
hidden:
entity_print_view_epub: true
entity_print_view_pdf: true
entity_print_view_word_docx: true
feeds_item: true
langcode: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
langcode: en
status: true
dependencies:
config:
- field.field.taxonomy_term.orgunit.feeds_item
- field.field.taxonomy_term.orgunit.field_user_key
- field.field.taxonomy_term.orgunit.field_uuid
- taxonomy.vocabulary.orgunit
module:
- text
id: taxonomy_term.orgunit.default
targetEntityType: taxonomy_term
bundle: orgunit
mode: default
content:
description:
label: hidden
type: text_default
weight: 0
region: content
settings: { }
third_party_settings: { }
field_user_key:
weight: 1
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
field_uuid:
weight: 2
label: above
settings:
link_to_entity: false
third_party_settings: { }
type: string
region: content
hidden:
entity_print_view_epub: true
entity_print_view_pdf: true
entity_print_view_word_docx: true
feeds_item: true
langcode: true
90 changes: 90 additions & 0 deletions config/install/feeds.feed_type.consultancies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
langcode: en
status: true
dependencies:
config:
- field.field.taxonomy_term.consultancy.field_user_key
- field.field.taxonomy_term.consultancy.field_uuid
- taxonomy.vocabulary.consultancy
module:
- feeds_ex
- os2forms_forloeb
- taxonomy
id: consultancies
label: Consultancies
description: 'Import consultancies from GIR'
help: "In order to import consultancies fro GIR, you must create a feed of this Feed Type and enter a feed URL like this:\r\n\r\n$GIR_TOPLEVEL_URL/service/ou/$EXTERNAL_UUID/children\r\n\r\nwhere $EXTERNAL_UUID is the \"top level\" UUID for the list of external companies."
import_period: 3600
fetcher: keycloakauth
fetcher_configuration:
auto_detect_feeds: 0
use_pubsubhubbub: 0
always_download: 0
fallback_hub: ''
request_timeout: '30'
parser: jsonpath
parser_configuration:
context:
value: '$.*'
sources:
name:
label: name
value: name
user_key:
label: user_key
value: user_key
uuid:
label: uuid
value: uuid
display_errors: false
source_encoding:
- auto
debug_mode: false
line_limit: 100
processor: 'entity:taxonomy_term'
processor_configuration:
langcode: en
update_existing: 2
update_non_existent: _delete
expire: -1
skip_hash_check: false
values:
vid: consultancy
owner_id: 0
authorize: false
owner_feed_author: false
custom_sources:
name:
label: name
value: name
machine_name: name
user_key:
label: user_key
value: user_key
machine_name: user_key
uuid:
label: uuid
value: uuid
machine_name: uuid
mappings:
-
target: name
map:
value: name
unique: { }
settings:
language: null
-
target: field_user_key
map:
value: user_key
unique: { }
settings:
language: null
-
target: field_uuid
map:
value: uuid
unique:
value: '1'
settings:
language: null
Loading

0 comments on commit 6fc5365

Please sign in to comment.