Commit graph

45827 commits

Author SHA1 Message Date
Akhil Narang
2af42f5501
fix(webhook): r is referenced here before its initialized
Broke in #21064

Sentry: FRAPPE-2SH

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-03-22 18:59:02 +05:30
Raffael Meyer
4c8562687f
feat: add option to set default email recipients (#25555)
* feat: add option to set default email recipients

* fix: don't crash if no events

communication.js:206 Uncaught TypeError: Cannot read properties of undefined (reading 'events')
    at frappe.views.CommunicationComposer.get_default_recipients (communication.js:206:16)
    at frappe.views.CommunicationComposer.get_fields (communication.js:57:19)
    at frappe.views.CommunicationComposer.make (communication.js:25:17)
    at new frappe.views.CommunicationComposer (communication.js:16:8)
    at Object.primary_action (communication__list_js:34:3)
    at HTMLButtonElement.<anonymous> (list_view.js:1432:19)
    at HTMLButtonElement.dispatch (jquery.js:5135:27)
    at elemData.handle (jquery.js:4939:28)

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

---------

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
Co-authored-by: Akhil Narang <me@akhilnarang.dev>
2024-03-22 17:53:53 +05:30
Ankush Menat
bad3b9e6e7
perf: Faster "show title in link field" on list view (#25597)
Ideally, this query should be converted to "Top N" variant and just pick
first 20 records, join only them with other table and send data back.

Currently we always group by `name` in list view. This makes "show title
in link field" join queries insanely slow as it first queries entire
table and then applies limit.
2024-03-22 17:51:27 +05:30
Frappe PR Bot
0f138daf60
fix: Spanish translations (#25608) 2024-03-22 17:50:29 +05:30
Akhil Narang
4680c640dc
Merge pull request #25599 from akhilnarang/system-setting-global-ratelimit
feat: allow setting a custom rate limit for `login via email link` feature
2024-03-22 16:06:39 +05:30
Akhil Narang
766d2ae778
feat: allow setting a custom rate limit for login via email link feature
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-03-22 15:50:45 +05:30
Nihantra C. Patel
f2561c46ef
fix: depend on condition in "Allow in Quick Entry" (#25579)
* fix: depend on condition in "Allow in Quick Entry"

* remove section break and column break from the condition
2024-03-21 23:48:55 +05:30
Ankush Menat
a9ebf58bd9
fix: diff after converting to html to text (#25582) 2024-03-21 13:30:54 +00:00
Ankush Menat
6613ed76fe
fix: ensure that prepared report is set even on timeout (#25565)
* fix: ensure that prepared report is set even on timeout

Under following condition prepared report is never enabled:
- Process takes too much time and is killed
- HTTP timeout

Fix:
- We spawn a thread and ask it to wait till prepared report threshold
  time is elapsed and set prepared report on it.
- Condvar is used to immdiately wake up and end the thread if report
  finsihed early.

* refactor: use threading.Timer

No need to implement it ourselves
2024-03-21 11:18:29 +00:00
Ankush Menat
a12fc118f4
perf: remove useless sorting on docstatus (#25571) 2024-03-21 06:17:23 +00:00
Shariq Ansari
695d822a23
Merge pull request #25532 from barredterra/list-frappe-ui
refactor: align list style to frappe-ui
2024-03-21 11:25:40 +05:30
barredterra
9292838cfa Merge branch 'develop' into list-frappe-ui 2024-03-20 15:15:03 +01:00
Shariq Ansari
d7dbf774e7
Merge pull request #25257 from cogk/feat-default-workspace
feat(workspace): Allow user to choose a default workspace
2024-03-20 17:56:20 +05:30
Frappe PR Bot
b4f97a188d
fix: sync translations from crowdin (#25563)
* fix: Spanish translations

* fix: German translations

* fix: Spanish translations
2024-03-20 17:37:40 +05:30
Shariq Ansari
61cac70b3e chore: moved workspaces section inside settings tab 2024-03-20 17:16:33 +05:30
Ankush Menat
571ca34eca
fix: redirect after login, todo filters (#25521)
* Revert "fix: default filter setup on todo list (#25455)"

This reverts commit 396bc4102e.

* Revert "Revert "fix: default filter setup on todo list (#25455)""

This reverts commit 5e6b6997d526446760c42e7e812ceef5fe416492.

* test: wait longer for filters to apply

* fix: route redirects after login

* test: use clear_filters

* fix: don't set default filters on ToDo

This messes with previous filters logic.
2024-03-20 17:02:24 +05:30
Ankush Menat
ea0b266409
Merge pull request #24411 from ankush/field_extraction
fix: fieldname extraction
2024-03-20 16:43:23 +05:30
Ankush Menat
f642b1881f fix: invalid select star expansions 2024-03-20 16:31:02 +05:30
Ankush Menat
33547a6354 ci: group output and limit diff
Verbose outut is MASSIVE and unreadable.
2024-03-20 14:23:08 +05:30
Shariq Ansari
2e47f66d4e fix: row border was leaking 2024-03-20 14:19:57 +05:30
Ankush Menat
fbaa2549f2 test: add test for searching with paren 2024-03-20 12:30:11 +05:30
Ankush Menat
065674236c refactor: duplicate check for * 2024-03-20 12:29:58 +05:30
Ankush Menat
5eca52b2c7 fix: only trim tab if it starts with tab 2024-03-20 12:29:58 +05:30
Ankush Menat
cc4e628edf fix: remove unnecessary dummy column 2024-03-20 12:29:58 +05:30
Ankush Menat
3facad0a25 fix: avoid parsing reserved keywords and simple strings 2024-03-20 12:29:58 +05:30
Ankush Menat
414b1beffd Revert "Revert "perf: cache fieldname extraction""
This reverts commit ffe84c9f9d.
2024-03-20 12:29:58 +05:30
Ankush Menat
ea193ecd48 Revert "Revert "fix: search_link fails when txt contains parentheses (#22892)""
This reverts commit c0cf13b8e8.
2024-03-20 12:29:57 +05:30
barredterra
b7c6b9f197 fix: align rows with filters 2024-03-19 21:37:23 +01:00
Ankush Menat
cc2c39d583
fix: avoid translating layout field labels (#25548)
- section
- tabs

Resolves https://github.com/frappe/frappe/pull/25482#discussion_r1530827772
2024-03-19 18:01:39 +00:00
Raffael Meyer
246f92dba0
refactor: remove dead code (likes-count) (#25528) 2024-03-19 23:25:00 +05:30
Ankush Menat
f4169d7870
Merge pull request #25506 from revant/feat-redis-sentinel-for-queues
feat: connect to redis sentinel for redis queue
2024-03-19 22:59:29 +05:30
Ankush Menat
e47e76897a
fix: notify on failed s3 backup upload (#25544) 2024-03-19 15:50:37 +00:00
Corentin Flr
e3d00e9117
fix(workspace): Don't allow Welcome as default workspace
Co-authored-by: Shariq Ansari <30859809+shariquerik@users.noreply.github.com>
2024-03-19 16:24:13 +01:00
Akhil Narang
288a7c3fc2
Merge pull request #25538 from akhilnarang/fix-undefined-document
fix: prevent TypeError if doc not defined
2024-03-19 17:34:43 +05:30
Akhil Narang
d978ca8ca5
Merge pull request #25533 from akhilnarang/fix-undefined-fields
fix: handle meta.fields being undefined
2024-03-19 17:34:16 +05:30
Akhil Narang
978e3407b6
fix: prevent TypeError if doc not defined
Happens here on a local setup if I click `Compose Email` button

communication.js:212 Uncaught TypeError: Cannot read properties of undefined (reading 'doc')
    at frappe.views.CommunicationComposer.guess_language (communication.js:212:32)
    at frappe.views.CommunicationComposer.setup_print (communication.js:536:8)
    at frappe.views.CommunicationComposer.prepare (communication.js:239:8)
    at frappe.views.CommunicationComposer.make (communication.js:41:8)
    at new frappe.views.CommunicationComposer (communication.js:16:8)
    at Object.primary_action (communication__list_js:34:3)
    at HTMLButtonElement.<anonymous> (list_view.js:1426:19)
    at HTMLButtonElement.dispatch (jquery.js:5135:27)
    at elemData.handle (jquery.js:4939:28)

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-03-19 17:21:28 +05:30
Raffael Meyer
7be963345b
Merge pull request #25530 from earona/feat-doctype-extractor 2024-03-19 11:56:26 +01:00
Akhil Narang
674ca78cfe
fix: handle meta.fields being undefined
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-03-19 12:26:17 +05:30
Suraj Shetty
6992bbba8a
Merge pull request #23906 from Shankarv19bcr/multiselect_list
fix(UX): Multiselect List control
2024-03-19 10:51:17 +05:30
Exequiel Arona
9a0761f1c0
fix: suggested correction applied
frappe/gettext/extractors/doctype.py

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
2024-03-19 00:04:22 -03:00
barredterra
d67b69e93f refactor: align list style to frappe-ui 2024-03-19 01:53:36 +01:00
Exequiel Arona
9033f5c65d feat: add description of doctype to extractor 2024-03-18 19:26:32 -03:00
Frappe PR Bot
99a8ff885e
fix: sync translations from crowdin (#25508)
* fix: Spanish translations

* fix: French translations

* fix: German translations

* fix: Spanish translations

* fix: Arabic translations

* fix: Persian translations
2024-03-18 21:18:06 +05:30
Ankush Menat
fa6ec99c89
fix: escape text types before setting disp area (#25520) 2024-03-18 21:17:09 +05:30
Raffael Meyer
0ec8f8f108
fix: disable selected page length button (#25519) 2024-03-18 20:41:43 +05:30
Ankush Menat
d7f82bc260
fix: escape value in multiselect pill (#25516) 2024-03-18 20:11:28 +05:30
Ankush Menat
a87948befe
Merge pull request #25502 from ankush/signal
feat: debug stuck process by sending SIGUSR1
2024-03-18 19:35:10 +05:30
Ankush Menat
fdd74e3ac1 fix: set sane default timeout on SMTP 2024-03-18 19:19:32 +05:30
Ankush Menat
8a7beebf30
fix: handle distinct for fieldname (#25511)
`distinct count(fieldname)` is supported well but `count(distinct fieldname)` fails if fieldname contains full field with table name included. This PR just adds basic handling for it.

Needs to be rewritten entirely in QB __some day__.
2024-03-18 13:38:29 +00:00
Fisher Yu
41a7b42f16
fix: Translate form and workflow builder (#25482)
* Update AttachControl.vue

* Update ButtonControl.vue

* Update CheckControl.vue

* Update CodeControl.vue

* Update DataControl.vue

* Update ImageControl.vue

* Update LinkControl.vue

* Update RatingControl.vue

* Update SelectControl.vue

* Update SignatureControl.vue

* Update TableControl.vue

* Update TextControl.vue

* Update TextEditorControl.vue

* Update Section.vue

* Update Column.vue

* Update Tabs.vue

* Update Field.vue

* Update Sidebar.vue

* Update AddFieldButton.vue

* Update AddFieldButton.vue

* Update Section.vue

* Update WorkflowBuilder.vue

* Update Autocomplete.vue

* Update EditableInput.vue

* Update AttachControl.vue

* Update ButtonControl.vue

* Update CheckControl.vue

* Update CodeControl.vue

* Update DataControl.vue

* Update ImageControl.vue

* Update LinkControl.vue

* Update RatingControl.vue

* Update SelectControl.vue

* Update SignatureControl.vue

* Update TextControl.vue

* Update TextEditorControl.vue

* Update Field.vue

* Update EditableInput.vue

* Update TableControl.vue

* Update Column.vue

* fix: variable in translatable string

* fix: add context for row number label

* fix: translate labels in workflow builder

* style: formatting

---------

Co-authored-by: barredterra <14891507+barredterra@users.noreply.github.com>
Co-authored-by: Ankush Menat <ankush@frappe.io>
2024-03-18 18:41:50 +05:30