Skip to content

Commit

Permalink
Merge pull request #851 from UN-OCHA/feature/ai-chat-and-jobs
Browse files Browse the repository at this point in the history
Feature/ai chat and jobs
  • Loading branch information
attiks committed Jul 24, 2024
2 parents f48be0c + a076636 commit a9699dc
Show file tree
Hide file tree
Showing 27 changed files with 1,695 additions and 51 deletions.
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions config/core.entity_form_display.node.job.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies:
- field.field.node.job.field_import_hash
- field.field.node.job.field_job_closing_date
- field.field.node.job.field_job_experience
- field.field.node.job.field_job_tagger_queue_count
- field.field.node.job.field_job_type
- field.field.node.job.field_source
- field.field.node.job.field_theme
Expand Down Expand Up @@ -189,6 +190,7 @@ hidden:
created: true
field_import_guid: true
field_import_hash: true
field_job_tagger_queue_count: true
langcode: true
promote: true
reliefweb_job_tagger_info: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ langcode: en
status: true
dependencies:
config:
- field.field.taxonomy_term.theme.field_example_job_posting
- taxonomy.vocabulary.theme
module:
- allowed_formats
Expand All @@ -23,6 +24,14 @@ content:
allowed_formats:
hide_help: '1'
hide_guidelines: '1'
field_example_job_posting:
type: string_textarea
weight: 26
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
name:
type: string_textfield
weight: 0
Expand Down
2 changes: 2 additions & 0 deletions config/core.entity_view_display.node.job.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies:
- field.field.node.job.field_import_hash
- field.field.node.job.field_job_closing_date
- field.field.node.job.field_job_experience
- field.field.node.job.field_job_tagger_queue_count
- field.field.node.job.field_job_type
- field.field.node.job.field_source
- field.field.node.job.field_theme
Expand Down Expand Up @@ -114,6 +115,7 @@ content:
hidden:
field_import_guid: true
field_import_hash: true
field_job_tagger_queue_count: true
langcode: true
links: true
reliefweb_job_tagger_info: true
Expand Down
2 changes: 2 additions & 0 deletions config/core.entity_view_display.node.job.teaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dependencies:
- field.field.node.job.field_import_hash
- field.field.node.job.field_job_closing_date
- field.field.node.job.field_job_experience
- field.field.node.job.field_job_tagger_queue_count
- field.field.node.job.field_job_type
- field.field.node.job.field_source
- field.field.node.job.field_theme
Expand Down Expand Up @@ -58,6 +59,7 @@ hidden:
field_import_guid: true
field_import_hash: true
field_job_experience: true
field_job_tagger_queue_count: true
field_job_type: true
field_theme: true
langcode: true
Expand Down
24 changes: 24 additions & 0 deletions config/core.entity_view_display.taxonomy_term.theme.default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
uuid: 987d381c-774a-4e6a-ae66-f8252c87861e
langcode: en
status: true
dependencies:
config:
- field.field.taxonomy_term.theme.field_example_job_posting
- taxonomy.vocabulary.theme
module:
- text
id: taxonomy_term.theme.default
targetEntityType: taxonomy_term
bundle: theme
mode: default
content:
description:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 0
region: content
hidden:
field_example_job_posting: true
langcode: true
25 changes: 25 additions & 0 deletions config/field.field.node.job.field_job_tagger_queue_count.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
uuid: ac87ff1a-b49d-47f9-8b81-6a3d30212913
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_job_tagger_queue_count
- node.type.job
id: node.job.field_job_tagger_queue_count
field_name: field_job_tagger_queue_count
entity_type: node
bundle: job
label: 'Job tagger queue count'
description: ''
required: false
translatable: false
default_value:
-
value: 0
default_value_callback: ''
settings:
min: 0
max: null
prefix: ''
suffix: ''
field_type: integer
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 95dd0b94-6bd9-48fa-94b4-58b69fb00763
langcode: en
status: true
dependencies:
config:
- field.storage.taxonomy_term.field_example_job_posting
- taxonomy.vocabulary.theme
id: taxonomy_term.theme.field_example_job_posting
field_name: field_example_job_posting
entity_type: taxonomy_term
bundle: theme
label: 'Example job posting'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long
20 changes: 20 additions & 0 deletions config/field.storage.node.field_job_tagger_queue_count.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: a8443d1d-5ac8-4d42-b340-a7dc9726ef51
langcode: en
status: true
dependencies:
module:
- node
id: node.field_job_tagger_queue_count
field_name: field_job_tagger_queue_count
entity_type: node
type: integer
settings:
unsigned: false
size: normal
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
3 changes: 3 additions & 0 deletions config/field.storage.node.reliefweb_job_tagger_status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ settings:
-
value: processed
label: processed
-
value: skipped
label: skipped
allowed_values_function: ''
module: options
locked: true
Expand Down
2 changes: 1 addition & 1 deletion config/ocha_ai_tag.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ defaults:
text_splitter:
plugin_id: token
vector_store:
plugin_id: elasticsearch
plugin_id: elasticsearch_job
completion:
plugin_id: aws_bedrock
source:
Expand Down
2 changes: 2 additions & 0 deletions config/user.role.beta_tester.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ status: true
dependencies:
module:
- ocha_ai_chat
- reliefweb_job_tagger
id: beta_tester
label: 'Beta tester'
weight: 7
is_admin: null
permissions:
- 'access ocha ai chat'
- 'test ocha ai job tag'
Loading

0 comments on commit a9699dc

Please sign in to comment.