Commit graph

34 commits

Author SHA1 Message Date
Akhil Narang
26ae0f3460
fix: ruff fixes
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-07 17:04:31 +05:30
Akhil Narang
fbc88a4d24
refactor(treewide): code cleanup
Drop redundant bool conversion

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2023-11-23 13:57:51 +05:30
barredterra
b553ed98d8 refactor: inline immediately returned variable
Inline a variable to a return in the case when the
variable being declared is immediately returned
2023-08-08 18:09:49 +02:00
Ankush Menat
fa6dc03cc8
refactor: frappe.cache() usage to frappe.cache (#21282) 2023-06-08 11:47:17 +05:30
Ritwik Puri
7f4974e923
Merge branch 'develop' into sync-dashboard 2022-09-12 16:19:19 +05:30
phot0n
1d27f936e9 fix: allow syncing of dashboard even if setup is not complete 2022-09-12 16:03:06 +05:30
phot0n
51ac3e8a99 fix: sync app dashboard on app install
* chore: fix sync_dashboards' docstring
2022-09-12 00:01:21 +05:30
Ankush Menat
55617b9e86 fix: defer logging during read only mode
Deferred:
- Error log
- view log
- web page view

Disable:
- "_seen" tracking used on list view to highlight unseen docs.
- "seen" on error log.
- dashboard chart last ts caching
2022-09-09 17:34:46 +05:30
Ankush Menat
81b37cb7d2
refactor: clean up code to py310 supported features (#17367)
refactor: clean up code to py39+ supported syntax

- f-strings instead of format
- latest typing support instead of pre 3.9 TitleCase
- remove UTF-8 declarations.
- many more changes

Powered by https://github.com/asottile/pyupgrade/ + manual cleanups
2022-07-01 11:51:05 +05:30
chillaranand
25f82e966c refactor: Remove unused imports & code 2022-05-19 15:34:35 +05:30
Suraj Shetty
c0c5b2ebdd
style: format all python files using black (#16453)
Co-authored-by: Frappe Bot <developers@frappe.io>
2022-04-12 10:59:25 +05:30
Gavin D'souza
3446026555 chore: Update header: license.txt => LICENSE
The license.txt file has been replaced with LICENSE for quite a while
now. INAL but it didn't seem accurate to say "hey, checkout license.txt
although there's no such file". Apart from this, there were
inconsistencies in the headers altogether...this change brings
consistency.
2021-09-03 12:02:59 +05:30
Gavin D'souza
e407b78506 chore: Drop dead and deprecated code
* Remove six for PY2 compatability since our dependencies are not, PY2
  is legacy.
* Removed usages of utils from future/past libraries since they are
  deprecated. This includes 'from __future__ ...' and 'from past...'
  statements.
* Removed compatibility imports for PY2, switched from six imports to
  standard library imports.
* Removed utils code blocks that handle operations depending on PY2/3
  versions.
* Removed 'from __future__ ...' lines from templates/code generators
* Used PY3 syntaxes in place of PY2 compatible blocks. eg: metaclass
2021-05-26 15:31:29 +05:30
prssanna
7f43169c4a refactor: reorganise date functions indashboard_chart.py 2020-10-28 00:11:43 +05:30
prssanna
e6a986559e fix(patch): create new docs for customized standard dashboards 2020-07-15 14:31:26 +05:30
Suraj Shetty
72615449db fix: Use import_file_by_path to sync dashboard 2020-07-15 14:19:51 +05:30
prssanna
ef3b50152c fix: simplify sync dashboards code 2020-07-09 13:27:08 +05:30
prssanna
6f83e81d6f fix: error name 2020-07-06 12:17:05 +05:30
prssanna
5b0d05b6d3 fix: remove ununsed imports, functions 2020-07-06 12:15:47 +05:30
prssanna
481c838b9b refactor: refactor dashboard sync
- sync charts, cards, dashboards on update
- set dynamic filters in form
2020-07-06 12:15:47 +05:30
prssanna
38fe804a11 fix: remove unused imports, variables 2020-07-06 12:14:28 +05:30
prssanna
3aa3832bd3 feat: sync dashboards from json files 2020-07-06 12:11:57 +05:30
Shivam Mishra
970cf01eb0 fix: handle import error explicitly 2020-06-15 13:17:35 +05:30
Shivam Mishra
a4e4b8ba26 fix: catch all exception in get_config 2020-06-12 15:54:24 +05:30
Shivam Mishra
073c5379d3 refactor: handle exception in syncing dashboard (#10522)
(cherry picked from commit e222961b33)
2020-05-28 09:46:12 +00:00
mergify[bot]
1a523b24c3
Merge pull request #10193 from prssanna/heatmap-chart
feat: Heatmap type Dashboard Charts
2020-05-14 12:27:12 +00:00
Chinmay Pai
e527191975
fix: do not setup charts if not setup_complete (#10282)
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-05-11 19:55:51 +05:30
prssanna
31a523a720 feat: add year filter to heatmap charts 2020-05-08 18:33:23 +05:30
Rohit Waghchaure
198041a5ef fix: dashboard sync issue 2020-05-08 03:54:39 +05:30
Shivam Mishra
213b0a2288 style: remove unused import 2020-05-06 16:50:44 +05:30
Shivam Mishra
7df3d2e585 fix: sync number cards before dashbaords 2020-05-06 16:47:27 +05:30
Shivam Mishra
61d07941b8 feat: allow number cards in sync 2020-05-06 16:46:49 +05:30
Shivam Mishra
52eee67217 feat: added sync dashboard utility 2020-05-06 14:44:41 +05:30
Shivam Mishra
0ff51a257d refactor: move dashboard utilities to frappe.utils 2020-05-06 13:18:02 +05:30
Renamed from frappe/core/page/dashboard/dashboard.py (Browse further)