Skip to content

Commit

Permalink
HPC-9779: Add year as prefilled taxonomy, add unique term name constr…
Browse files Browse the repository at this point in the history
…aints to all 4 new taxonomies, add computed_field module to allow for consolidated tag output and filtering in the backend lists, change graphql output to use the merged tags from all 4 supported taxonomies
  • Loading branch information
berliner committed Oct 30, 2024
1 parent 8af6108 commit 8ff2718
Show file tree
Hide file tree
Showing 40 changed files with 1,224 additions and 94 deletions.
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"drupal/bulk_update_fields": "^2.0@alpha",
"drupal/classy": "^1.0",
"drupal/components": "^3.0.0",
"drupal/computed_field": "^3.0",
"drupal/config_ignore": "^3.2",
"drupal/config_split": "^1.7",
"drupal/core-composer-scaffold": "^10",
Expand Down Expand Up @@ -95,6 +96,7 @@
"drupal/stage_file_proxy": "^2",
"drupal/user_expire": "^1.0",
"drupal/username_enumeration_prevention": "^1.3",
"drupal/year": "^1.0",
"drush/drush": "^12.0",
"masonry/masonry": "^3.3",
"mglaman/composer-drupal-lenient": "^1.0",
Expand Down
130 changes: 129 additions & 1 deletion composer.lock

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

52 changes: 40 additions & 12 deletions config/core.entity_form_display.node.article.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies:
- field.field.node.article.field_automatically_visible
- field.field.node.article.field_caption
- field.field.node.article.field_card_title
- field.field.node.article.field_computed_tags
- field.field.node.article.field_content_space
- field.field.node.article.field_country
- field.field.node.article.field_document_type
Expand All @@ -19,6 +20,7 @@ dependencies:
- field.field.node.article.field_summary
- field.field.node.article.field_tags
- field.field.node.article.field_thumbnail_image
- field.field.node.article.field_year
- node.type.article
- workflows.workflow.article_workflow
module:
Expand Down Expand Up @@ -55,6 +57,7 @@ third_party_settings:
children:
- field_content_space
- field_document_type
- field_year
- field_country
- field_tags
- field_author
Expand Down Expand Up @@ -121,7 +124,7 @@ content:
third_party_settings: { }
field_author:
type: inline_entity_form_complex
weight: 26
weight: 27
region: content
settings:
form_mode: default
Expand All @@ -139,7 +142,7 @@ content:
third_party_settings: { }
field_automatically_visible:
type: boolean_checkbox
weight: 28
weight: 29
region: content
settings:
display_label: true
Expand Down Expand Up @@ -179,7 +182,7 @@ content:
third_party_settings: { }
field_country:
type: options_select
weight: 24
weight: 25
region: content
settings: { }
third_party_settings: { }
Expand Down Expand Up @@ -210,7 +213,7 @@ content:
third_party_settings: { }
field_pdf:
type: file_generic
weight: 27
weight: 28
region: content
settings:
progress_indicator: throbber
Expand Down Expand Up @@ -240,31 +243,55 @@ content:
hide_guidelines: '1'
field_tags:
type: entity_reference_autocomplete_active_tags
weight: 25
weight: 26
region: content
settings:
style: rectangle
autocomplete_route_name: active_tags.entity_autocomplete
match_operator: CONTAINS
match_limit: '0'
min_length: '1'
style: rectangle
size: 60
selection_handler: default
match_limit: 0
min_length: 1
delimiter: ''
not_exist_message: "No matches found, Press Enter to add <strong>'@term'</strong>."
not_found_message: "No matching suggestions found for <strong>'@term'</strong>."
info_label: ''
placeholder: 'Article tags'
show_avatar: 1
show_entity_id: 0
convert_uppercase: 0
string_override: 0
show_info_label: 0
info_label: ''
not_exist_message: "No matches found, Press Enter to add <strong>'@term'</strong>."
not_found_message: "No matching suggestions found for <strong>'@term'</strong>."
limit_tag_message: 'Allowed number of values limited to <strong>@cardinality</strong>.'
third_party_settings: { }
field_year:
type: entity_reference_autocomplete_active_tags
weight: 24
region: content
settings:
autocomplete_route_name: active_tags.entity_autocomplete
match_operator: CONTAINS
style: rectangle
size: 60
selection_handler: default
match_limit: 10
min_length: 1
delimiter: ''
placeholder: ''
show_avatar: 1
show_entity_id: 0
convert_uppercase: 0
string_override: 0
show_info_label: 0
info_label: ''
not_exist_message: null
not_found_message: null
limit_tag_message: 'Allowed number of values limited to <strong>@cardinality</strong>.'
third_party_settings: { }
moderation_state:
type: moderation_state_default
weight: 102
weight: 3
region: content
settings: { }
third_party_settings: { }
Expand All @@ -286,6 +313,7 @@ content:
hidden:
field_appeals: true
field_card_title: true
field_computed_tags: true
field_report_link: true
field_thumbnail_image: true
langcode: true
Expand Down
Loading

0 comments on commit 8ff2718

Please sign in to comment.