-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
[16.0][mig] auth_session_timeout: Migration to 16.0 #524
Closed
Closed
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
c06c0bb
inactive_session_timeout > auth_session_timeout
pedrobaeza 7a0e6c5
auth_session_timeout: References to old name
pedrobaeza 4a83155
Make modules uninstallable
pedrobaeza fdcc14b
Rename manifest files
pedrobaeza 79cb596
auth_session_timeout: Migrate to v10 * Bump versions * Installable to…
lasley 53c20c1
Module auth_session_timeout: Pluggability (#887)
jmorgannz 758cb5d
auth_session_timeout: Deprecate backwards compat + improve * Deprecat…
lasley 3698454
corrects AttributeError: 'HttpRequest' object has no attribute 'http'…
beenhere4hours 628d95c
auth_session_timeout: Migration to 11.0
nadiaafa 66e59fa
[MIG] auth_session_timeout: Migration to version 11.0
zaoral 2e91e7b
OCA Transbot updated translations from Transifex
oca-transbot 8c705d0
[UPD] README.rst
OCA-git-bot 6117e35
[UPD] Update auth_session_timeout.pot
oca-travis a546b8c
[12.0][MIG] auth_session_timeout
f6cdb06
[UPD] README.rst
OCA-git-bot 9e49540
Translated using Weblate (Portuguese (Brazil))
fdb6408
[MIG] auth_session_timeout: Migration to 13.0
rruebner bb90b78
[REF] pre-commit lint
dreispt 11bcf98
[UPD] Update auth_session_timeout.pot
oca-travis b663d3e
[UPD] README.rst
OCA-git-bot ae33056
Update translation files
oca-transbot 108c102
Update translation files
oca-transbot 9672d87
[MIG] Module migrated in v14.
Chandresh-SerpentCS a19c33c
[UPD] README.rst
OCA-git-bot c5c68ea
[UPD] Update auth_session_timeout.pot
oca-travis c15e39c
[FIX] auth_session_timeout: session timeout applies only to user
pierre-halleux 83cc9b5
auth_session_timeout 14.0.1.0.1
OCA-git-bot d8d8957
Translated using Weblate (Portuguese (Brazil))
c070cba
[IMP] auth_session_timeout: black, isort
flachica 6070707
Standard migration
flachica 96bb3c8
[UPD] Update auth_session_timeout.pot
19fa8ae
[UPD] README.rst
OCA-git-bot 2e477d3
Translated using Weblate (Catalan)
Noel000 270476a
Translated using Weblate (Italian)
mymage 3af7289
Translated using Weblate (Italian)
francesco-ooops c744f2a
[IMP] auth_session_timeout: pre-commit stuff
dsolanki-initos 565492b
[MIG] auth_session_timeout: Migration to 16.0
dsolanki-initos b83b70d
Merge branch '16.0' into 16.0-mig-auth_session_timeout
dsolanki-initos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ Inactive Sessions Timeout | |
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--auth-lightgray.png?logo=github | ||
:target: https://github.com/OCA/server-auth/tree/15.0/auth_session_timeout | ||
:target: https://github.com/OCA/server-auth/tree/16.0/auth_session_timeout | ||
:alt: OCA/server-auth | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/server-auth-15-0/server-auth-15-0-auth_session_timeout | ||
|
@@ -82,6 +82,7 @@ Contributors | |
* Chandresh Thakkar <[email protected]> | ||
* `Greenice <https://www.greenice.com>`_: | ||
* Fernando La Chica <[email protected]> | ||
* Dhara Solanki <[email protected]> | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
@@ -96,6 +97,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose | |
mission is to support the collaborative development of Odoo features and | ||
promote its widespread use. | ||
|
||
This module is part of the `OCA/server-auth <https://github.com/OCA/server-auth/tree/15.0/auth_session_timeout>`_ project on GitHub. | ||
This module is part of the `OCA/server-auth <https://github.com/OCA/server-auth/tree/16.0/auth_session_timeout>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
from os.path import getmtime | ||
from time import time | ||
|
||
from odoo import api, http, models | ||
from odoo import api, http, models, tools | ||
from odoo.http import SessionExpiredException | ||
|
||
_logger = logging.getLogger(__name__) | ||
|
@@ -84,7 +84,8 @@ def _auth_timeout_check(self): | |
terminated = self._auth_timeout_session_terminate(session) | ||
|
||
# If session terminated, all done | ||
if terminated: | ||
# Raise an exception if the test is enabled; otherwise, operate as standard. | ||
if terminated and tools.config["test_enable"]: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This doesn't look right - why doesn't the Exception need to be raised in normal Odoo operation? |
||
raise SessionExpiredException("Session expired") | ||
|
||
# Else, conditionally update session modified and access times | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
* Chandresh Thakkar <[email protected]> | ||
* `Greenice <https://www.greenice.com>`_: | ||
* Fernando La Chica <[email protected]> | ||
* Dhara Solanki <[email protected]> |
This file contains 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
This file contains 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
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.
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.
This causes the PR to have a conflict