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: pass user and shared params when checking for cache keys (backport #26402) #26403

Merged
merged 2 commits into from May 21, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented May 10, 2024

User specific cache for redis_cache decorator was not working.

When checking for cache key existence, the user and shared params were not being passed to the exists function.

cc: @ankush


This is an automatic backport of pull request #26402 done by Mergify.

* fix: pass user and shared params when checking for cache keys

* chore(test): added test for user cache in redis_cache

(cherry picked from commit fb2753f)

# Conflicts:
#	frappe/tests/test_caching.py
#	frappe/utils/caching.py
@mergify mergify bot requested a review from a team as a code owner May 10, 2024 12:50
@mergify mergify bot added the conflicts label May 10, 2024
@mergify mergify bot requested review from ankush and removed request for a team May 10, 2024 12:50
Copy link
Contributor Author

mergify bot commented May 10, 2024

Cherry-pick of fb2753f has failed:

On branch mergify/bp/version-14-hotfix/pr-26402
Your branch is up to date with 'origin/version-14-hotfix'.

You are currently cherry-picking commit fb2753fcaf.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   frappe/tests/test_caching.py
	both modified:   frappe/utils/caching.py

no changes added to commit (use "git add" and/or "git commit -a")

To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally

@ankush ankush enabled auto-merge (squash) May 13, 2024 08:04
@ankush ankush force-pushed the mergify/bp/version-14-hotfix/pr-26402 branch from b50398a to af9920f Compare May 21, 2024 06:39
@ankush ankush merged commit 30799f7 into version-14-hotfix May 21, 2024
9 of 10 checks passed
@ankush ankush deleted the mergify/bp/version-14-hotfix/pr-26402 branch May 21, 2024 06:55
frappe-pr-bot pushed a commit that referenced this pull request May 22, 2024
# [14.75.0](v14.74.1...v14.75.0) (2024-05-22)

### Bug Fixes

* "Not assigned" filter (backport [#26468](#26468)) ([#26469](#26469)) ([6bb3534](6bb3534))
* condition of event participants ([#26300](#26300)) ([#26455](#26455)) ([d940902](d940902))
* **contact list:** add space before designation ([a67ebab](a67ebab))
* Don't fiddle with child table indexes ([#26450](#26450)) ([#26452](#26452)) ([d0d6d93](d0d6d93))
* **DX:** Don't run CI if there are no tests (backport [#26457](#26457)) ([#26465](#26465)) ([d129c01](d129c01))
* enable fetch_from for Time fieldtype ([#25266](#25266)) ([#26471](#26471)) ([#26485](#26485)) ([9cd3bf6](9cd3bf6))
* **grid_row:** don't crash when undefined ([0f91073](0f91073))
* Ignore link doctype in comments ([#26484](#26484)) ([910d4a7](910d4a7))
* pass user and shared params when checking for cache keys ([#26402](#26402)) ([#26403](#26403)) ([30799f7](30799f7))
* preserve checked items after a search ([ae9cdd2](ae9cdd2))

### Features

* what's new (v15 port of [#21014](#21014)) (backport [#25986](#25986)) ([#26494](#26494)) ([6a561d9](6a561d9))

### Performance Improvements

* num2words, babel, gettext, sentry imports (backport [#26475](#26475)) ([#26476](#26476)) ([ea873fd](ea873fd))
@frappe-pr-bot
Copy link
Collaborator

🎉 This PR is included in version 14.75.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

None yet

3 participants