Skip to content

[18.0][MIG] web_session_auto_close#3101

Merged
OCA-git-bot merged 3 commits intoOCA:18.0from
acsone:18.0-web_session_auto_close-sbj
Jun 6, 2025
Merged

[18.0][MIG] web_session_auto_close#3101
OCA-git-bot merged 3 commits intoOCA:18.0from
acsone:18.0-web_session_auto_close-sbj

Conversation

@sbejaoui
Copy link
Copy Markdown
Contributor

@sbejaoui sbejaoui commented Feb 21, 2025

This module automatically closes inactive user sessions based on a
configurable timeout. If no activity is detected within the set
duration, the session is destroyed, and the page reloads.

Laurent Stukkens and others added 2 commits February 21, 2025 09:17
This commit adds the web_session_auto_close module which purpose is
to is to automatically close the session when the last odoo tab is
closed or when the computer gets in idle mode.

The `timeout` occurs 15 seconds after the tab has been closed or
the computer got idle.
@glitchov
Copy link
Copy Markdown
Contributor

The mechanism doesn't work if the last tab is closed. You can go back in Odoo after the timeout.

@sbejaoui sbejaoui force-pushed the 18.0-web_session_auto_close-sbj branch from 3b31da7 to ab7d4d0 Compare February 21, 2025 11:22
@sbejaoui
Copy link
Copy Markdown
Contributor Author

The mechanism doesn't work if the last tab is closed. You can go back in Odoo after the timeout.

please try now

Copy link
Copy Markdown
Contributor

@glitchov glitchov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM in UX testing

@pierre-halleux
Copy link
Copy Markdown

LGTM

@OCA-git-bot
Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Copy link
Copy Markdown
Member

@ivs-cetmix ivs-cetmix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @sbejaoui , could you please squash all technical commits?
image

@lmignon
Copy link
Copy Markdown
Contributor

lmignon commented Jun 6, 2025

Hi @sbejaoui , could you please squash all technical commits? image

It's not applicable. This commit comes from the bot there are no others commit from the bot.Blocking PRs with this type of argument will further reduce the number of contributors by adding constraints with no real added value to the work to be done.

Copy link
Copy Markdown
Contributor

@lmignon lmignon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the migration (Code review + Functional tests)

@rousseldenis
Copy link
Copy Markdown

/ocabot migration web_session_auto_close

@ivs-cetmix
Copy link
Copy Markdown
Member

It's not applicable. This commit comes from the bot there are no others commit from the bot.Blocking PRs with this type of argument will further reduce the number of contributors by adding constraints with no real added value to the work to be done.

@lmignon This is what is written in the Migration guidelines
image

I don't understand how squashing commits will reduce the number of contributors.

@rousseldenis
Copy link
Copy Markdown

I don't understand how squashing commits will reduce the number of contributors.

@ivs-cetmix I think @lmignon wanted to say (as I said also), requiring more work (that has no value added - really) will discourage contributors. Moreover if they don't feel at ease with squashing, that is quite an advanced operation for newbies.

Copy link
Copy Markdown

@rousseldenis rousseldenis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Functionally and technically reviewed

@ivs-cetmix
Copy link
Copy Markdown
Member

I don't understand how squashing commits will reduce the number of contributors.

@ivs-cetmix I think @lmignon wanted to say (as I said also), requiring more work (that has no value added - really) will discourage contributors. Moreover if they don't feel at ease with squashing, that is quite an advanced operation for newbies.

@rousseldenis Sure! Let's remove pre-commit too, because it restraints so many great Odoo developers from contribution! And tests, does anyone really need them? Odoo App Store has no tests at all and look how many great apps are there!

Copy link
Copy Markdown
Member

@ivs-cetmix ivs-cetmix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM just as an exclusion.
Let's continue the discussion here: OCA/maintainer-tools#657 (comment)

@rousseldenis
Copy link
Copy Markdown

@rousseldenis Sure! Let's remove pre-commit too, because it restraints so many great Odoo developers from contribution! And tests, does anyone really need them? Odoo App Store has no tests at all and look how many great apps are there!

You take a wrong path... but thanks for approval.

@ivs-cetmix
Copy link
Copy Markdown
Member

ivs-cetmix commented Jun 6, 2025

You take a wrong path... but thanks for approval.

I don't consider following the official documentation being a wrong path.
Anyway @sbejaoui thank you for your contribution and please spend a couple of minutes more next time on reading the migration wiki.
/ocabot merge nobump

@OCA-git-bot
Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 18.0-ocabot-merge-pr-3101-by-ivs-cetmix-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 2a3d537 into OCA:18.0 Jun 6, 2025
3 checks passed
@OCA-git-bot
Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at e27793b. Thanks a lot for contributing to OCA. ❤️

@lmignon lmignon deleted the 18.0-web_session_auto_close-sbj branch June 10, 2025 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants