Commit graph

5850 commits

Author SHA1 Message Date
Ankush Menat
05ff5646c5 chore: let people disable/edit scripts even if disabled 2023-08-28 11:48:43 +05:30
Ankush Menat
08efd373ee fix(DX): sort recorder queries 2023-08-26 19:27:55 +05:30
Ankush Menat
730e906dfd
refactor!: remove implicit primary key from logs (#22209) 2023-08-26 16:01:47 +05:30
Ankush Menat
ea1e73568c
fix: clear server script cache on delete (#22207) 2023-08-26 12:44:12 +05:30
Ankush Menat
31bdb209ed chore: add star imports back for backward compat 2023-08-23 17:48:54 +05:30
Shariq Ansari
1434556a64
Merge pull request #22166 from shariquerik/move-connection-to-tab 2023-08-23 16:56:11 +05:30
Gursheen Anand
9630df16a5 test: rows added dict 2023-08-23 15:51:33 +05:30
Ankush Menat
74d87796af
Merge pull request #22141 from ankush/server_script_shared
refactor!: Disable server scripts by default
2023-08-23 15:19:54 +05:30
Shariq Ansari
e0944419ca fix: moved doctypes's conections to separate tab 2023-08-23 15:16:05 +05:30
Ankush Menat
56b409d069
fix: limit job count in RQ failed registry (#22162)
* fix: limit job count in RQ failed registry

* chore: remove unnecessary test

This just checks if func is called with right values, which keep
changing as things evolve.
Everything is individually tested now so need for this test.
2023-08-23 09:21:51 +00:00
Ankush Menat
1390b972a8 fix(DX): let users know that server scripts are disabled 2023-08-23 14:49:05 +05:30
Ankush Menat
6e0b522ae3 refactor!: Disable server scripts by default
- Move the config to bench level and not site level because, server
  script "threat model" requires consent from a bench owner and not
  individual site.
- While this is a breaking change which people may not like, we believe
  it's essential to improve security model of Frappe.
2023-08-23 14:49:05 +05:30
Ankush Menat
11806c37a0 feat: error logs to include trace id 2023-08-23 14:20:24 +05:30
Gursheen Anand
c598fde22e feat: add html template for additions and deletions 2023-08-23 12:30:08 +05:30
Gursheen Anand
57e4e0bc30 feat: add js for rendering html grids 2023-08-23 12:29:19 +05:30
Gursheen Anand
98437f1c30 feat: add logic for addition and deletion grids 2023-08-23 12:27:34 +05:30
Gursheen Anand
a0fe974530 feat: add collapsible sections for row additions and deletions 2023-08-23 12:26:35 +05:30
Raffael Meyer
6ea739e4cf
refactor(File): explicitly import utils (#22143) 2023-08-23 11:08:22 +05:30
Raffael Meyer
8f1c083857
Revert "chore: typo" (#22139)
This reverts commit 3784ce8507.
2023-08-21 18:56:48 +05:30
Himanshu Shivhare
3784ce8507
chore: typo
typo fix

Co-authored-by: Ankush Menat <ankush@frappe.io>
2023-08-21 14:43:48 +05:30
Gursheen Anand
f916c6821e test: changed fields and rows 2023-08-21 13:07:49 +05:30
Ankush Menat
85ca83ae45 Revert "feat: allow re-running patches in developer mode"
This reverts commit 3bbe4498a0.
2023-08-21 13:06:42 +05:30
mergify[bot]
d6d82eb581
Merge pull request #22110 from resilient-tech/perf-as_dict-2
perf: undo regression in `as_dict` performance
2023-08-21 06:10:54 +00:00
barredterra
5944d387be Merge remote-tracking branch 'upstream/develop' into refactor-attach-print 2023-08-20 15:38:05 +02:00
Sagar Vora
7dc67f2feb chore: add back getattr for virtual docfields which get value from a property 2023-08-18 21:51:56 +05:30
Gursheen Anand
4bc3d2e4b2 feat: add validation for mandatory fields 2023-08-18 18:25:25 +05:30
Gursheen Anand
6dbbdd0afe refactor: code cleanup 2023-08-18 18:14:23 +05:30
Ankush Menat
a1927bcf31 fix: delete prepared report job from queue 2023-08-18 17:48:14 +05:30
Gursheen Anand
53f5280af0 fix: multiple rows changed in each table 2023-08-18 17:27:11 +05:30
Gursheen Anand
0b00aabc6a fix: remove indicator 2023-08-18 11:27:34 +05:30
Gursheen Anand
c3d0ab5f9a feat: add html template for comparator 2023-08-18 11:04:31 +05:30
Gursheen Anand
ef7af5e849 fix: child rows for cancelled docs in getdiff 2023-08-18 11:03:34 +05:30
Gursheen Anand
e53a78544c feat: add logic for changed values and rows 2023-08-18 11:00:52 +05:30
Gursheen Anand
513f74ffa6 feat: create single doctype for comparator 2023-08-18 10:59:00 +05:30
Ankush Menat
c7847395da
fix: remove thread-unsafe class attributes (#22097)
The problem is same as mutable defaults. Container type class attributes
are mutable and shared between all objects.

```python
class CLS:
    attr = {}
    ...

a = CLS()
b = CLS()

a.attr is b.attr  # => True
```
2023-08-17 20:11:20 +05:30
Suraj Shetty
77e5ad26fe
Merge pull request #21819 from marination/attachments-access 2023-08-17 09:46:30 +05:30
barredterra
2ad4b2ad53 fix(DX): hide irrelevant sections in DocType
If the DocType is a child table, hide sections "Form Settings",
"View Settings", "Web View", "Actions", "Linked Documents",
"Email Settings" and "Document States".
2023-08-14 17:36:32 +02:00
Raffael Meyer
bd7072f9ff
refactor: get_system_users (#21992) 2023-08-14 13:58:55 +05:30
Ankush Menat
74d78dafce chore: dont render query as reqd/bold
[skip ci]
2023-08-13 17:20:58 +05:30
Ankush Menat
cbe816347e
Merge pull request #22017 from GursheenK/implement-like-in-compare-util
feat: implement like in compare util
2023-08-11 22:16:12 +05:30
Ankush Menat
7a5a0c27a2 fix: Support SQL like LIKE filter
Other changes:
- Ignore empty doctype in filter creator
- Simplified recorder filter evals
2023-08-11 21:24:38 +05:30
Gursheen Anand
9ad5f662c6 refactor: remove operator check for like in recorder 2023-08-11 15:38:57 +05:30
Gursheen Kaur Anand
f3f141c444
chore: use template string for html (#22011) 2023-08-11 12:42:57 +05:30
Ankush Menat
b2cc015f23
Merge pull request #21908 from GursheenK/virtual-doc-for-frappe-recorder
feat: virtual doctype for frappe recorder
2023-08-10 21:48:52 +05:30
Gursheen Anand
67111346c3 test: recorder filter sort and serialization 2023-08-10 20:50:36 +05:30
Ankush Menat
5a7348668a Merge branch 'develop' into virtual-doc-for-frappe-recorder 2023-08-10 12:57:16 +05:30
Ankush Menat
8ffd363ccf fix: missing order by clause and tests 2023-08-10 12:40:23 +05:30
Ankush Menat
de932b464f refactor: delete old recorder and rename new one 2023-08-10 12:23:41 +05:30
Ankush Menat
94ee52c11b fix: if request is deleted then 404 2023-08-10 11:54:00 +05:30
Ankush Menat
56edc2a202 chore: hide comment count 2023-08-10 11:52:42 +05:30