Commit graph

5514 commits

Author SHA1 Message Date
Rucha Mahabal
c4fa8ea34c chore: set concise card descriptions 2024-01-23 17:43:33 +05:30
Rucha Mahabal
0b584814d4 feat: add card descriptions for Build workspace 2024-01-23 17:43:33 +05:30
Ankush Menat
ee6743c26b
fix: avoid mutating list while iterating over it (#24438) 2024-01-18 05:44:30 +00:00
Ankush Menat
c177431557
perf: Document objects without circular references (#17080)
* perf: `Document` objects without circular references

Circular references are usuallly considered bad for GC, avoiding them
since they don't seem to be necessary.

* fix: explicitly convert to weakref
2024-01-17 17:22:55 +05:30
Ankush Menat
ea08418d7d
fix: ignore unique fieldname validation during migrate (#24413)
This can be addressed later instead of failing a migrate
2024-01-17 08:52:05 +00:00
Ankush Menat
484049c5ae
fix: simultenous sessions ux (#24387)
* fix: set 2 as simultaneous_sessions by default

* fix: Correct offset for simultaneous_sessions

* refactor: use freeze_time instead of patching

* chore: misleading docstring

* test: set lower simultaneous_sessions for test
2024-01-16 13:36:05 +00:00
Ankush Menat
d5d9b12472
test: flaky server tests (#24301)
* Revert "fix(test_recorder): get the correct request (#24143)"

This reverts commit 745080c56e.

* test: disable recording before running assertions

* test: Dont set emails in test for broken email setup
2024-01-15 08:09:46 +00:00
Ankush Menat
b3eaec4347
fix: misc (#24303)
* fix(DX): improve logging in various places

* fix(ux): misc RQ worker and job fixes
2024-01-13 10:54:38 +05:30
RitvikSardana
1666b0104f
fix: convert status field data to String before guessing the style (#24226)
* fix: status field should only be of type 'Select'/'Data'/'Check'

* chore: change code position

* fix: convert status field data to string to handle all cases

* chore: use cstr

---------

Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
2024-01-12 17:41:21 +05:30
Ankush Menat
4dc9cd39ae chore: rename permission debugger to inspector 2024-01-11 22:01:38 +05:30
Ankush Menat
5ef8577cff
fix!: Stricter requirement for permission hooks (#24253)
BREAKING CHANGE:

before: `has_permission` hooks need to explicitly return "False" to block a user.

after: `has_permission` hook need to explicitly return "True" (or truthy) value to allow user. They will be blocked otherwise.

Why? Everything related to permission should be block by default and allow if some checks pass.
2024-01-11 01:35:08 +05:30
Ankush Menat
9620a3c596 Merge branch 'develop' into po-translation 2024-01-10 16:17:47 +05:30
Ankush Menat
914406d31b feat: extend perm debugging to popular controllers
- [x] File
- [x] Communication
2024-01-10 15:16:52 +05:30
Ankush Menat
3a8fc90961
feat: permission debugger (#24239)
* feat: permission debugger

This PR adds a virtual doctype that can run has_permission for
doctype-docname-user-ptype combinations and spit out detailed log for
why/where some permissionw as denied or granted.

This isn't supposed to be programatic, it's just textual dump of what code is doing.

IMO a better debugger can be written but that will require extensive
rewrite of perm checks first. All debugging, error messages in current
systems are bolted on top with hacks to avoid messing with
implementation.

* fix: capture UP pass check

* fix: reset docname on changing doctype

* fix: docname is optional

* fix: debug doctype perms
2024-01-10 09:29:13 +00:00
Akhil Narang
076687bdbf
Merge pull request #24188 from akhilnarang/dont-convert-email-lowercase
fix(communication): don't change email case
2024-01-08 17:14:05 +05:30
Shariq Ansari
54ecae0656
fix: Allowed standard fields in data export ( creation, owner) (#24187)
Co-authored-by: Pavan Kumar Yekabote <yekabotep@gmail.com>
2024-01-08 17:09:13 +05:30
Akhil Narang
e3bafe15b6
fix(communication): don't change email case
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-01-08 16:31:03 +05:30
Shariq Ansari
c1ebfc64b6 fix: copy content on reply 2024-01-08 15:08:13 +05:30
Shariq Ansari
6d40d1c6da
Merge pull request #24170 from shariquerik/precision-in-webform
fix: added precision field in webform field
2024-01-08 14:57:30 +05:30
Shariq Ansari
50e43df26b fix: include Web Form Field in core_doctypes 2024-01-08 14:32:56 +05:30
Akhil Narang
35ea093b51
feat: support background jobs in recorder
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-01-04 15:51:26 +05:30
Ankush Menat
cc9679ac76
Merge pull request #24086 from AlexandreLumertz/patch-1
fix: timeout occurs when there are too many users linked to the profile
2024-01-03 15:54:10 +05:30
Ankush Menat
1a9aba2858
test: remove invalid assertion (#24101)
This workspace no longer exists so test fails.
2024-01-03 15:53:30 +05:30
Ankush Menat
3a7efa9ad1 perf: Update roles affected by role profile in background 2024-01-03 15:37:48 +05:30
Ankush Menat
6e8fe0f855 fix(DX): Correct syntax highlighting in report 2024-01-03 15:29:24 +05:30
Ankush Menat
3dfb2d0d4f fix: hide script in query report
It's not used at all so why show it?
2024-01-03 15:14:51 +05:30
Rushabh Mehta
d1f2f42015 fix(minor): move missing settings to tools 2024-01-02 15:47:53 +05:30
Rushabh Mehta
4756bfda20 fix(minor): Remove unused Settings workspace and some minor style fixes 2024-01-02 15:25:28 +05:30
Ankush Menat
2b23b8d663
fix: validate server scripts with FrappeTransformer (#24068) 2024-01-02 07:19:20 +00:00
Ankush Menat
8a7707e3fa
fix(DX): store tracebacks with context (#24059) 2024-01-01 07:16:47 +00:00
Hussain Nagaria
ce3e029769 fix: incorrect class tags generation 2023-12-29 21:12:21 +05:30
Jannat Patel
bdc495f5d1
fix: show right permission for user cannot create doctypes (#24027) 2023-12-29 11:54:03 +05:30
Ankush Menat
0f099b1f1f fix: unconditionally pop ignore_user_type filter
This isn't a real column.

SENTRY: FRAPPE-13Z
2023-12-28 19:11:10 +05:30
mergify[bot]
a9bb994f15
fix!: deterministic fixture import order (#22210)
* feat: #20753 fixture export prefix and fixture import order

(cherry picked from commit 6a9c56a568e4ccf181fe9cb4153d0b9e4f02ac3d)

* refactor: clarify prefix logic, see c4866921df (r1196249038)

(cherry picked from commit cd2519e71e5545bd4c706369df3ea05843a0bfd9)

* style: format

* refactor: conditionally sort documents when importing

* refactor: simplify code

* feat: Unittest as requested in https://github.com/frappe/frappe/pull/22210#discussion_r1331587501

---------

Co-authored-by: To Finke <tom.finke@webterra.de>
Co-authored-by: Ankush Menat <ankush@frappe.io>
2023-12-28 14:24:45 +05:30
Ankush Menat
ac338b07da
Merge pull request #23975 from niraj2477/fix/import-log
fix(Data Import): show failed import logs
2023-12-28 11:09:31 +05:30
Ankush Menat
c7e5afee6a refactor: Use arr.includes(item) instead of in_list(arr, item) 2023-12-27 19:33:13 +05:30
Akhil Narang
34f03a2de2
fix(data_import): respect the value of show_failed_logs checkbox
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2023-12-27 16:58:04 +05:30
14987
2e730d7056
fix(Data Import): show failed import logs 2023-12-27 15:06:24 +05:30
barredterra
483fa15c8f fix: clear translation cache
- Cache was not getting cleared, since it's user-specific
- Remove unused implementation from gettext
2023-12-26 23:17:31 +01:00
barredterra
d384bb4506 Merge remote-tracking branch 'upstream/develop' into po-translation 2023-12-26 16:45:05 +01:00
barredterra
62d634eab4 Revert "fix: check the correct email account"
This reverts commit 2507c6af97.
2023-12-22 11:28:05 +01:00
Ankush Menat
4d68a46b10
fix: Set default child table fields on save (#23913)
We set defaults on creation of new doc but when you append a new child
doc on existing document it doesn't seem to set the defaults.

This seems like a bug and not a deliberate choice.
2023-12-22 08:02:36 +00:00
Ankush Menat
0fd6f5eed7
Merge pull request #23827 from frappe/api-docs
docs: add Python API missing docstrings / type hints
2023-12-21 12:13:05 +05:30
Kunhi
b4d3132bf4
fix: optimize clear_permissions_cache method (#23858)
* fix:optimize clear_permissions_cache method

* fix: faster clear user cache on perm change

---------

Co-authored-by: Ankush Menat <ankush@frappe.io>
2023-12-20 16:26:17 +05:30
Daizy Modi
5213915d66
fix: render new doctype dialog box if doctype is not copied (#23854) 2023-12-20 14:11:01 +05:30
Hussain Nagaria
ecdd7b3e37 docs: consistency 2023-12-20 14:02:32 +05:30
Ankush Menat
1cbcf537d9 fix: Allow periodically clearing deleted documents 2023-12-20 12:09:15 +05:30
Hussain Nagaria
8d2137c265 docs: consistent doc strings 2023-12-18 18:27:39 +05:30
Akhil Narang
f110b6eea3
refactor(data_import): handle RQ timeouts better (#23811)
* refactor(data_import): handle RQ timeouts better

Signed-off-by: Akhil Narang <me@akhilnarang.dev>

* refactor(data_import): display count of documents even for timed out jobs

Also handle "0" cases better - should be plural there

Signed-off-by: Akhil Narang <me@akhilnarang.dev>

---------

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2023-12-18 10:56:51 +05:30
Hussain Nagaria
49a4663228 docs: html2text 2023-12-16 16:49:35 +05:30