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.
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".
* feat: Added Subscription Banner for remotely logging into FrappeCloud dashboard from site (#18263)
* 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>
(cherry picked from commit 68f315d372cc8c6e41f2aabda61eba0d42dcf6e4)
# Conflicts:
# frappe/patches.txt
* chore: conflicts
* style: format
[skip ci]
Co-authored-by: Rutwik Hiwalkar <50401596+rutwikhdev@users.noreply.github.com>
* fix: Add translate function to strings
fix: Add translate function to strings
* fix: add more strings to translate function
* fix: Add strings on translate function HTML tags
* fix: lint text on translate function
* fix: use single quotes on translate strings
* fix: Add template literals to translate HTML strings
* Update frappe/public/js/frappe/ui/toolbar/about.js
Co-authored-by: Shariq Ansari <30859809+shariquerik@users.noreply.github.com>
Co-authored-by: Shariq Ansari <30859809+shariquerik@users.noreply.github.com>
* fix: typo on dashboard_view
* fix: add string to translate function
* fix: add string to translate function
* fix: add string to translate function
* fix: upddate translatet text to single quote
* fix: update translated strings to single quote
* fix: add country to translate function
* fix: add country to translate function
* fix: add string to translate function
* fix: add string to translate function
* fix: add string to translate function
* fix: Revert translate for country
* fix: revert single quote to Search for icons text
* fix: refactor the translate labels directly to html variable
* Fix chart translation issue
also used .html() instead of .text() in line 58, because otherwise it resulted in html escape errors. In french ' is used in many words and when using the text() method it results in this string being inserted '
* refactor: use data attribute
for semantic consistency
Co-authored-by: Ankush Menat <ankush@frappe.io>
* fix: pypika does not parse datetime.time
(cherry picked from commit b8f5a4304cccda954822cfe69d4805a18d9f07a7)
* fix: style - imports sort order fixed
(cherry picked from commit c3562c643ab9bff38d230202675d8ce1ae190912)
* test: add test for query builder parsing datetime.time
(cherry picked from commit 99889c270199da4b26b0d3858ae0f0a416d49d90)
* fix: format_time instead of format_datetime, test was failing!
(cherry picked from commit 5d697a22ac8cb98c8f8f44b3f99c57b932c5223c)
* fix(style): linter issues
(cherry picked from commit e231e1b0eadf63e84c9f81cfed9e2926e086fc44)
* test: add test for postgres
(cherry picked from commit 695591c43af9672cb83ce856a46c97e0bddfa9c3)
* fix: converting datepart and timepart to strings for Combinedatetime
(cherry picked from commit 1ebda943a607688bfb3db9fb42c80723a9050973)
* fix: style, linter issues
(cherry picked from commit c01262ad02b8831fdb0c5332b6973499e8adf6ad)
Co-authored-by: Anoop Kurungadam <anoop@earthianslive.com>
Co-authored-by: Aradhya <aradhyatripathi51@gmail.com>
* Revert "fix: drop Meta cache during update (#18182)"
This reverts commit 656f6df257.
* fix: replace meta cache keys
Old keys stored different types of data `dict` changing key to indicate
change in type.