Problem/Motivation
#981870: Skip default argument for view URL does not work and never has so it can be removed was committed without deprecation support, this means that approximated 1,500 contrib views don't trigger deprecation notices when modules are installed.
We could add deprecation support now to 10.3.x (and 10.4.x), and then modules with deprecation testing on would be warned before they declare 11.x compatibility, as long as they have test coverage.
See [#/3443942] for the general problem. And see #2640994: Fix label token replacement for views entity reference arguments for an issue that handles things correctly.
Steps to reproduce
Proposed resolution
Remaining tasks
#7
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3450868
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
lendudeSomething like this I guess
Comment #5
lendudeAs the test failures indicate, we missed removing some, or some new instances of Views with default_argument_skip_url got added afterwards
Comment #6
lendudeI think the remaining failures mean the database fixtures need to be updated? I think?
Comment #7
catchThe update should disable deprecation triggering probably - since we know that views that we update will need the change to be made.
Comment #8
quietone commentedComment #9
catchThis update is only in 10.x
Comment #13
quietone commented@catch, sorry about that.
I went to update the MR and made a mess of it that I was not able to recover from. I made a new MR and hide, and closed, the original.
I am not sure what #7 means. @catch?
Comment #14
catch@quietone as far as I know all the 11.x views post updates and associate code handle this correctly, e.g.:
$view_config_updater->setDeprecationsEnabled(FALSE);in the post update ensures that no deprecations are triggered by the update path, but deprecation support in ViewsConfigUpdater itself allows them to be triggered by presave hooks.#3521618: Add generic interface + base class for upgrade paths that require config changes and #3521618: Add generic interface + base class for upgrade paths that require config changes have more discussion.