Repository navigation
[17.0][OU-IMP] base: Delete tracking messages in private partners - #6120
Open
pedrobaeza wants to merge 1 commit into
Open
pedrobaeza wants to merge 1 commit into
pedrobaeza wants to merge 1 commit into
Conversation
Tracking messages on private partners may leak data through the chatter, like a phone number change, showing both the old and the new one, so let's remove them.
Contributor
|
You want to delete messages like "Partner phone changed from 1234 to 4321", right? Instead, cannot it be updated to "Partner phone changed from **** to ****"? |
Contributor
|
So, instead of deleting, do this in openupgrade.logged_query(
cr,
"""
UPDATE mail_tracking_value mtv
SET old_value_char = CASE WHEN mtv.old_value_char IS NULL THEN NULL ELSE '*****' END,
new_value_char = CASE WHEN mtv.new_value_char IS NULL THEN NULL ELSE '*****' END,
old_value_text = CASE WHEN mtv.old_value_text IS NULL THEN NULL ELSE '*****' END,
new_value_text = CASE WHEN mtv.new_value_text IS NULL THEN NULL ELSE '*****' END
FROM mail_message mm
JOIN ou_res_partner_private p ON p.id = mm.res_id
WHERE mtv.mail_message_id = mm.id AND mm.model = 'res.partner'
""",
) |
Member
Author
|
They don't add value with |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Tracking messages on private partners may leak data through the chatter, like a phone number change, showing both the old and the new one, so let's remove them.
@Tecnativa