David Arnold
83bc1f09e9
refactor: clarify test record dep management in test modules ( #28060 )
2024-10-09 13:44:27 +00:00
David Arnold
bd06784d1b
ci: Run optimized python and control warnings ( #28063 )
...
* ci: run doubly optimized python
* ci: control python warnings
2024-10-09 13:29:30 +00:00
Corentin Forler
9024441ee9
fix(Form Builder): Fix Code control not updating ( #27422 )
2024-10-09 10:19:58 +00:00
David Arnold
db93823001
feat: better test & dumpster output ( #28044 )
2024-10-09 12:05:19 +02:00
Akhil Narang
7e8290b05f
Merge pull request #28053 from akhilnarang/fix-grid-issues
...
fix: grid issues in web forms
2024-10-09 14:33:16 +05:30
Sagar Vora
30abcf66e8
fix: escape backslashes in repl to prevent syntax errors ( #28052 )
2024-10-09 14:28:14 +05:30
Akhil Narang
ad33101164
Revert "Merge pull request #27502 from ljain112/fix-idx-pagination"
...
This reverts commit 9dbe2571cf , reversing
changes made to b841a7ccef .
2024-10-09 14:19:57 +05:30
Akhil Narang
1423f1a136
Revert "fix(grid): return if no df"
...
This reverts commit 3fdd9624d8 .
2024-10-09 14:00:28 +05:30
Akhil Narang
cf0f0a6e5f
Merge pull request #28043 from barredterra/auto_repeat_controller
...
fix(Auto Repeat): `after_save` is not a valid DocType controller hook
2024-10-09 11:04:26 +05:30
Akhil Narang
91f52ff087
Merge pull request #28025 from 18alantom/fix-broken-assets
...
fix: disappearing frontend asset bundles
2024-10-09 11:02:45 +05:30
18alantom
cd2dabc4d9
fix: copy file if it does not exist
2024-10-09 10:34:05 +05:30
David Arnold
95950c8d81
refactor: organize test contextmanagers ( #28041 )
...
* refactor: prefer staticmethod decorator
* refactor: add cm register utility and keep cms in one file
* refactor: enter safe_exec enabled context (treewide)
* refactor: move trace fields to the other test context managers
* chore: marke all test_runner functions for deprecation
* chore: mark some tests.utils functions for deprecation (moved)
* chore: mark traced_field_conext for deprecation (moved)
* chore: placate semgrep in dumpster
* fix: show deprecation warnings per module in tests (incl. from dumpster)
* chore: remove use of deprecated functions from tests
2024-10-09 02:09:19 +02:00
barredterra
67f7e7148e
fix(Auto Repeat): after_save is not a valid DocType controller hook
2024-10-08 18:38:25 +01:00
Frappe PR Bot
c8f42fe15d
chore: update POT file ( #27994 )
2024-10-08 17:59:21 +01:00
David Arnold
8cfeb156df
devx: add deprecation dumpster ( #27887 )
...
* feat: Add deprecation_dumpster.py file
* docs: add jovial and jocose docstring for frappe/deprecation_dumpster.py
* refactor: fill the dumpster with its own kind
* refactor: move to the deprecation dumpster
* chore: color coding class
* fix: only check import error when import errors
2024-10-08 18:56:10 +02:00
David Arnold
e7776021aa
refactor: Structure frappe.test.utils (green to green) ( #28038 )
...
* docs: constitute frappe.test readme
* refactor: move utils to __init__
* refactor: move generators into generators.py
* refactor: move cm into context_managers.py
* refactor: move test classes into submodule
* refactor: reexport general purpose context managers
* refactor: adapt imports (treewide)
2024-10-08 15:10:24 +00:00
David Arnold
b0b8139233
fix: commit watcher logger ( #28037 )
2024-10-08 12:17:42 +00:00
Sumit Bhanushali
dbebd81ef5
Merge pull request #28034 from frappe/attachment-style
...
fix: alignment and icon color for attachments
2024-10-08 17:30:10 +05:30
Akhil Narang
88bb7601d4
Merge pull request #28033 from akhilnarang/update-role-migration-patch
...
fix: ensure that the role exists
2024-10-08 17:17:27 +05:30
Sumit Bhanushali
65600558b9
fix: removed line height as it caused truncate for some letters
2024-10-08 17:17:19 +05:30
Sumit Bhanushali
98ce759cab
fix: alignment and icon color for attachments
2024-10-08 16:53:21 +05:30
Akhil Narang
84bee76aba
fix: ensure that the role exists
...
Some setups can have broken links here, resulting in a KeyError
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-10-08 16:52:57 +05:30
David Arnold
5324431fc0
fix: Testing Module 28000 ( #28032 )
...
* fix: logging text
* fix: app handling
2024-10-08 10:14:19 +00:00
Sumit Bhanushali
a7507c66f2
Merge pull request #27942 from zaqoutabed/develop
...
feat: allow user to set attachment field public by default
2024-10-08 13:23:29 +05:30
Sumit Bhanushali
750a373388
fix: update docfield public attachment field label to convey that default behaviour
...
Co-authored-by: David Arnold <dgx.arnold@gmail.com>
2024-10-08 13:09:11 +05:30
Akhil Narang
d453db40ba
Merge pull request #27909 from akhilnarang/number-format-currency-option
...
chore: add in system setting to allow using number format from currency
2024-10-08 13:03:08 +05:30
Akhil Narang
e25c012491
Merge pull request #28020 from akhilnarang/fix-grid-crash-webform
...
fix(grid): return if no df
2024-10-08 12:03:09 +05:30
Sumit Bhanushali
2b1150ff44
Merge pull request #27736 from JefteSG/develop
...
feat: implement Clear Button in Link Field
2024-10-08 12:02:29 +05:30
Sumit Bhanushali
b4eb8fdc82
fix: trailing whitespace
2024-10-08 11:48:44 +05:30
18alantom
f19aac1763
fix: check apps dir for app_list
2024-10-08 11:38:04 +05:30
Akhil Narang
3fdd9624d8
fix(grid): return if no df
...
Certain cases seem to cause this for web forms
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-10-08 10:56:54 +05:30
David Arnold
bd62f20a43
docs: add README for Frappe test utilities ( #28016 )
2024-10-07 17:54:12 +00:00
Sumit Bhanushali
c5432b950f
Merge pull request #28013 from frappe/undef-fix
...
fix: check for undefined when setting current app
2024-10-07 20:04:26 +05:30
Sumit Bhanushali
ba0f25e1a5
fix: check for undefined when setting current app
2024-10-07 19:48:47 +05:30
Sumit Bhanushali
8983b13a3f
Merge pull request #28010 from frappe/revert-27881-login_ws_fix
...
Revert "fix: reroute to /app when loggedin user does not have access to defau…"
2024-10-07 17:29:58 +05:30
Akhil Narang
2adaf795f0
Merge pull request #28008 from frappe/dependabot/npm_and_yarn/cookie-0.7.0
...
chore(deps): bump cookie from 0.4.2 to 0.7.0
2024-10-07 17:21:15 +05:30
Sumit Bhanushali
4f6a63a0d9
Revert "fix: reroute to /app when loggedin user does not have access to defau…"
2024-10-07 17:16:44 +05:30
Jefte Sales Gonçalves
f54d2d985e
fix: Error correction
2024-10-07 11:26:33 +00:00
dependabot[bot]
af5821a7b7
chore(deps): bump cookie from 0.4.2 to 0.7.0
...
Bumps [cookie](https://github.com/jshttp/cookie ) from 0.4.2 to 0.7.0.
- [Release notes](https://github.com/jshttp/cookie/releases )
- [Commits](https://github.com/jshttp/cookie/compare/v0.4.2...v0.7.0 )
---
updated-dependencies:
- dependency-name: cookie
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-10-07 10:54:33 +00:00
Akhil Narang
3dfb53adac
Merge pull request #27981 from frappe/dependabot/npm_and_yarn/sentry/browser-7.119.1
...
chore(deps): bump @sentry/browser from 7.81.1 to 7.119.1
2024-10-07 16:24:03 +05:30
Akhil Narang
0c38773582
Merge pull request #28007 from akhilnarang/fix-27931
...
fix: set `print_logs=False` for some `has_permission()` calls
2024-10-07 16:14:28 +05:30
David Arnold
3fafe99f6d
fix: temporary escape hath for erpnext tests ( #28006 )
2024-10-07 12:35:12 +02:00
Akhil Narang
9b5af4a603
fix: set print_logs=False for some has_permission() calls
...
This otherwise results in a lot of spam like: https://github.com/frappe/frappe/pull/27931#issuecomment-2396505626
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-10-07 16:00:39 +05:30
David Arnold
7e453ea515
Testing Module ( #28000 )
...
* refactor: add create_handler alongside create_logger
* fix: bench helper click exceptions for --help (2nd attempt)
* fix: increase logging level missing test records
* fix: reorganize test runner into testing module and refine logging
* fix: semgrep complaint
* chore: remove unused code; only keep deprecation proxies
* fix: import statements
* fix: output & string processing
2024-10-07 09:46:49 +02:00
Akhil Narang
349dd8ed12
Merge pull request #27993 from rohitwaghchaure/fixed-support-23068
...
feat: provision to make setters read only in multidialog
2024-10-07 10:39:53 +05:30
avc
da28df59e9
fix: try catch for license text fetching ( #27526 )
2024-10-06 23:26:23 +02:00
hyaray
30ecfb3843
Update query_report.js ( #27830 )
2024-10-06 22:54:35 +02:00
DHia' SHalabi
8d83b966a0
refactor: optimize custom button logic for navigation ( #27997 )
2024-10-06 22:43:59 +02:00
David Arnold
5d3697500e
refactor: improve maintainability with a simple dispatcher ( #27975 )
...
* refactor: improve maintainability with a simple dispatcher
* refactor: improve maintainability with a init dispatcher on Document
* refactor: improve maintainability with an init dispatcher on meta
2024-10-06 16:56:40 +00:00
David Arnold
fd65584c40
Test Runner 3 b (cleanup) ( #27999 )
...
* refactor: Move TestConfig.categories to TestRunner.categories
* fix: app addTest
* fix: run with app arg
* fix: refactor simplify
* fix: run_before_test_hooks signature
* fix: python test module discovery
* fix: app test execution in series
2024-10-06 16:55:41 +00:00