Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPENEUROPA-2652: Use patch to add language cache tags to selection page. #98

Merged
merged 1 commit into from
Feb 3, 2020

Conversation

imanoleguskiza
Copy link
Member

OPENEUROPA-2652

Description

The language selection page doesn't use the proper cache tags so it doesn't get invalidated on CRUD operations on languages. This PR adds the required language list tag.

Change log

  • Added: Language list cache tag to language selection page.
  • Changed:
  • Deprecated:
  • Removed:
  • Fixed:
  • Security:

Commands

[Insert commands here]

@imanoleguskiza imanoleguskiza force-pushed the OPENEUROPA-2652 branch 2 times, most recently from 7370cb8 to 781a623 Compare January 29, 2020 17:07
Copy link
Contributor

@upchuk upchuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • I tested the patch and it seems to do the trick. Can I ask why you are adding the url context? If it has something to do with the current language (what?) there are also language contexts.
  • Did you identify why the latest version of the module doesn't work? It seems to work in the component but not in EWCMS.

@imanoleguskiza
Copy link
Member Author

I didn't add the url context, it was already there. The only change I did is I added it to the cacheability object as opposed to adding it manually to the render array.

@upchuk
Copy link
Contributor

upchuk commented Jan 30, 2020

Checked and the latest version of the module doesn't work due to this change: https://git.drupalcode.org/project/language_selection_page/commit/054e891ca34b1e1285b50e31b32dc13378fa582d

Will require a bit more investigation that falls outside of the scope of this. But lock the version to 2.3 so it doesn't break with the new release.

Copy link
Contributor

@upchuk upchuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The module maintainer released a new version of the module which breaks for us. We need to lock down the version to 2.3.

@upchuk upchuk merged commit 3668584 into master Feb 3, 2020
@upchuk upchuk deleted the OPENEUROPA-2652 branch February 3, 2020 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants