Rothamsted-Ecoinformatics / farm_rothamsted

Custom farmOS features for Rothamsted Research.
GNU General Public License v2.0
6 stars 1 forks source link

Deploy 2.19.0 #631

Closed paul121 closed 8 months ago

paul121 commented 8 months ago

2.19.0 is tagged and ready to deploy. This is a larger update, including the upgrade to farmOS v3 and a few update hooks for rothamsted modules.

Here is the update log from my testing. There is a notice about some rothamsted roles having incorrect permissions but this has been corrected. I think we only see this error because the farm_update config revert isn't triggered before user_update_10000 is run.

Update log ``` Executing deploy hook for application app -------------- ------------------ --------------- ---------------------------- Module Update ID Type Description -------------- ------------------ --------------- ---------------------------- system 10100 hook_update_n 10100 - Remove the year 2038 date limitation. system 10101 hook_update_n 10101 - Change the {batch} table [bid] field to serial. system 10201 hook_update_n 10201 - Clear left over entries in the revision data table. pgsql 10101 hook_update_n 10101 - Update sequences' owner created from serial columns in PostgreSQL. user 10000 hook_update_n 10000 - Remove non-existent permissions created by migrations. dblog 10100 hook_update_n 10100 - Remove the year 2038 date limitation. dblog 10101 hook_update_n 10101 - Converts the 'wid' of the 'watchdog' table to a big integer. simple_oauth 8601 hook_update_n 8601 - Set default value for the scope provider to dynamic (entity). simple_oauth 8602 hook_update_n 8602 - Install new config entity type "oauth2_scope". simple_oauth 8603 hook_update_n 8603 - Install/update/delete BaseFields for the consumer entity. simple_oauth 8604 hook_update_n 8604 - Migrate roles used as scope and migrate settings to the consumer. simple_oauth 8605 hook_update_n 8605 - Install/delete scopes BaseField for the oauth2_token entity. simple_oauth 8606 hook_update_n 8606 - Add indexes to oauth2_token value field. help 10200 hook_update_n 10200 - Install search index table for help topics. comment 10100 hook_update_n 10100 - Remove the year 2038 date limitation. farm_api enable_default_c post-update Enable default consumer onsumer_module module. farm_api enable_static_oa post-update Enable static oauth2 uth2_scopes scopes. farm_api remove_consumer_ post-update Remove farm_api consumer fields bundle fields. farm_entity enforce_plan_eri post-update Enforce entity reference integrity on plan reference fields. farm_kml move_kml_export_ post-update Move KML export actions to actions new farm_export_kml module. farm_rei uninstall_v1_mig post-update Uninstall v1 migration rations configs. farm_rothams 2_19_remove_fiel post-update Remove experiment plan ted_experime d_group dependency on field_group. nt farm_rothams 2_19_update_plan post-update Update terminated plan to ted_experime _terminated_stat cancelled status. nt us farm_rothams 2_19_update_prop post-update Update postponed proposal ted_experime osal_postponed_s to new cancelled status. nt_research tatus farm_rothams 2_19_add_log_not post-update Add log notification field ted_notifica ification_field to user entity. tion farm_rothams 2_19_create_cons post-update Create rothamsted ted_roles umer consumer. farm_ui_loca add_locations_ma post-update Add farmOS locations map tion p_type type. farm_ui_map locations_behavi post-update Create farmOS-map or locations behavior, add it to dashboard map. farm_ui_view install_farm_exp post-update Install the farmOS CSV s ort_csv Export module. file add_default_file post-update Add default filename name_sanitizatio sanitization n_configuration configuration. file add_permissions_ post-update Grant all non-anonymous to_roles roles the 'delete own files' permission. filter sort_filters post-update Sorts filter format filter configuration. help add_permissions_ post-update Grant all admin roles the to_roles 'access help pages' permission. help help_topics_sear post-update Install or update config ch for help topics if the search module installed. help help_topics_unin post-update Uninstall the help_topics stall module if installed. path_alias drop_path_alias_ post-update Remove the status_index path_alias__status index. plan install_plan_rec post-update Install plan_record and ord plan_record_type entity types. system add_description_ post-update Update description for to_entity_form_m form modes. ode system add_description_ post-update Update description for to_entity_view_m view modes. ode system enable_password_ post-update Enable the password compatibility compatibility module. system linkset_settings post-update Add new menu linkset endpoint setting. system mailer_dsn_setti post-update Add new default mail ngs transport dsn. system mailer_structure post-update Add new default mail d_dsn_settings transport dsn. system remove_asset_ent post-update Remove redundant asset ries state and config. system remove_asset_que post-update Remove redundant asset ry_string query string state. system set_blank_log_ur post-update Updates l_to_null system.theme.global:logo.u rl config if it's still at the default. system timestamp_format post-update Update timestamp formatter ter settings for entity view displays. text allowed_formats post-update Add allowed_formats setting to existing text fields. update set_blank_fetch_ post-update Updates url_to_null update.settings:fetch.url config if it's still at the default. views add_missing_labe post-update Add labels to views which ls don't have one. views boolean_custom_t post-update Update Views config schema itles to make boolean custom titles translatable. views fix_revision_id_ post-update Fix '-revision_id' part replacement token syntax. views oembed_eager_loa post-update Add eager load option to d all oembed type field configurations. views remove_default_a post-update Remove rgument_skip_url default_argument_skip_url setting. views remove_skip_cach post-update Remove the skip_cache e_setting settings. views responsive_image post-update Add lazy load options to _lazy_load all responsive image type field configurations. views taxonomy_filter_ post-update Removes User context from user_context views with taxonomy filters. views timestamp_format post-update Update timestamp formatter ter settings for views. -------------- ------------------ --------------- ---------------------------- // Do you wish to run the specified pending updates?: yes. W: > [notice] Update started: simple_oauth_update_8601 W: > [notice] Update completed: simple_oauth_update_8601 W: > [notice] Update started: simple_oauth_update_8602 W: > [notice] Update completed: simple_oauth_update_8602 W: > [notice] Update started: simple_oauth_update_8603 W: > [notice] Update completed: simple_oauth_update_8603 W: > [notice] Update started: system_update_10100 W: > [notice] Update completed: system_update_10100 W: > [notice] Update started: simple_oauth_update_8604 W: > [notice] Update completed: simple_oauth_update_8604 W: > [notice] Update started: system_update_10101 W: > [notice] Update completed: system_update_10101 W: > [notice] Update started: dblog_update_10100 W: > [notice] Update completed: dblog_update_10100 W: > [notice] Update started: simple_oauth_update_8605 W: > [notice] Update completed: simple_oauth_update_8605 W: > [notice] Update started: system_update_10201 W: > [notice] Update completed: system_update_10201 W: > [notice] Update started: pgsql_update_10101 W: > [notice] Update completed: pgsql_update_10101 W: > [notice] Update started: user_update_10000 W: > [notice] The role Research Editor has had the following non-existent permission(s) removed: create quantity, delete own quantity, update own quantity. W: > [notice] The role Research Lead has had the following non-existent permission(s) removed: create quantity, update own quantity, delete own quantity. W: > [notice] The roles Research Editor, Research Lead have had non-existent permissions removed. Check the logs for details. W: > [notice] Update completed: user_update_10000 W: > [notice] Update started: dblog_update_10101 W: > [notice] Update completed: dblog_update_10101 W: > [notice] Update started: simple_oauth_update_8606 W: > [notice] Update completed: simple_oauth_update_8606 W: > [notice] Update started: help_update_10200 W: > [notice] Update completed: help_update_10200 W: > [notice] Update started: comment_update_10100 W: > [notice] Update completed: comment_update_10100 W: > [notice] Reverted config: core.entity_form_mode.user.register W: > [notice] Reverted config: core.entity_view_display.asset.equipment.map_popup W: > [notice] Reverted config: core.entity_view_display.asset.land.map_popup W: > [notice] Reverted config: core.entity_view_display.asset.plant.map_popup W: > [notice] Reverted config: core.entity_view_display.asset.plot.default W: > [notice] Reverted config: core.entity_view_display.asset.structure.map_popup W: > [notice] Reverted config: core.entity_view_display.taxonomy_term.plant_type.default W: > [notice] Reverted config: core.entity_view_mode.asset.map_popup W: > [notice] Reverted config: core.entity_view_mode.comment.full W: > [notice] Reverted config: core.entity_view_mode.taxonomy_term.full W: > [notice] Reverted config: core.entity_view_mode.user.compact W: > [notice] Reverted config: core.entity_view_mode.user.full W: > [notice] Reverted config: farm_map.map_type.dashboard W: > [notice] Reverted config: log.type.drilling W: > [notice] Reverted config: log.type.input W: > [notice] Reverted config: plan.type.rothamsted_experiment W: > [notice] Reverted config: system.action.asset_assign_action W: > [notice] Reverted config: system.action.asset_parent_action W: > [notice] Reverted config: system.action.farm_rothamsted_combine_harvest W: > [notice] Reverted config: system.action.farm_rothamsted_drilling W: > [notice] Reverted config: system.action.farm_rothamsted_fertiliser W: > [notice] Reverted config: system.action.farm_rothamsted_field_operations W: > [notice] Reverted config: system.action.farm_rothamsted_spraying W: > [notice] Reverted config: system.action.farm_rothamsted_trailer_harvest W: > [notice] Reverted config: user.role.farm_account_admin W: > [notice] Reverted config: user.role.farm_admin W: > [notice] Reverted config: user.role.rothamsted_data_admin W: > [notice] Reverted config: user.role.rothamsted_farm_manager W: > [notice] Reverted config: user.role.rothamsted_farm_viewer W: > [notice] Reverted config: user.role.rothamsted_operator_advanced W: > [notice] Reverted config: user.role.rothamsted_operator_basic W: > [notice] Reverted config: user.role.rothamsted_research_editor W: > [notice] Reverted config: user.role.rothamsted_research_lead W: > [notice] Reverted config: user.role.rothamsted_research_restricted_viewer W: > [notice] Reverted config: views.view.comment W: > [notice] Reverted config: views.view.data_stream_basic_data W: > [notice] Reverted config: views.view.farm_asset W: > [notice] Reverted config: views.view.farm_group_members W: > [notice] Reverted config: views.view.farm_log W: > [notice] Reverted config: views.view.farm_plan W: > [notice] Reverted config: views.view.files W: > [notice] Reverted config: views.view.plan_admin W: > [notice] Reverted config: views.view.rothamsted_proposal W: > [notice] Reverted config: core.entity_view_display.asset.equipment.map_popup W: > [notice] Reverted config: core.entity_view_display.asset.land.map_popup W: > [notice] Reverted config: core.entity_view_display.asset.plant.map_popup W: > [notice] Reverted config: core.entity_view_display.asset.plot.default W: > [notice] Reverted config: core.entity_view_display.asset.structure.map_popup W: > [notice] Reverted config: core.entity_view_mode.asset.map_popup W: > [notice] Reverted config: log.type.drilling W: > [notice] Reverted config: log.type.input W: > [notice] Reverted config: plan.type.rothamsted_experiment W: > [notice] Reverted config: system.action.asset_assign_action W: > [notice] Reverted config: system.action.asset_parent_action W: > [notice] Reverted config: system.action.farm_rothamsted_combine_harvest W: > [notice] Reverted config: system.action.farm_rothamsted_drilling W: > [notice] Reverted config: system.action.farm_rothamsted_fertiliser W: > [notice] Reverted config: system.action.farm_rothamsted_field_operations W: > [notice] Reverted config: system.action.farm_rothamsted_spraying W: > [notice] Reverted config: system.action.farm_rothamsted_trailer_harvest W: > [notice] Reverted config: user.role.farm_account_admin W: > [notice] Reverted config: user.role.farm_admin W: > [notice] Reverted config: user.role.rothamsted_data_admin W: > [notice] Reverted config: user.role.rothamsted_farm_manager W: > [notice] Reverted config: user.role.rothamsted_farm_viewer W: > [notice] Reverted config: user.role.rothamsted_operator_advanced W: > [notice] Reverted config: user.role.rothamsted_operator_basic W: > [notice] Reverted config: user.role.rothamsted_research_editor W: > [notice] Reverted config: user.role.rothamsted_research_lead W: > [notice] Reverted config: user.role.rothamsted_research_restricted_viewer W: > [notice] Reverted config: views.view.data_stream_basic_data W: > [notice] Reverted config: views.view.farm_asset W: > [notice] Reverted config: views.view.farm_group_members W: > [notice] Reverted config: views.view.farm_log W: > [notice] Reverted config: views.view.farm_plan W: > [notice] Update started: farm_api_post_update_enable_default_consumer_module W: > [notice] Update completed: farm_api_post_update_enable_default_consumer_module W: > [notice] Update started: farm_api_post_update_enable_static_oauth2_scopes W: > [notice] Update completed: farm_api_post_update_enable_static_oauth2_scopes W: > [notice] Update started: farm_api_post_update_remove_consumer_fields W: > [notice] Update completed: farm_api_post_update_remove_consumer_fields W: > [notice] Update started: farm_entity_post_update_enforce_plan_eri W: > [notice] Update completed: farm_entity_post_update_enforce_plan_eri W: > [notice] Update started: farm_kml_post_update_move_kml_export_actions W: > [notice] Update completed: farm_kml_post_update_move_kml_export_actions W: > [notice] Update started: farm_rei_post_update_uninstall_v1_migrations W: > [notice] Update completed: farm_rei_post_update_uninstall_v1_migrations W: > [notice] Update started: farm_rothamsted_experiment_post_update_2_19_remove_field_group W: > [notice] Update completed: farm_rothamsted_experiment_post_update_2_19_remove_field_group W: > [notice] Update started: farm_rothamsted_experiment_post_update_2_19_update_plan_terminated_status W: > [notice] Update completed: farm_rothamsted_experiment_post_update_2_19_update_plan_terminated_status W: > [notice] Update started: farm_rothamsted_experiment_research_post_update_2_19_update_proposal_postponed_status W: > [notice] Update completed: farm_rothamsted_experiment_research_post_update_2_19_update_proposal_postponed_status W: > [notice] Update started: farm_rothamsted_notification_post_update_2_19_add_log_notification_field W: > [notice] Update completed: farm_rothamsted_notification_post_update_2_19_add_log_notification_field W: > [notice] Update started: farm_rothamsted_roles_post_update_2_19_create_consumer W: > [notice] Update completed: farm_rothamsted_roles_post_update_2_19_create_consumer W: > [notice] Update started: farm_ui_location_post_update_add_locations_map_type W: > [notice] Update completed: farm_ui_location_post_update_add_locations_map_type W: > [notice] Update started: farm_ui_map_post_update_locations_behavior W: > [notice] Update completed: farm_ui_map_post_update_locations_behavior W: > [notice] Update started: farm_ui_views_post_update_install_farm_export_csv W: > [notice] Update completed: farm_ui_views_post_update_install_farm_export_csv W: > [notice] Update started: file_post_update_add_default_filename_sanitization_configuration W: > [notice] Update completed: file_post_update_add_default_filename_sanitization_configuration W: > [notice] Update started: file_post_update_add_permissions_to_roles W: > [notice] Update completed: file_post_update_add_permissions_to_roles W: > [notice] Update started: filter_post_update_sort_filters W: > [notice] Update completed: filter_post_update_sort_filters W: > [notice] Update started: help_post_update_add_permissions_to_roles W: > [notice] Update completed: help_post_update_add_permissions_to_roles W: > [notice] Update started: help_post_update_help_topics_search W: > [notice] Update completed: help_post_update_help_topics_search W: > [notice] Update started: help_post_update_help_topics_uninstall W: > [notice] Update completed: help_post_update_help_topics_uninstall W: > [notice] Update started: path_alias_post_update_drop_path_alias_status_index W: > [notice] Update completed: path_alias_post_update_drop_path_alias_status_index W: > [notice] Update started: plan_post_update_install_plan_record W: > [notice] Update completed: plan_post_update_install_plan_record W: > [notice] Update started: system_post_update_add_description_to_entity_form_mode W: > [notice] Update completed: system_post_update_add_description_to_entity_form_mode W: > [notice] Update started: system_post_update_add_description_to_entity_view_mode W: > [notice] Update completed: system_post_update_add_description_to_entity_view_mode W: > [notice] Update started: system_post_update_enable_password_compatibility W: > [notice] Update completed: system_post_update_enable_password_compatibility W: > [notice] Update started: system_post_update_linkset_settings W: > [notice] Update completed: system_post_update_linkset_settings W: > [notice] Update started: system_post_update_mailer_dsn_settings W: > [notice] Update completed: system_post_update_mailer_dsn_settings W: > [notice] Update started: system_post_update_mailer_structured_dsn_settings W: > [notice] Update completed: system_post_update_mailer_structured_dsn_settings W: > [notice] Update started: system_post_update_remove_asset_entries W: > [notice] Update completed: system_post_update_remove_asset_entries W: > [notice] Update started: system_post_update_remove_asset_query_string W: > [notice] Update completed: system_post_update_remove_asset_query_string W: > [notice] Update started: system_post_update_set_blank_log_url_to_null W: > [notice] Update completed: system_post_update_set_blank_log_url_to_null W: > [notice] Update started: system_post_update_timestamp_formatter W: > [notice] Update completed: system_post_update_timestamp_formatter W: > [notice] Update started: text_post_update_allowed_formats W: > [notice] Update completed: text_post_update_allowed_formats W: > [notice] Update started: update_post_update_set_blank_fetch_url_to_null W: > [notice] Update completed: update_post_update_set_blank_fetch_url_to_null W: > [notice] Update started: views_post_update_add_missing_labels W: > [notice] Update completed: views_post_update_add_missing_labels W: > [notice] Update started: views_post_update_boolean_custom_titles W: > [notice] Update completed: views_post_update_boolean_custom_titles W: > [notice] Update started: views_post_update_fix_revision_id_part W: > [notice] Update completed: views_post_update_fix_revision_id_part W: > [notice] Update started: views_post_update_oembed_eager_load W: > [notice] Update completed: views_post_update_oembed_eager_load W: > [notice] Update started: views_post_update_remove_default_argument_skip_url W: > [notice] Update completed: views_post_update_remove_default_argument_skip_url W: > [notice] Update started: views_post_update_remove_skip_cache_setting W: > [notice] Update completed: views_post_update_remove_skip_cache_setting W: > [notice] Update started: views_post_update_responsive_image_lazy_load W: > [notice] Update completed: views_post_update_responsive_image_lazy_load W: > [notice] Update started: views_post_update_taxonomy_filter_user_context W: > [notice] Update completed: views_post_update_taxonomy_filter_user_context W: > [notice] Update started: views_post_update_timestamp_formatter W: > [notice] Update completed: views_post_update_timestamp_formatter W: [success] Finished performing updates. ```
aislinnpearson commented 8 months ago

@mstenta I am ready to deploy when you are. As usual one late evening here (late afternoon there) would be appreciated. Please just let me know what works and I will let everyone know what's happening.

mstenta commented 8 months ago

@aislinnpearson: Great!

@paul121 is going to be away at a conference this week. I asked him over the weekend if it would be worth waiting until he's back, just in case anything comes up that needs his attention. He said it isn't a bad idea, just in case.

It sounds like both of you have tested things thoroughly, so it's probably a low risk. What do you think @aislinnpearson? I'm happy to provide debugging if anything comes up, although it may be less efficient than @paul121 since he's more familiar with the changes.

I'll defer to both of your decisions/judgement on when to deploy!

I am in the process of releasing farmOS 3.1.2, which we will be able to include with this update. That will be ready later today, so I can deploy Rothamsted v2.19.0 as early as tonight or tomorrow night (my time). Or if we want to wait I can do it as soon as @paul121 is back and able to respond to issues.

aislinnpearson commented 8 months ago

Hi @mstenta,

I think let's wait for @paul121 to get back. I mentioned to him that I am in training almost all week this week, so also a bit pressed for time. Go slow rather than go wrong is a good motto. :)

We can then skip this week's meeting and catch up again on Tuesday next week?

mstenta commented 8 months ago

Sounds good! Thanks @aislinnpearson! Talk to you next week. :-)

mstenta commented 8 months ago

Deployed!

aislinnpearson commented 8 months ago

Fantastic. thank you so much both