Problem/Motivation
On update to core 8.4, the postupdate code below (run via drush) smashed all my views config, by replacing all strings with a translated version like this:
- title: 'Monthly archive'
+ title: 'Monatliches Archiv'
It looks like the language overrides get saved.
To reproduce (i guess the language setting is important):
* set english as default language
* set (e.g.) german as default negotiation language
* have a view with translated title
* load and re-save the view
/**
* Fix table names for revision metadata fields.
*/
function views_post_update_revision_metadata_fields() {
// The table names are fixed automatically in
// \Drupal\views\Entity\View::preSave(), so we just need to re-save all views.
$views = View::loadMultiple();
array_walk($views, function (View $view) {
$view->save();
});
}
Proposed resolution
* Find and crosslink the issue(s) about config override saving
* Check if they fix this OR we must make views leverage this
* Decide what to do with the upgrade path
Remaining tasks
TBD
User interface changes
None
API changes
TBD
Data model changes
TBD
Comments
Comment #8
smustgrave commentedGame up as a BSI target
After 7+ years wonder if still an issue with all the changes to views from 2018 to now?
Comment #9
smustgrave commentedSince there's been no follow up going to close out. If still a bug in D11 please re-open.