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

fix: log out reliability #25865

Merged
merged 5 commits into from
Apr 9, 2024
Merged

fix: log out reliability #25865

merged 5 commits into from
Apr 9, 2024

Conversation

ankush
Copy link
Member

@ankush ankush commented Apr 9, 2024

  • fix: Avoid possible cache eviction issue
  • fix: explicitly login as guest after logging out

@ankush ankush requested a review from a team as a code owner April 9, 2024 05:08
@ankush ankush requested review from akhilnarang and removed request for a team April 9, 2024 05:08
@github-actions github-actions bot added the add-test-cases Add test case to validate fix or enhancement label Apr 9, 2024
frappe/sessions.py Show resolved Hide resolved
Clear cache after removing data from DB, so a concurrent request can't put stale data in cache.
Avoids problem with some other code potentially re-adding current
session in cache or DB.
Background jobs, some other user disabling someone else etc
@ankush ankush enabled auto-merge (squash) April 9, 2024 13:13
@ankush ankush merged commit bef9bdc into frappe:develop Apr 9, 2024
23 checks passed
@ankush ankush deleted the logout_reliability branch April 9, 2024 13:26
@ankush ankush added backport version-14-hotfix backport to version 14 backport version-15-hotfix Backport the PR to v15 labels Apr 9, 2024
mergify bot pushed a commit that referenced this pull request Apr 9, 2024
* fix: Avoid possible cache eviction issue

Clear cache after removing data from DB, so a concurrent request can't put stale data in cache.

* fix: explicitly login as guest after logging out

Avoids problem with some other code potentially re-adding current
session in cache or DB.

* test: avoid hard coded admin pw

* test: reset user after running tests

* fix: only login as guest if in request

Background jobs, some other user disabling someone else etc

(cherry picked from commit bef9bdc)
mergify bot pushed a commit that referenced this pull request Apr 9, 2024
* fix: Avoid possible cache eviction issue

Clear cache after removing data from DB, so a concurrent request can't put stale data in cache.

* fix: explicitly login as guest after logging out

Avoids problem with some other code potentially re-adding current
session in cache or DB.

* test: avoid hard coded admin pw

* test: reset user after running tests

* fix: only login as guest if in request

Background jobs, some other user disabling someone else etc

(cherry picked from commit bef9bdc)

# Conflicts:
#	frappe/sessions.py
ankush added a commit that referenced this pull request Apr 9, 2024
frappe-pr-bot pushed a commit that referenced this pull request Apr 16, 2024
# [15.23.0](v15.22.0...v15.23.0) (2024-04-16)

### Bug Fixes

* filter button translation ([#25944](#25944)) ([2bea73a](2bea73a))
* frm can be missing ([9e227b0](9e227b0))
* handle empty style tag ([#25910](#25910)) ([#25916](#25916)) ([34fbf6d](34fbf6d))
* handle interface error during report timeout ([#25893](#25893)) ([#25895](#25895)) ([6784b5d](6784b5d))
* let's color tag in form view ([#25949](#25949)) ([#25954](#25954)) ([0e6820d](0e6820d))
* limit title length on form ([#25880](#25880)) ([fb24480](fb24480))
* log out reliability ([#25865](#25865)) ([72b4540](72b4540))
* make letterhead attachments public by default ([#25925](#25925)) ([#25927](#25927)) ([c5c3424](c5c3424))
* private workspace routing (backport [#25904](#25904)) ([#25921](#25921)) ([c4eeb2e](c4eeb2e))
* reset announcements after saving settings ([b4ee409](b4ee409))
* show warning for pending migrations ([#25908](#25908)) ([#25909](#25909)) ([026514e](026514e)), closes [#25880](#25880)
* title width for form ([#25958](#25958)) ([#25959](#25959)) ([7a884e2](7a884e2))
* toolbar condition for setting up widget ([e42593e](e42593e))
* use boot to store announcement ([5f14e68](5f14e68))
* use localStorage for widget content ([642db78](642db78))

### Features

* add html for widget below navbar ([ea76002](ea76002))
* add option to filter email recipients ([c175911](c175911))
* add option to set default email recipients ([#25555](#25555)) ([bc496c1](bc496c1))
* allow wildcard for doctype in permission hooks ([#25729](#25729)) ([#25892](#25892)) ([7a4fa2f](7a4fa2f))
* announcement widget in navbar settings ([a947f44](a947f44))
* **APIv2:** Add comment via REST API ([#25889](#25889)) ([#25901](#25901)) ([2751be3](2751be3))
* **Customize Form:** add "Trim Table" action (backport [#25923](#25923)) ([#25933](#25933)) ([aa32595](aa32595))
* delete failed backups ([615cd71](615cd71))
* setup widget in toolbar ([e011cfa](e011cfa))

### Reverts

* Revert "test(UI): navbar announcements" ([3b23054](3b23054))
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
add-test-cases Add test case to validate fix or enhancement backport version-14-hotfix backport to version 14 backport version-15-hotfix Backport the PR to v15
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants