Skip to content

Conversation

@thienvh332
Copy link

@thienvh332 thienvh332 commented Jan 7, 2025

During migration, some developers might have naively replaced invalidate_cache() with _invalidate_cache()

=> We need to handle this specific case to avoid issues caused by changes in logic or the removal of private methods in the codebase

@thienvh332 thienvh332 marked this pull request as ready for review January 7, 2025 09:21
Copy link
Member

@StefanRijnhart StefanRijnhart left a comment

Choose a reason for hiding this comment

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

_invalidate_cache is introduced in 16.0, so it won't have been used in modules before that. Shouldn´t it therefore go into migrate_160_always?

@thienvh332
Copy link
Author

Hi @StefanRijnhart ,
Thanks for pointing that out. That makes sense and I’ve moved it to migrate_160_always accordingly 👍

Copy link
Member

@StefanRijnhart StefanRijnhart left a comment

Choose a reason for hiding this comment

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

Thanks for the update!

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants