-
-
Notifications
You must be signed in to change notification settings - Fork 351
[18.0][MIG] fastapi_auth_jwt: Migration to 18.0 #490
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
base: 18.0
Are you sure you want to change the base?
Conversation
26f6aac to
3924b66
Compare
|
/ocabot migration fastapi_auth_jwt |
b9a8abf to
0ec27f7
Compare
0a6830a to
c24ed0d
Compare
c24ed0d to
f8b16df
Compare
fastapi_auth_jwt/dependencies.py
Outdated
| request, response, authorization_header, validator | ||
| ) | ||
| uid = validator._get_and_check_uid(payload) | ||
| return odoo_env(user=uid) |
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.
| return odoo_env(user=uid) | |
| return env(user=uid) |
@dnplkndll small error here. Thanks for the migration!
f8b16df to
fb0efca
Compare
eda94c4 to
cc37270
Compare
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.
Looks good
|
@dnplkndll Can you please rebase? 🙏 |
cc37270 to
216ee2a
Compare
|
the conflict is resolved and code is fine now. |
|
@kobros-tech As you reacted here, I suppose this superseeds your PR #483 ? |
yes, I run both and compare them to each other to see which approach is the best. |
216ee2a to
e64c838
Compare
|
how do you think now? |
e64c838 to
b1a63a2
Compare
|
|
||
| from contextlib import contextmanager | ||
|
|
||
| import odoo |
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.
extendable should not be modified
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.
Thank your for the migration @dnplkndll
Can you add the code from #402. This fix is missing into the migrated code.
…authenticated partner is allowed
|
@lmignon |
|
@lmignon |
Depends on: