Commit graph

40314 commits

Author SHA1 Message Date
Shariq Ansari
6babd4ec04
Merge pull request #18999 from CleoMenezesJr/develop 2022-11-29 18:00:04 +05:30
Shariq Ansari
cc4e2868fc
fix: keep actions on right
Make action button's font text smaller with lesser padding
2022-11-29 17:20:13 +05:30
Ankush Menat
5d1444c21c
docs: add missing help text for commands (#19039)
closes https://github.com/frappe/frappe/issues/19036

[skip ci]
2022-11-29 16:01:25 +05:30
Shariq Ansari
c46c1e66d7
Merge pull request #18887 from abdo-host/patch-1 2022-11-29 15:58:53 +05:30
Shariq Ansari
a6d715b943
Merge branch 'develop' into patch-1 2022-11-29 15:12:19 +05:30
Ritwik Puri
1113d8e611
Merge pull request #18940 from phot0n/refactor-prepared-report
refactor!: prepared report
2022-11-29 14:46:04 +05:30
phot0n
8c28a233e2 fix: check read permission when downloading prepared report file 2022-11-29 14:43:27 +05:30
phot0n
5444df7036 chore: use default timeout 25 mins for prepared report 2022-11-29 13:46:11 +05:30
phot0n
f88d76f011 chore: convert job_id to link fieldtype in prepared report doctype 2022-11-29 13:46:11 +05:30
phot0n
1a5019432d refactor(minor): disable_prepared_report -> enable_prepared_report
for role permission for page and report
2022-11-29 13:46:11 +05:30
phot0n
c8ea0a72d0 fix: render filters on refresh
onload hook gave inconsistent behaviour
2022-11-29 13:46:11 +05:30
phot0n
246caea70e test: prepared report tests
* fix: update job_id for prepared report
2022-11-29 13:46:11 +05:30
phot0n
0370c80e41 chore: patches for copying disable_prepared_report and removing prepared report settings from system settings 2022-11-29 13:46:11 +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
0d275b68f2 fix: get_prepared_data - add with_file_name param for returning filename of the attachment 2022-11-29 13:46:11 +05:30
phot0n
eea2fd9782 fix: dont show filters when not present in prepared report 2022-11-29 13:46:11 +05:30
phot0n
917dfdae78 refactor(minor): use virtual docfield for report_start_time - and renamed it to queued_at
* chore: rename Report End Time label to Finished At
2022-11-29 13:46:11 +05:30
phot0n
08bae70908 perf: use modified for fetching old logs for clearing 2022-11-29 13:46:11 +05:30
phot0n
433615beed chore: add queued_by virual docfield in prepared report 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
6218a99301 refactor(minor): dry-er code in generate_report 2022-11-29 13:46:11 +05:30
phot0n
cd468c3229 fix(ux): don't show report_name field on prepared report doc 2022-11-29 13:46:11 +05:30
phot0n
ecbafb5a23 feat(minor): add job_id column to prepared report
* chore: make report_name mandatory
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
Ankush Menat
442060a96a
Merge pull request #17150 from ankush/bulk_object_inserts
feat: bulk insert simple Docs and iterator support for db.bulk_insert
2022-11-29 13:33:25 +05:30
Ankush Menat
7a3faf23e1
Merge pull request #18664 from barredterra/csv-params
feat: configurable CSV delimiter and quoting
2022-11-29 13:27:24 +05:30
Ankush Menat
465b3f6968 test: use _dict in tests
form_dict is usually _dict, otherwise some unrelated tests will fail.
2022-11-29 11:53:52 +05:30
HarryPaulo
f25358ad63
fix: "_dict" is an invalid attribute name because it starts with "_" (#19010)
* fix: "_dict" is an invalid attribute name because it starts with "_"

* chore: move to frappe namespace
2022-11-29 11:43:23 +05:30
Ankush Menat
c89cdb4f0c test: handle multi-queue consumers 2022-11-29 11:30:12 +05:30
Ankush Menat
6dda853278
fix: broken link for email tracking pixels (#19030) 2022-11-28 20:46:51 +05:30
Shariq Ansari
abb9055be4
fix(UX): Make fetch_from read_only if fetch_is_empty is not set (#19025)
* fix(UX): Make fetch_from read_only if fetch_is_empty is not set

* Update frappe/public/js/frappe/form/controls/base_input.js

Co-authored-by: Ankush Menat <ankush@frappe.io>
2022-11-28 16:53:34 +05:30
barredterra
b1f6152f38 fix: pop from form_params 2022-11-28 12:19:14 +01:00
barredterra
2c0827dda9 fix: test reportview 2022-11-28 12:16:18 +01:00
barredterra
ee18984e1f refactor: export_query 2022-11-28 12:15:57 +01:00
barredterra
5008bc0b09 fix: fieldname referenced before assignment 2022-11-28 12:15:30 +01:00
Shariq Ansari
bb9d0e0f61 refactor: refactored file.js 2022-11-28 16:37:26 +05:30
Ankush Menat
a6af1ed542 feat: bulk insert simple Document objects 2022-11-28 15:32:20 +05:30
Ankush Menat
7ec120d2ba refactor: support generators in db.bulk_insert
When you want to insert a huge amount of docs in DB, using bulk insert
currently requries creating a huge number of objects, this is
ineffecient from memory perspective and also delays failures if any till
last step in execution.
2022-11-28 15:29:59 +05:30
Shariq Ansari
321dbfa6c7
Merge pull request #19012 from resilient-tech/fix-grid-issues 2022-11-28 15:20:12 +05:30
gavin
6062d812a1
fix(db_query): Disallow usage of certain functions in *_by (#18981)
* fix(db_query): Disallow blacklisted functions in (order|group)_by

Changes:
- allow only functions that are not blacklisted in *_by clause:
  currently just sleep
- perf improvemnts: lower, in, split, strip & other low hanging  micro optimizations

Handle the following use cases:
- upper/lower case function usages
- spaces between function name and brackets

* test(db_query): Add tests for *_by checks
2022-11-28 12:42:29 +05:30
mergify[bot]
e35c7a2a3e
Merge pull request #19024 from ankush/sess_commit
refactor: request DB transaction
2022-11-28 06:46:13 +00:00
Ankush Menat
4f162da728 fix: rollback if not commiting 2022-11-28 11:43:41 +05:30
Ankush Menat
4cc367f6c1 fix: apply rollback to all HTTP methods that can write 2022-11-28 11:34:46 +05:30
Ankush Menat
7504c1bc73 refactor: simpler commit after_request 2022-11-28 11:31:24 +05:30
Mohammad Hussain Nagaria
a534e7a66a
fix: Pass *args and **kwargs in db_insert boilerplate for Virtual DocType (#19018)
[skip ci]
2022-11-28 11:14:24 +05:30
Sabu Siyad
406f894141
feat: default value options: sort (#19019)
[skip ci]

Signed-off-by: Sabu Siyad <hello@ssiyad.com>
2022-11-28 11:09:15 +05:30
barredterra
b8b6db541a feat: german translations for export dialog 2022-11-27 17:13:22 +01:00
barredterra
1d25437121 fix: duplicate translation of field labels 2022-11-27 17:10:53 +01:00