Ankush Menat
bb7c3c289c
feat: support array request type ( #25109 )
...
There can be external APIs like webhooks that only send array request,
in which case Frappe has no mechanism to accept such requests.
After this PR such request data can be accessed using `data` list
argument on function.
I've considered directly storing list in form_dict but it's not
feasible:
1. It breaks semantics, "form_dict" can't be a list. That ship has long
sailed.
2. Way too much code expects form_dict to be a dict.
2024-02-27 16:41:33 +00:00
Niraj Gautam
911846368f
feat: Add doc rename hook in server script ( #25085 )
...
* feat: Add doc rename hook in server script
* feat: Add test case for doc event in server script
2024-02-27 22:07:22 +05:30
Ankush Menat
01d29283f1
fix: restrict method for security critical endpoints ( #25105 )
2024-02-27 16:10:33 +00:00
David Arnold
c66d35fe5b
fix(notification): ensure outgoing mail is set on comms ( #24814 )
2024-02-27 16:47:46 +05:30
Ankush Menat
f086b7febd
fix: Avoid add "null" to cc in communication in timeline ( #25092 )
...
* Avoid add "null" to cc
* chore: extend fix to BCC
---------
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
2024-02-27 14:45:37 +05:30
Ankush Menat
2f6ec63447
chore: extend fix to BCC
2024-02-27 14:44:21 +05:30
Ankush Menat
c2638d90e5
Merge branch 'develop' into txt-attachment-privacy
2024-02-27 14:26:34 +05:30
Md Hussain Nagaria
9aa6eb39da
chore: replace fb link with frappe school link in about dialog ( #25093 )
2024-02-27 08:52:54 +00:00
tonspar
94fefa31a8
Avoid add "null" to cc
2024-02-27 09:40:34 +01:00
Raffael Meyer
2371bdadc9
ci: skip videos for successful tests ( #25083 )
...
* ci: skip videos for successful tests
Nobody will spend hours watching successful test cases. We're only interested in the failing ones, so we can save some time here.
* ci: remove outdated cypress config
"The videoUploadOnPasses configuration option was removed in Cypress version 13.0.0."
2024-02-27 13:58:53 +05:30
Raffael Meyer
0ee091a6f9
refactor: saparate click handlers for "load more" and "change page length" ( #25080 )
2024-02-27 13:10:46 +05:30
Raffael Meyer
b3ff1f9fcc
perf: remove specific elements instead of re-rendering entire list ( #25078 )
2024-02-27 13:08:26 +05:30
Akash Tom
98fac311a8
fix(File Uploader): call 'upload_files' without passing event object ( #25034 )
2024-02-27 12:43:03 +05:30
Akhil Narang
1ca98566d4
fix(background_jobs): update type hint and docstring
...
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-27 12:20:13 +05:30
Alan
6cf8f4ecae
Merge pull request #24317 from blaggacao/chore/cleanup-esbuild-path-resolution
...
chore: remove confusing indirections from esbuild path resolution
2024-02-27 11:09:37 +05:30
Corentin Flr
0934dfea93
fix(formatters): Translate Select value in format_value ( #24951 )
2024-02-26 21:05:44 +05:30
Corentin Flr
80bcfff79d
fix(ControlTime): Don't set datepicker's date if field is read only ( #25038 )
2024-02-26 20:20:50 +05:30
Maharshi Patel
ce2d91c751
feat: hook for print format template loader ( #25037 )
...
* feat: hook for print format template loader
currently logic for how print format template should be loaded is hardcoded
added hook to allow for custom logic to be implemented by other apps.
if hook returns falsy value, then default logic will be used.
* chore: use Walrus Operator and handle Empty Hooks
2024-02-26 20:20:25 +05:30
Raffael Meyer
501297b71c
perf: don't process checks if there are none ( #25063 )
2024-02-26 20:12:31 +05:30
Ankush Menat
1b4fe29da2
Merge pull request #25066 from barredterra/progressive-list-render
...
refactor: render list progressively
2024-02-26 20:12:09 +05:30
Ankush Menat
c34d350223
Merge pull request #25040 from barredterra/edit-table-row-tooltip
...
fix: show tooltip on edit table row
2024-02-26 20:05:22 +05:30
Raffael Meyer
7f44f020a6
perf: avoid unnecessary json parsing ( #25065 )
2024-02-26 19:58:57 +05:30
barredterra
7781f4344c
refactor: render list progressively
2024-02-26 15:12:18 +01:00
Jannat Patel
898f982a88
fix: replaced created by with owner in base_document ( #25059 )
2024-02-26 12:12:26 +00:00
Akhil Narang
ad15ee7183
Merge pull request #25041 from barredterra/row-no-label
...
fix: add context for row number label
2024-02-26 14:13:51 +05:30
Ankush Menat
a1d295fe07
Merge pull request #25050 from frappe/impersonate
...
feat: Impersonate a user
2024-02-24 18:43:37 +05:30
Ankush Menat
24499d93f8
fix: notify user that they were impersonated
2024-02-24 18:31:10 +05:30
Ankush Menat
be47ee0e31
fix: track all impersonated changes
2024-02-24 18:25:09 +05:30
Ankush Menat
0fd4d6b67f
fix: log activity for impersonations
2024-02-24 18:25:09 +05:30
Ankush Menat
c58ac809ac
fix: Flag impersonated sessions
2024-02-24 18:25:09 +05:30
Ankush Menat
ecc9ff378e
feat: impersonate any user as Administrator
2024-02-24 18:25:07 +05:30
Ankush Menat
2588de6384
fix: invalid lru_cache usage ( #25046 )
...
- using it on closure is useless because a new cache is created
and destroyed everytime.
2024-02-24 12:04:18 +05:30
Raffael Meyer
6cdc1dc502
Merge pull request #25043 from barredterra/translate-doctype-error
2024-02-24 02:53:01 +01:00
barredterra
b6f12db08c
fix: translate doctype in user-facing error message
2024-02-24 02:39:29 +01:00
barredterra
fa0b59aa70
test: cypress form
2024-02-23 22:49:10 +01:00
barredterra
2646771811
test: cypress grid
2024-02-23 22:48:31 +01:00
barredterra
30ad6a8094
chore: remove unused css
2024-02-23 22:48:05 +01:00
barredterra
0334ae32b6
fix: add context for row number label
...
Note: I had to remove the `else` branch because `txt` is (and has always been) undefined there.
2024-02-23 17:09:46 +01:00
barredterra
36ae9b73bf
fix: show tooltip on edit table row
2024-02-23 16:54:35 +01:00
Maharshi Patel
0e12cf4281
chore: replace PFB Beta link with Print Designer ( #25032 )
...
Replaced Print Format Builder Beta link in print-view to Print Designer.
if App is installed it opens Print Designer, if not it opens Frappe Cloud Marketplace Link.
2024-02-23 20:19:08 +05:30
Ankush Menat
a19fd6a8b9
fix: Don't init site if already init-ed during truncate ( #25033 )
2024-02-23 11:37:38 +00:00
Frappe PR Bot
0b3061e904
New translations main.pot (German) ( #25031 )
2024-02-23 16:56:40 +05:30
Akhil Narang
bf12be6928
fix: 755 -> 644
...
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-23 16:54:10 +05:30
Md Hussain Nagaria
690cb7d372
refactor: scheduled job type enhancements ( #25007 )
...
* refactor: remove autoname
* chore(Scheduled Job Type): enable show title in link
* chore: validate duplicate job
* test: throws on duplicate scheduled job
* feat: attach frequency and cron_format to `frappe.job`
* refactor: add unique constraint on db level
* fix: attach to frappe.job only if defined
* test: scheduled job name will get updated on frequency update
* test: wrap duplicate inserts in db savepoint/rollback
* fix: rollback without savepoint
* test: use loose Exception for raise assertion
2024-02-23 10:12:51 +00:00
Ankush Menat
e46ded10c0
fix: keep 3 recent versions of website themes around ( #25029 )
...
For whatever unknown reason (https://github.com/frappe/frappe/issues/22205 ) website theme cache can be invalid or it might fail to generate correctly.
In such cases website becomes unusable, this PR tries to keep it usable.
2024-02-23 10:02:47 +00:00
Corentin Flr
5563c925a5
feat(address): Add no_title param to get_condensed_address Jinja filter ( #24949 )
2024-02-23 05:46:14 +00:00
Akhil Narang
36ba02e71a
Merge pull request #25024 from riandrys/fix_get_label_from_fieldname_translation
...
fix: translation get label from fieldname
2024-02-23 10:54:11 +05:30
Nikhil Kothari
bc68afa5b6
fix: spelling of "recording" in button ( #25025 )
2024-02-23 10:40:31 +05:30
Riandrys Gongora Roman
f992821459
fix: translation get label from fieldname
2024-02-22 16:00:59 -05:00
Corentin Flr
8deed2e519
fix(grid): Add type attribute to buttons ( #25021 )
2024-02-22 18:07:26 +05:30