-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[18.0][MIG] auditlog: Migration to 18.0 #3054
Conversation
Warning, there is an issue on 17.0 resulting in some workers not implementing the correct logging. #3088 is supposed to fix it. |
/ocabot migration auditlog |
@lembregtse Can you update your branch to include #3088 which is now merged? |
@lembregtse any update on this ;-) |
… ones to make overridding easier
…itlog.log' model (standard 'create_date' field is used instead)
…S.txt file removed
@StefanRijnhart my bad, I seem to have "Ctrl+R'ed" into a commit message I used back then to try (as you mentioned) something locally for Raf's fix in the other PR. I've removed the message from the commit, it was not relevant here, it was for a squash I did to fix the cron data file (removing doall and numbercall). I've changed the version number as well! |
There was a problem hiding this 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, looking even better than before!
if possible please merge, thanks a lot |
@ristecona A technical of functional review would be appreciated! |
@lembregtse please cherry-pick #3147 |
And #3137 |
@StefanRijnhart I've cherrypicked both commits, fascinatingly it fails in the pipeline, didn't locally. Difference seems to be the "phonenumbers" python package (I did not have it installed locally). Checking it out. |
It makes sense, since the phone field was excluded, with @rven changes the test-case should have failed in 17.0 as well as it normally should not log any auditlog. I added an extra "changed field" to restore the test-cases original purpose. But I do not understand why installing the phonenumbers makes any difference in how auditlog "logs" stuff. Because I believe this should have failed in 17.0 as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for including the most recent changes! You are right, we would expect the tests to fail on 17 as well (they did for me locally) but in some cases the field phone_sanitized
is written in the same call. I picked your fix in #3153.
Can you therefore align the commit message of the fixing commit to [FIX] auditlog: adapt exclude fields test to #3137
?
960b390
to
a3a2f19
Compare
@StefanRijnhart done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Can this get merged? |
@miikanissi the rules here are:
As mine is the only review so far, this PR does not qualify for merging yet. Your review can help! At this point, a functional test would make most sense I think. You can test using this PRs runboat container, see https://odoo-community.org/resources/review. If you are familiar with this module's code, a code review is fine too, of course. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - did a functional test with multiple different rulesets and models.
This PR has the |
/ocabot merge nobump |
On my way to merge this fine PR! |
Congratulations, your PR was merged at e88484e. Thanks a lot for contributing to OCA. ❤️ |
No description provided.