Commit graph

37829 commits

Author SHA1 Message Date
David Arnold
d17136cd04
fix: redirect cssutils logger to file (#28692) 2024-12-08 13:42:18 +05:30
Sumit Bhanushali
4bb972e0b9
Merge pull request #28690 from iamejaaz/select-all-column-child-table
feat: add select all button to select all column in child table
2024-12-08 10:14:11 +05:30
David Arnold
1e6208a774
fix: pending deprecations with unspecified graduation (#28704) 2024-12-08 02:19:19 +00:00
David Arnold
0ff4c73e18
fix: bencher scoping (#28703)
* fix(bench_interface): sites loading

* feat(bench_interface): guard against naive scoping back to all sites

* refactor(bench_interface): remove 'scope' methods for (newer) site_name
2024-12-08 01:37:42 +00:00
David Arnold
cc4cbfa826
refactor: simplify bench_interface class hierarchy and path resolution (#28697)
closes: #28696
2024-12-07 15:59:42 +00:00
David Arnold
c8a972a039
feat: add local deprecation descriptor (in reserve; not used) (#28695)
* feat: add local deprecation descriptor (in reserve; not used)
2024-12-07 14:33:06 +00:00
David Arnold
fef569e284
refactor: simplify bencher (#28694)
* chore: flatten bencher class layout

* chore: rename bencher to clarify

* docs: add file level docstrings
2024-12-07 14:10:03 +00:00
David Arnold
c5b7910ded
fix: improve bencher (#28693) 2024-12-07 12:53:17 +00:00
Ejaaz Khan
dbc8a60000 feat: add select all button to select all column in child table 2024-12-07 01:39:34 +05:30
David Arnold
3d71f594d8
refactor: bench class inauguration (#28158)
* feat: Add bench layout classes and configuration handler

Bench layout: (`frappe.bench`)

- Layout by env variable, e.g. FRAPPE_BENCH_PATH, FRAPPE_SITES_PATH, etc
- Detecting modules and apps by the presence of a sentinel .frappe file
- Site is scoped by frappe.local.site_name (thread safe)

Config handler: (`frappe.bench.sites{,.site}.config`)

- Optional config registry for better discovery; warning if not specced
- Env variable overload with `FRAPPE_` prefix

* chore: type frappe.config

* chore: type frappe.bencher

* chore: py310 compat
2024-12-06 19:07:34 +01:00
Sumit Bhanushali
bebc75e635
Merge pull request #28686 from aerele/insert-below-button
fix: hide insert below button in submitted document
2024-12-06 23:35:47 +05:30
vimalraj27
5a3f4c34cc chore: add indent 2024-12-06 18:24:12 +05:30
vimalraj27
7833911b6f fix: hide insert below button in submitted document 2024-12-06 17:16:18 +05:30
Smit Vora
6b02484f1c
feat: bulk update docs using case when queries (#28483) 2024-12-06 11:34:25 +00:00
Akhil Narang
94fe90de66
refactor: pytz -> ZoneInfo
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-12-06 16:14:05 +05:30
Akhil Narang
ad1ed62652
fix: handle ZoneInfoNotFoundError
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-12-06 16:01:43 +05:30
Gavin D'souza
d521ac124d
style: Sort imports & move whitespaces to please ruff 2024-12-06 15:43:33 +05:30
Gavin D'souza
00163f5bf4
fix: Re-define utils to match previous behaviour 2024-12-06 15:43:33 +05:30
Gavin D'souza
7e2e5f80b9
fix: Usage of tzinfo replace when no tz is specified 2024-12-06 15:43:33 +05:30
Gavin D'souza
c6580b5880
refactor: Replace pytz to std lib zoneinfo & datetime
Signed-off-by: Gavin D'souza <gavin.dsouza@switchup.de>
2024-12-06 15:43:33 +05:30
Rushabh Mehta
fd1357cd3d
Merge pull request #28536 from iamejaaz/scrollable-child-table
feat: make child table scrollable
2024-12-06 12:55:43 +05:30
Ejaaz Khan
aa37ddf783 refactor: add styles for col four to twelve 2024-12-05 23:08:15 +05:30
Akhil Narang
83abab394e
Merge pull request #28675 from 0xD0M1M0/fix-email-sent-folder
fix: (IMAP) E-Mail Sent Folder Customization
2024-12-05 15:36:49 +05:30
David Arnold
6e02bfedcd
fix: add backward compatibility for 5 item filter (#28678) 2024-12-05 09:10:45 +00:00
0xD0M1M0
620488b54a
fix: if Sent blank update
Co-authored-by: Akhil Narang <me@akhilnarang.dev>
2024-12-05 08:49:16 +01:00
mahsem
3dcc327060
fix: add label for translation in shortcut_widget.js 2024-12-05 08:30:02 +01:00
0xD0M1M0
49e597d219 fix: pre-commit run 2024-12-05 07:11:43 +00:00
David Arnold
75377aaaf5
refactor(typing): type filters (#28218)
* chore(typing): type filters

* chore(typing): type filters for get_list et al

* fix: dashboard chart filter expression

* test: fix case with new-style right hand object to equality check

* chore: place new typed filter under typing verification

* chore: remove debug print statment

* chore: inverse logic of type guard

* fix: add float to filter value types

* chore: clarify value naming
2024-12-04 23:18:53 +00:00
0xD0M1M0
69670229bd fix: IMAP E-Mail Sent Folder Customization
Fixes https://github.com/frappe/frappe/issues/28630
2024-12-04 23:37:52 +01:00
David Arnold
d3cbd2d4be
fix: type narrowing (#28673) 2024-12-04 16:58:37 +00:00
Akhil Narang
a390992408
chore: python3.13 support (#28624)
* chore: python3.13 support

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

* chore: bump pydantic

```
  error: the configured Python interpreter version (3.13) is newer than PyO3's maximum supported version (3.12)
        = help: please check if an updated version of PyO3 is available. Current version: 0.21.2
        = help: set PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 to suppress this check and build anyway using the stable ABI
```

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

* chore: bump uuid-utils

https://katb.in/ahaqabugefo

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

* chore: bump RestrictedPython

7.4 has support for py3.13
https://restrictedpython.readthedocs.io/en/latest/changes.html#id1

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

* fix(deprecation_dumpster): import functools uncondtionally

Used here: 60f0b1d5c7/frappe/deprecation_dumpster.py (L177C10-L177C19)

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

* chore(docref): improve error message

* fix: error on unability to hash; TypeError expected

* fix: migrate from 3.10 onwards

---------

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
Co-authored-by: David <dgx.arnold@gmail.com>
2024-12-04 15:35:06 +00:00
Raffael Meyer
5c4dc84bad
fix: handle empty images (#28669)
Resolves #28668
2024-12-04 16:16:42 +01:00
Akhil Narang
a1296433b0
Merge pull request #28655 from akhilnarang/change-default-max-module-depth
chore: set default `max_module_depth` to 0
2024-12-04 17:33:19 +05:30
Akhil Narang
c3bcfdead5
chore: set default max_module_depth to 0
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-12-04 17:19:02 +05:30
Frappe PR Bot
a847ef14d7
fix: sync translations from crowdin (#28635)
* fix: French translations

* fix: Spanish translations

* fix: Arabic translations

* fix: German translations

* fix: Swedish translations

* fix: Turkish translations

* fix: Persian translations

* fix: Bosnian translations

* fix: Esperanto translations

* fix: Hungarian translations

* fix: Chinese Simplified translations

* fix: Polish translations

* fix: Russian translations

* fix: Spanish translations

* fix: German translations

* fix: Swedish translations

* fix: Persian translations

* fix: Swedish translations
2024-12-04 16:09:39 +05:30
Akhil Narang
bd42b5df9f
Merge pull request #28656 from UmakanthKaspa/fix/no-copy-child-duplicate
Fix: Exclude "No Copy" Fields in Child Table Duplication
2024-12-04 16:09:19 +05:30
Akhil Narang
a073984926
Merge pull request #28660 from akurungadam/tab-ms-events
feat: add, before_remove and remove event triggers for Table MultiSelect
2024-12-04 16:06:43 +05:30
Akhil Narang
1a45cd3ab0
chore(cint): explicitly handle NoneTypes
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-12-04 15:36:25 +05:30
Akhil Narang
9c9349b74f
Merge pull request #28658 from akhilnarang/flt-explicit-handle-nonetype
chore(flt): explicitly handle NoneTypes
2024-12-04 15:21:42 +05:30
Akhil Narang
372d3953ae
Merge pull request #28659 from akhilnarang/bump-ruff
chore(deps): bump ruff
2024-12-04 15:21:08 +05:30
Anoop Kurungadam
07944b7181 feat: add option to add cscript for Table MultiSelect 2024-12-04 13:35:49 +05:30
Akhil Narang
72d658a256
fix(desktop): manual fixup on top of ruff's changes
This seems like what the original code wanted to do, I think

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-12-04 13:23:52 +05:30
Akhil Narang
84ef6ec677
refactor: fixup with ruff 0.8.1
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-12-04 13:18:04 +05:30
Akhil Narang
cfeb1224e6
chore(flt): explicitly handle NoneTypes
These were implicitly handled due to the catch-all 0.0 return, but type checkers break here, and a lot of places depend on this behaviour

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-12-04 12:54:46 +05:30
Akhil Narang
7a23f5579a
fix: our system setting date formats aren't compatible with moment
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-12-04 12:14:28 +05:30
Anoop Kurungadam
cd8a7c6853 feat: trigger child table events for Table MultiSelect add, remove operations 2024-12-04 12:10:23 +05:30
UmakanthKaspa
3934f119f9 fix: exclude 'no copy' fields when duplicating child table rows 2024-12-04 06:16:01 +00:00
Suraj Shetty
2fda32887c
Merge pull request #28651 from surajshetty3416/print-asset-failure-exception 2024-12-03 21:44:04 +05:30
Sumit Bhanushali
3e74559617
Merge pull request #28622 from Z4nzu/develop
fix: Allow read-only fields to display even without value
2024-12-03 18:37:29 +05:30
Hardik Zinzu
634961d020 feat: Add system setting to control visibility of empty read-only fields 2024-12-03 16:43:49 +05:30