-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[MIG] dbfilter_from_header: Migration to 12.0 #1558
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
[MIG] dbfilter_from_header: Migration to 12.0 #1558
Conversation
|
👍 I've tested it. It works fine on v12 |
tbaden
left a comment
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 work 👍
I did a code review, just some small changes are needed (see below)
dbfilter_from_header/__manifest__.py
Outdated
| ], | ||
| "data": [ | ||
| ], | ||
| "js": [ |
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.
if you dont use the tag, just delete it.
| if config.get('proxy_mode') and \ | ||
| 'dbfilter_from_header' in config.get('server_wide_modules'): | ||
| _logger = logging.getLogger(__name__) | ||
| _logger.info('monkey patching http.db_filter') |
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.
is it really necessary to log?
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.
it works this way in the previous versions
|
@remytms could you have a quick look to make the few requested changes ? |
|
Yes, I will fix that as soon as possible. :) |
7f1158d to
981593b
Compare
|
@tbaden I have split the readme according to maintainer-tools and fixed empty keys in manifest. :) |
tbaden
left a comment
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.
@remytms thanks for the changes, just something minor.
| "version": "12.0.1.0.0", | ||
| "author": "Therp BV, " | ||
| "Odoo Community Association (OCA)", | ||
| "license": "AGPL-3", |
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.
please add the website tag with the value: https://github.com/OCA/server-tools
981593b to
317e751
Compare
|
@tbaden website tag added. Thanks for your attentive review. |
|
@houssine78 Can you approve this PR, if it seams good to you ? :) |
[MIG] migrate dbfilter_from_header to 10.0 I have also removed the ability to use HTTP_X_OPENERP_DBFILTER
updates were made in OCA#1137 by @TimLai125 and small lint fixes by @yelizariev
317e751 to
a183841
Compare
|
/ocabot merge |
|
Hey, thanks for contributing! Proceeding to merge this for you. |
|
Congratulations, your PR was merged at 32d5666. Thanks a lot for contributing to OCA. ❤️ PS: Don't worry if GitHub says there are unmerged commits: it is due to a rebase before merge. All commits of this PR have been merged into |
Syncing from upstream OCA/server-tools (16.0)
This migrates the module
dbfilter_from_headerto 12.0.There is a refactor that was proposed to 11.0: #1340.
Should we wait before the refactor is merge into 11.0 or can we migrate this module to 12.0 and than migrate the changes from 11.0 to 12.0 ?