Skip to content

Commit

Permalink
VACMS-15559 Migration of service location data to paragraphs (#16911)
Browse files Browse the repository at this point in the history
* Add post_update hook to move facility service location data

* Add placeholder methods and mapping

* Adding more notes

* VACMS-15559 FIXUP refactor into class.

* VACMS-15559 Refactory functions to scipt library.

* Add new map to value function to script-library.

* VACMS-15559 Remove conflation of new revision and new node.

* VACMS-15559 Add all migrated fields to migration.

* VACMS-15559 Programatically shut off queue checks and processing.

* VACMS-15559 Move deploy function to script.

* VACMS-15559 Update audit, make sortable, add editor updated.

* VACMS-15559 Cleaned up function names and some comments.

* VACMS-15559 Fix incorrect office_visits parameter.

* VACMS-15559 Make service location audit headers sticky.

* VACMS-15559 Fix forward revision.

* VACMS-15559 Fix the timing on grabing the lastes revision.

* VACMS-15559 Fix recent changes View to sort by revision id, not time.

* VACMS-15559 Carry forward draft revision log message.
  • Loading branch information
swirtSJW committed Feb 14, 2024
1 parent 87ae3e5 commit 0bd55a8
Show file tree
Hide file tree
Showing 6 changed files with 406 additions and 97 deletions.
16 changes: 7 additions & 9 deletions config/sync/views.view.right_sidebar_latest_revision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -312,22 +312,21 @@ display:
options: { }
empty: { }
sorts:
revision_timestamp:
id: revision_timestamp
table: node_revision
field: revision_timestamp
vid:
id: vid
table: node_field_revision
field: vid
relationship: none
group_type: group
admin_label: ''
entity_type: node
entity_field: revision_timestamp
plugin_id: date
entity_field: vid
plugin_id: standard
order: DESC
expose:
label: ''
field_identifier: revision_timestamp
field_identifier: ''
exposed: false
granularity: second
arguments:
nid:
id: nid
Expand All @@ -348,7 +347,6 @@ display:
title: ''
default_argument_type: node
default_argument_options: { }
default_argument_skip_url: false
summary_options:
base_path: ''
count: true
Expand Down
130 changes: 110 additions & 20 deletions config/sync/views.view.service_locations_audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ dependencies:
- field.storage.node.field_administration
- field.storage.node.field_hservice_appt_intro_select
- field.storage.node.field_hservice_appt_leadin
- field.storage.node.field_last_saved_by_an_editor
- field.storage.node.field_online_scheduling_availabl
- field.storage.node.field_phone_numbers_paragraph
- field.storage.node.field_walk_ins_accepted
Expand Down Expand Up @@ -1182,16 +1183,93 @@ display:
multi_type: separator
separator: ', '
field_api_classes: false
field_last_saved_by_an_editor:
id: field_last_saved_by_an_editor
table: node__field_last_saved_by_an_editor
field: field_last_saved_by_an_editor
relationship: none
group_type: group
admin_label: ''
plugin_id: field
label: 'Last Saved by an Editor'
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: true
empty: ''
hide_empty: false
empty_zero: false
hide_alter_empty: true
click_sort_column: value
type: timestamp
settings:
date_format: medium
custom_date_format: ''
timezone: ''
tooltip:
date_format: long
custom_date_format: ''
time_diff:
enabled: false
future_format: '@interval hence'
past_format: '@interval ago'
granularity: 2
refresh: 60
description: ''
group_column: value
group_columns: { }
group_rows: true
delta_limit: 0
delta_offset: 0
delta_reversed: false
delta_first_last: false
multi_type: separator
separator: ', '
field_api_classes: false
pager:
type: mini
type: full
options:
offset: 0
items_per_page: 10
items_per_page: 100
total_pages: null
id: 0
tags:
next: ››
previous: ‹‹
first: '« First'
last: 'Last »'
expose:
items_per_page: false
items_per_page_label: 'Items per page'
Expand All @@ -1200,6 +1278,8 @@ display:
items_per_page_options_all_label: '- All -'
offset: false
offset_label: Offset
quantity: 9
pagination_heading_level: h4
exposed_form:
type: basic
options:
Expand All @@ -1221,15 +1301,15 @@ display:
options: { }
empty: { }
sorts:
created:
id: created
changed:
id: changed
table: node_field_data
field: created
field: changed
relationship: none
group_type: group
admin_label: ''
entity_type: node
entity_field: created
entity_field: changed
plugin_id: date
order: DESC
expose:
Expand Down Expand Up @@ -1514,6 +1594,7 @@ display:
field_other_phone_numbers: field_other_phone_numbers
field_use_facility_phone_number: field_use_facility_phone_number
nid: nid
field_last_saved_by_an_editor: field_last_saved_by_an_editor
default: '-1'
info:
title:
Expand All @@ -1524,14 +1605,14 @@ display:
empty_column: false
responsive: ''
type:
sortable: false
sortable: true
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
moderation_state_1:
sortable: false
sortable: true
default_sort_order: asc
align: ''
separator: ''
Expand All @@ -1545,7 +1626,7 @@ display:
empty_column: false
responsive: ''
field_administration:
sortable: false
sortable: true
default_sort_order: asc
align: ''
separator: ''
Expand All @@ -1559,56 +1640,56 @@ display:
empty_column: false
responsive: ''
field_hservice_appt_intro_select:
sortable: false
sortable: true
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
field_appt_intro_text_type:
sortable: false
sortable: true
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
field_hservice_appt_leadin:
sortable: false
sortable: true
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
field_appt_intro_text_custom:
sortable: false
sortable: true
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
field_walk_ins_accepted:
sortable: false
sortable: true
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
field_office_visits:
sortable: false
sortable: true
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
field_online_scheduling_availabl:
sortable: false
sortable: true
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
field_online_scheduling_avail:
sortable: false
sortable: true
default_sort_order: asc
align: ''
separator: ''
Expand All @@ -1625,21 +1706,28 @@ display:
empty_column: false
responsive: ''
field_use_facility_phone_number:
sortable: false
sortable: true
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
nid:
sortable: false
sortable: true
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
field_last_saved_by_an_editor:
sortable: true
default_sort_order: asc
align: ''
separator: ''
empty_column: false
responsive: ''
override: true
sticky: false
sticky: true
summary: ''
empty_table: false
caption: 'Service location results'
Expand Down Expand Up @@ -1690,6 +1778,7 @@ display:
- 'config:field.storage.node.field_administration'
- 'config:field.storage.node.field_hservice_appt_intro_select'
- 'config:field.storage.node.field_hservice_appt_leadin'
- 'config:field.storage.node.field_last_saved_by_an_editor'
- 'config:field.storage.node.field_online_scheduling_availabl'
- 'config:field.storage.node.field_phone_numbers_paragraph'
- 'config:field.storage.node.field_walk_ins_accepted'
Expand Down Expand Up @@ -1737,6 +1826,7 @@ display:
- 'config:field.storage.node.field_administration'
- 'config:field.storage.node.field_hservice_appt_intro_select'
- 'config:field.storage.node.field_hservice_appt_leadin'
- 'config:field.storage.node.field_last_saved_by_an_editor'
- 'config:field.storage.node.field_online_scheduling_availabl'
- 'config:field.storage.node.field_phone_numbers_paragraph'
- 'config:field.storage.node.field_walk_ins_accepted'
Expand Down
Loading

0 comments on commit 0bd55a8

Please sign in to comment.