* fix: progress bar not disappearing
* style: format
[skip ci]
Co-authored-by: Ankush Menat <ankush@frappe.io>
(cherry picked from commit 729be707cb)
Co-authored-by: stephen <stephenBDT@users.noreply.github.com>
* feat: dry run in test runner for debuggin
* refactor: load balance TestRunner using # of tests
(cherry picked from commit cfee53d573)
Co-authored-by: Ankush Menat <ankush@frappe.io>
* perf: single query `db.set_value`
(cherry picked from commit cee2b50461)
* fix: better cache validation
- Only delete a single doc if we know which doc changed
- Drop all docs other wise (kinda bad, but this isn't used frequently,
will fix when visiting entire caching system again)
(cherry picked from commit bfa6a5fbdf)
Co-authored-by: Ankush Menat <ankush@frappe.io>
* refactor: use file api for reading data in import
* fix: remove unused import
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
Co-authored-by: Faris Ansari <netchampfaris@users.noreply.github.com>
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
The implementation of syncing unique and non-unique index depended on
index names which used to be different before because of that there's
tendency to incorrectly identify index.
This PR adds a separate util for checking if a column has index without
relying on naming convention. It just goes and checks if there's any
index with that column in it, hence far more reliable.
(cherry picked from commit cbe4b59100)
Currently we are doing aggregation of remaining slices manually BUT this
breaks basic principle of DRY:
- dashboard chart decides how many groups to consider
- frappe charts has different maxSlices config
This results in mess like frappe computing "Other" and Frappe charts
computing "rest" separately.
Fix: Just pass all data to charts and let it figure out the "Rest".
(cherry picked from commit d597acb5e2)
Co-authored-by: Ankush Menat <ankush@frappe.io>
- set center and zoom for leaflet.
Co-authored-by: Abhinav Raut <abhinav.raut@zerodha.com>
(cherry picked from commit fd81a290b2)
Co-authored-by: Abhinav Raut <abhinavrautcs@gmail.com>
* feat: added Subscription Banner and Manage Subscription button
* feat[patch]: added a patch for adding `Manage Subscription` button in
navbar_settings
* chore: removed console ;)
* refactor: make the `Manage Subscription` navbar item optional
* keep it hidden by default, only show when the site configs are present
* style: prettier, isort and stuff
* chore: handling null responses, translation and refactored patch
* fix: correct index reset
* perf: reduce network/db calls
If not sys manager then why make a request?
* fix: removed network call and added subscription_expiry to boot process
* chore: added enable_manage_susbcriptions as daily background job and refactored patch
* chore: added hook to hooks.py
* this looks clean enough, also don't have insert for child tables ;)
Co-authored-by: Ankush Menat <ankush@frappe.io>
* fix: Chart filter not working if not operator is used
(cherry picked from commit 3162d192b8)
* fix: added missing operators
(cherry picked from commit fc1e01555b)
Co-authored-by: Shariq Ansari <sharique.rik@gmail.com>
- Identify original report name correctly.
- If sending to background, don't log it.
(cherry picked from commit 7c423416b4)
Co-authored-by: Ankush Menat <ankush@frappe.io>