Problem/Motivation

wxt_core hook updates contain deprecated API calls.

There are some cases where we may want to re-run a previous update hook in D10, and just also to be consistent , let's replace all the deprecated api references.

See patch

Steps to reproduce

drush eval "\Drupal::service('update.update_hook_registry')->setInstalledVersion('wxt_core', 8432);";
drush updb;

Proposed resolution

See patch

Remaining tasks

Review, test and commit patch

User interface changes

N/A

API changes

N/A

Data model changes

Comments

joseph.olstad created an issue. See original summary.

joseph.olstad’s picture

joseph.olstad’s picture

Status: Needs review » Needs work

Reviewing and testing patch #2, I'll adjust it if needed.

joseph.olstad’s picture

StatusFileSize
new7.97 KB

Ooops, go with patch #4 instead

joseph.olstad’s picture

Status: Needs work » Needs review

Reviewing patch #4 now

joseph.olstad’s picture

Patch #4 appears to work

joseph.olstad’s picture

Status: Needs review » Reviewed & tested by the community

RTBC my own patch, just saying that I tested patch #4 to work, if you disagree, test it yourself.

joseph.olstad’s picture

Assigned: joseph.olstad » Unassigned
joseph.olstad’s picture

Status: Reviewed & tested by the community » Needs review

patch 4 is good to go.

These hook updates could still be helpful in D10 in case someone still lingers along with lightning_ junk and later needs to clean it would want to re-run 8433.

danrod’s picture

StatusFileSize
new80.67 KB
new96.88 KB

I tested patch #4 and works as expected, attached screenshots of running the drush commands before and after the patch.

drush results before the patch

drush results after the patch

joseph.olstad’s picture

Status: Needs review » Reviewed & tested by the community

Fully reviewed as per @danrod
Thanks :)

sylus’s picture

Status: Reviewed & tested by the community » Fixed

Committed and attributed!

Thanks so much for fixing this!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.