Commit graph

252 commits

Author SHA1 Message Date
Ankush Menat
fa6dc03cc8
refactor: frappe.cache() usage to frappe.cache (#21282) 2023-06-08 11:47:17 +05:30
anandbaburajan
348f852792 fix: custom filters while exporting and creating new auto email reports 2023-05-10 19:08:01 +05:30
Anand Baburajan
b62bb8b0ec
fix: allow filter values to be saved in custom report (#20623) 2023-04-13 17:42:21 +05:30
Smit Vora
08732e50db
fix: better permission error for query_report (#20643) 2023-04-11 11:42:18 +05:30
Gavin D'souza
d357af1533 refactor: Add a maxsplit limit to string splits 2023-01-24 19:22:51 +05:30
ruthra kumar
90a4c93bf9
fix: attribute error on export of reports with additional columns (#19105) 2022-12-05 15:03:10 +05:30
phot0n
a69c82e06c feat(minor): option to show charts, total_row with prepared reports 2022-11-29 13:46:11 +05:30
phot0n
bf132ab2a8 fix: use doc.get to check if columns field exists or not 2022-11-29 13:46:11 +05:30
phot0n
18d48ddeb8 refactor: cleanup peprared result render and old logs cleanup
* directly fetch columns from result file rather than storing it in db
* remove prepared report settings from system settings
* remove disable_prepared_report from report doctype
2022-11-29 13:46:11 +05:30
phot0n
4fe8eadf5e refactor: remove unnecessary fields from prepared report
* removed ref_report_doctype
* changed title_field from ref_report_doctype to report_name (both are same)
* changed report_name field to link type
* changed autonaming to hash based
* added status in list view via document states
2022-11-29 13:46:11 +05:30
phot0n
9bfc43c148 fix: use after_insert hook for enqueuing report generation
this removes the need of additionally calling enqueue_report method

* enqueue report in long queue
* reduce the timeout from 100 mins to 30 mins
2022-11-29 13:46:11 +05:30
barredterra
d70e5e73e2 refactor: extract common methods 2022-11-26 20:00:58 +01:00
Raffael Meyer
cca25174ab
Merge branch 'develop' into csv-params 2022-11-14 12:38:51 +01:00
Raffael Meyer
09d35c74eb
fix: remove redundant translation (#18775) 2022-11-06 17:27:02 +05:30
barredterra
62d68a8be6 refactor: reuse functions from reportview 2022-10-29 18:07:51 +02:00
barredterra
40593ac1be feat: CSV params for query report 2022-10-28 19:54:33 +02:00
Ankush Menat
7c423416b4
fix: report generation - frappe monitor (#18259)
- Identify original report name correctly.
- If sending to background, don't log it.
2022-09-29 19:35:38 +05:30
Ankush Menat
967cc26fab feat: capture custom values in frappe monitor
lets monitor add extra info for:
- Save/Submit by doctype
- Report generation time by standard report name
2022-09-25 15:07:30 +05:30
Ankush Menat
0a73a3c708 refactor: stringify all non-excel types
style: incorrect EOF

test: excel export types
2022-07-12 15:53:55 +05:30
ruthra kumar
dd9fbeff4b fix: Preserve data type in excel export except for composite 2022-07-12 14:03:24 +05:30
ruthra kumar
ffd75e8a16 fix: valueerror on export with composite cell valu 2022-07-06 12:35:20 +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
Ritwik Puri
76a6c282b8
fix: use proper validations for number card validation method (#16581) 2022-04-29 16:07:40 +05:30
Rushabh Mehta
d55986d56d fix(conflicts): fix conflicts' 2022-04-18 17:29:03 +05:30
Rushabh Mehta
57a55e4225 feat(minor): Add document reference to Error Log and doc.log_error 2022-04-18 17:29:03 +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
barredterra
2956f0be11 feat: drop support of column definitions as string 2022-03-07 12:28:35 +01:00
Raffael Meyer
d22aba5d24
Merge branch 'develop' into refactor-excel-export 2022-03-07 11:12:03 +01:00
Raffael Meyer
8830141faf
refactor: reduce code duplication
Co-authored-by: gavin <gavin18d@gmail.com>
2022-03-07 11:10:21 +01:00
barredterra
3c4aa2a3dd refactor: Simplify logic in handle_duration_fieldtype_values 2022-03-03 20:28:57 +01:00
barredterra
f8b67dfbf6 feat: remove unused parameter "columns" 2022-03-03 20:28:28 +01:00
barredterra
6cdab154f5 feat: translate column names in excel file from query report 2022-03-03 19:58:08 +01:00
Deepesh Garg
c1f1bf4061 fix: Unable to open query report 2022-02-25 20:52:56 +05:30
Deepesh Garg
d5ce2b4a8c
fix: Totalling for tree view reports (#15950) 2022-02-19 21:22:35 +05:30
mergify[bot]
20e3ed9ff9
revert: "feat(minor): Implement __getitem__ in Base Document" (backport #14945) (#14946)
* Revert "feat(minor): Implement __getitem__ in Base Document (#14855)"

This reverts commit 583a7ef23923d362c85beeabe57703c2d5b12a65.

(cherry picked from commit d165fb3d477e65f7a395118f69278f2cb5c7f4e5)

* fix: keyerror in auto email report

(cherry picked from commit aac20f5d159875a5f3c9b4a6d74beec390e617dd)

Co-authored-by: Ankush Menat <ankush@frappe.io>
2021-11-11 12:13:52 +05:30
lukptr
e907f77ccd feat: prepared report read from replica 2021-11-05 15:35:43 +07:00
Shariq Ansari
1e9056c0ee fix: Multi level custom report fix 2021-10-18 20:21:38 +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
Deepesh Garg
2fcd3b556d fix: Use query report build_xlsx_data function for XLSX and CSV format 2021-08-18 22:53:35 +05:30
Ankush Menat
a6d3962b80 fix(DX): sourceURL to debug report and page JS 2021-08-04 20:40:31 +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
Deepesh Garg
4e4e0fa3d9 fix: Errors 2021-05-03 15:35:46 +05:30
Deepesh Garg
eafadcca47 fix: Error while exporting reports with duration field 2021-05-03 15:16:24 +05:30
casesolved-co-uk
15b3cc890f feat: allow query/custom reports to save custom data in the json field 2021-04-09 14:01:48 +00:00
Leela vadlamudi
82b4e6cf21
fix: custom module's query report (#12596) 2021-03-17 12:27:06 +05:30
Suraj Shetty
122ba5e353
fix: Use cint to convert column_width to int
Co-authored-by: Prssanna Desai <prssud@gmail.com>
2020-10-21 16:35:58 +05:30
Suraj Shetty
f1cb8f4e5c feat: Pass custom widths for excel columns 2020-10-16 13:42:00 +05:30
Suraj Shetty
5173b21bdb refactor: Make export_query code more readable 2020-10-16 13:40:32 +05:30
Suraj Shetty
c0494aac5a fix: Handle empty row 2020-10-16 10:46:56 +05:30
Suraj Shetty
ab368994b0 fix: Use get to avoid key error 2020-10-13 16:09:29 +05:30