Comments

nkoporec created an issue. See original summary.

vakulrai’s picture

StatusFileSize
new140.62 KB

Hi nkoporec I reviewed your patch it applies cleanly.

damienmckenna’s picture

@vakulrai: Thanks for that. However, you should know that a screenshot of you applying a patch doesn't help in any way - we can already tell whether the patch applies based upon the results of the automated tests. What would be useful would be to test a scenario that causes a message to be displayed and then show that the message is still displayed with the new code. Thank you.

michelle’s picture

Issue tags: +TCDrupal2018

The patch applies cleanly and works in that messages are still displayed.

I confirmed these messages still work:
- On install, from drush
- On install, from UI
- Creating new metatag defaults for the article content type on admin/config/search/metatag
- Save message on editing those defaults.
- Deleting those defaults.
- Reverting changes to defaults on 403.

I was not able to get it to display a message after editing the metatags of the admin/content view but I was not able to get the message without the patch, either, so I may be doing it wrong.

I did not test the on translation message as I don't have multi lingual set up on my test site.

damienmckenna’s picture

Status: Needs review » Reviewed & tested by the community

Sounds like it works as designed. Thanks Michelle!

damienmckenna’s picture

damienmckenna’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thank you.

  • DamienMcKenna committed 9a3912c on 8.x-1.x
    Revert "Issue #2971271 by nkoporec, Michelle: Replace drupal_set_message...
damienmckenna’s picture

Status: Fixed » Postponed
Parent issue: #2957104: Plan for Metatag 8.x-1.6 »

I've reverted this as it breaks compatibility with 8.4, see https://www.drupal.org/node/2774931 for details.

idebr’s picture

What exactly is this postponed on? Several modules with high installs have already committed similar patches, since Drupal 8.4.x is officially no longer supported. For example:
- Pathauto
- Search API

damienmckenna’s picture

@idebr: The security team are still releasing security fixes for 8.4.x. Besides, this isn't a bug fix, nothing is broken, it's just some deprecated code so there's no specific hurry on committing it.

I'll reevaluate it after 8.6.0 is released.

michelle’s picture

I agree with Damien. We just ran into this issue with Paragraphs on a client site. The upgrade path isn't always smooth on these 6 month releases and it can sometimes be tricky to keep up so having an 8.5 requirement in very popular modules means not being able to keep those modules up to date and risking a potential mess if a security release comes out.

subson’s picture

Re-rolling the patch as we don't need to use MessengerInterface.
MessengerTrait is available in the parent classes in most cases.

idebr’s picture

Status: Postponed » Needs review

8.4.x is no longer getting security updates, so the time might be right to start replacing this deprecated code.

damienmckenna’s picture

Agreed.

idebr’s picture

Reroll against latest 8.x-1.x so it applies cleanly. I did a code review to check all occurrences of drupal_set_message() have been replaced correctly. I will update the status to RTBC when the test comes back green.

idebr’s picture

Status: Needs review » Reviewed & tested by the community
damienmckenna’s picture

Status: Reviewed & tested by the community » Fixed
Parent issue: » #2996500: Plan for Metatag 8.x-1.10

Let's add this to the next release.

damienmckenna’s picture

Status: Fixed » Reviewed & tested by the community
damienmckenna’s picture

Status: Reviewed & tested by the community » Fixed

Ok, *now* it's committed. Thanks all!

Status: Fixed » Closed (fixed)

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

damienmckenna’s picture