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

perf!: simpler frappe.get_system_setting #16685

Merged
merged 1 commit into from
Apr 20, 2022

Conversation

ankush
Copy link
Member

@ankush ankush commented Apr 20, 2022

Not sure why this needs to be "cached" in locals again when db object already caches it in value_cache.

Breaking Change: Got rid of local frappe.local.system_settings, which doesn't seem to be used by anywhere. Accessing this directly is dangerous anyway since it depends on whether get_system_settings was called with required key or not.

Not sure why this needs to be "cached" in locals again when db object
already caches it in value_cache.
@ankush ankush requested a review from a team April 20, 2022 07:16
@ankush ankush changed the title perf!: simpler frappe.get_system_setting perf!: simpler frappe.get_system_setting Apr 20, 2022
@codecov
Copy link

codecov bot commented Apr 20, 2022

Codecov Report

Merging #16685 (d5afe44) into develop (0a1b75c) will decrease coverage by 1.14%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop   #16685      +/-   ##
===========================================
- Coverage    53.90%   52.76%   -1.15%     
===========================================
  Files          752      752              
  Lines        67283    67279       -4     
  Branches      5736     5736              
===========================================
- Hits         36269    35498     -771     
- Misses       26945    27712     +767     
  Partials      4069     4069              
Flag Coverage Δ
server 60.19% <100.00%> (-1.78%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@ankush ankush merged commit dcee400 into frappe:develop Apr 20, 2022
@ankush ankush deleted the get_system_setting branch April 20, 2022 09:46
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants