Skip to content
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

Syncing from upstream OCA/server-auth (15.0) #494

Merged
merged 3 commits into from
Sep 14, 2024
Merged

Conversation

bt-admin
Copy link

bt_gitbot

rolandojduartem and others added 3 commits September 13, 2024 19:48
auth_session_timeout [1] uses the time of the modification of the
session file to calculate the time of inactivity, but any edition in the
session file will change the time of modification of the file and cause
inexact time of inactivity.

The controller /longpolling/im_status is called several times (every 50
seconds) [2][3], so it is required taking it into account to avoid
modifying the time of modification of the session file, so it is
required adding /longpolling/im_status as a ignored url [4][5].

References:
- [1] https://github.com/Oca/server-auth/blob/1db10f29/auth_session_timeout/models/res_users.py#L73
- [2] https://github.com/odoo/odoo/blob/e5b67f9c/addons/mail/static/src/models/partner/partner.js#L395
- [3] https://github.com/odoo/odoo/blob/e5b67f9c/addons/mail/static/src/models/partner/partner.js#L407
- [4] https://github.com/Oca/server-auth/blob/1db10f29/auth_session_timeout/data/ir_config_parameter_data.xml#L12
- [5] https://github.com/Oca/server-auth/blob/1db10f29/auth_session_timeout/models/res_users.py#L93
Signed-off-by moylop260
@bt-admin bt-admin added the 15.0 label Sep 14, 2024
@bt-admin bt-admin merged commit aba762c into brain-tec:15.0 Sep 14, 2024
4 checks passed
Copy link

codecov bot commented Sep 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.66%. Comparing base (d34a8af) to head (a7f16f6).
Report is 60 commits behind head on 15.0.

Additional details and impacted files
@@           Coverage Diff           @@
##             15.0     #494   +/-   ##
=======================================
  Coverage   91.66%   91.66%           
=======================================
  Files         141      141           
  Lines        3670     3670           
  Branches      346      346           
=======================================
  Hits         3364     3364           
  Misses        205      205           
  Partials      101      101           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants