Commit graph

46135 commits

Author SHA1 Message Date
David Arnold
a99c4ff2b0
fix: don't sanitize defaults and options (#25939) 2024-04-15 17:39:48 +05:30
Frappe PR Bot
a6b0401238
chore: update POT file (#25948) 2024-04-15 17:38:48 +05:30
Ankush Menat
bb68908fe9
refactor: web form link logic (#25951) 2024-04-15 10:53:38 +00:00
Raffael Meyer
37cef2ec86
feat!: simplify admin password prompt for new site (#25937) 2024-04-13 13:10:37 +05:30
Saqib Ansari
e7cb2c04bc
fix: tables in markdown editor (#25935) 2024-04-12 15:46:57 +05:30
Fisher Yu
ea61af2ceb
[fix] Add missing translate function call (#25747)
* Update Properties.vue

* Update store.js

* Update Section.vue

* Update list_settings.js

* Update grid_row.js

* Update list_settings.js

* chore: add in missing context for some strings

Co-authored-by: Corentin Flr <10946971+cogk@users.noreply.github.com>

* chore: formatting and lint fixes

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

---------

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
Co-authored-by: Akhil Narang <me@akhilnarang.dev>
Co-authored-by: Corentin Flr <10946971+cogk@users.noreply.github.com>
2024-04-12 14:39:02 +05:30
Akhil Narang
245fbb6459
Merge pull request #25816 from barredterra/refactor-receive
refactor: receive email
2024-04-12 12:23:46 +05:30
Akhil Narang
23be301046
Merge pull request #25902 from akhilnarang/minor-cleanup
chore: minor code cleanup
2024-04-12 11:21:38 +05:30
Ankush Menat
a16c571db4
Merge pull request #25923 from barredterra/trim-table-customize-form
feat(Customize Form): add "Trim Table" action
2024-04-12 11:06:52 +05:30
Ankush Menat
a0268f126f fix: Dry run and confirm before trimming tables 2024-04-12 10:55:47 +05:30
Ankush Menat
535bc10340
fix: make letterhead attachments public by default (#25925)
Also does it for web page.

Note: This is just default config, users can change while uploading.
2024-04-12 05:14:18 +00:00
barredterra
9238f4649f feat(Customize Form): add "Trim Table" action 2024-04-11 19:07:32 +02:00
barredterra
7879bc1053 Merge remote-tracking branch 'upstream/develop' into refactor-receive 2024-04-11 19:04:52 +02:00
Ankush Menat
a674e912c1
Merge pull request #25904 from ankush/wspace_fix
fix: private workspace routing
2024-04-11 21:20:24 +05:30
Ankush Menat
84cbe3dcc5 refactor: Simplify workspace resolution
no need for if-elses eh
2024-04-11 20:07:51 +05:30
Ankush Menat
822679246c fix: use workspace title instead of name
this is how workspaces work 🤷
2024-04-11 19:42:48 +05:30
Ankush Menat
facff87cad refactor: local declaration 2024-04-11 19:42:48 +05:30
Ankush Menat
15310b14a8
Merge pull request #25918 from ankush/sync_customization
fix!: better "Export customizations"
2024-04-11 19:05:05 +05:30
Ankush Menat
51d41ea6df fix: Sync customization on first install if not sync_on_migrate
If not sync_on_migrate right now this code isn't doing anything :hanky:
2024-04-11 18:29:43 +05:30
Ankush Menat
12a8e9e666 fix(DX): Warn about custom docperm behaviour 2024-04-11 18:26:30 +05:30
Ankush Menat
9245062ed9 test: prop setter syncing 2024-04-11 18:14:56 +05:30
Ankush Menat
0fcd0329ef test: remove usage of _testMethodName
Makes things hard to read with code all over the place and tied to test name.
2024-04-11 18:04:33 +05:30
Ankush Menat
526ff3b576 fix!: Sync property setter instead of overriding them 2024-04-11 18:04:30 +05:30
Ankush Menat
b47d9d57fb
fix: handle empty style tag (#25910) 2024-04-11 10:06:36 +00:00
Ankush Menat
f6d003963c
fix: show warning for pending migrations (#25908)
* Revert "fix: limit title length on form (#25880)"

This reverts commit 28177c8574.

* fix: show warning for pending migrations
2024-04-11 11:51:40 +05:30
Frappe PR Bot
38979111d4
fix: sync translations from crowdin (#25870)
* fix: Spanish translations

* fix: German translations

* fix: French translations

* fix: Arabic translations

* fix: Persian translations

* fix: Turkish translations

* fix: Esperanto translations

* fix: Bosnian translations

* fix: Persian translations

* fix: Bosnian translations
2024-04-10 20:02:04 +05:30
Akhil Narang
306c923986
chore: minor code cleanup
- Use walrus operator where possible
- Drop redundant checks - we anyway can't iterate over an empty list

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-04-10 17:22:45 +05:30
Ankush Menat
caf7aec286
feat(APIv2): Add comment via REST API (#25889)
```
POST /document/Sales Order/S0-123/add_comment
{
    text: "Comment"
}
```
2024-04-10 10:53:22 +00:00
Ankush Menat
0692496fd3
fix: log unhandled exceptions in monitor log (#25897) 2024-04-10 08:04:32 +00:00
Akhil Narang
50fe31ca48
Merge pull request #25873 from akhilnarang/delete-failed-backup
feat: delete failed backups
2024-04-10 13:07:35 +05:30
Akhil Narang
ea1c8910e6
feat: delete failed backups
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-04-10 12:57:16 +05:30
Akhil Narang
5da663d5c2
chore: cleanup get_recent_backup()
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-04-10 12:57:16 +05:30
Ankush Menat
c1bf152b89
fix: handle interface error during report timeout (#25893) 2024-04-10 06:57:36 +00:00
Revant Nandgaonkar
7e16e902d9
feat: allow wildcard for doctype in permission hooks (#25729)
* feat: allow wildcard for doctype in permission hooks

* fix: pass doctype to permission query

* fix: combine methods instead of alternate

* test: wildcard has_permssion hook

* test: wildcard has_permssion make note public

* fix: fetch list of hooks once
2024-04-10 11:44:37 +05:30
Ankush Menat
bef9bdc5ee
fix: log out reliability (#25865)
* fix: Avoid possible cache eviction issue

Clear cache after removing data from DB, so a concurrent request can't put stale data in cache.

* fix: explicitly login as guest after logging out

Avoids problem with some other code potentially re-adding current
session in cache or DB.

* test: avoid hard coded admin pw

* test: reset user after running tests

* fix: only login as guest if in request

Background jobs, some other user disabling someone else etc
2024-04-09 18:56:52 +05:30
Ankush Menat
fc78c068f9
fix(link): get_input_value returns "" (#25878)
Steps to repro:
- Setup show title in link field
- on list view filter by that field
- Use the URL and open the page again
- filters will be erased

This is happening because:
- title->value map needs a db call to complete
- in meantime if we ask for input value we get empty value (because input is empty) and then we end up returning `""`
2024-04-09 18:31:24 +05:30
Ankush Menat
28177c8574
fix: limit title length on form (#25880) 2024-04-09 18:10:06 +05:30
Akhil Narang
812f29bd08
Merge pull request #25802 from barredterra/bulk-actions-workflow
fix: don't show bulk actions for doctype with workflow
2024-04-09 15:00:44 +05:30
Akhil Narang
aca9c7f475
Merge pull request #24373 from treasuryesc/develop
fix: error in copy paste from Excel into grid (closes #24371)
2024-04-09 12:38:45 +05:30
Akhil Narang
13aed45308
chore(table): simplify logic
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-04-09 12:37:11 +05:30
Akhil Narang
2a1d87590c
Merge pull request #25867 from akhilnarang/fix-unhandled-TypeError
fix(layout): handle `fieldobj` being null
2024-04-09 11:56:18 +05:30
Akhil Narang
883196d39b
fix(layout): handle fieldobj being null
`make_control` doesn't return anything when the control name is invalid
Handle in `make_field` and `init_field`

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-04-09 11:54:17 +05:30
Raffael Meyer
21049be8e7
fix: don't underline shortcuts during In-Context Translation (#25864) 2024-04-09 10:37:52 +05:30
Nabin Hait
5b5ac8c877
fix: Get filter value based on depends_on field (#25861) 2024-04-08 21:14:31 +05:30
Ankush Menat
9dad8b1d55
Merge pull request #21014 from BreadGenie/whats-new
feat: `What's New`
2024-04-08 19:05:30 +05:30
Ankush Menat
618c2e60a1 test: fix failing tests 2024-04-08 18:55:05 +05:30
Ankush Menat
a61b0f6ffe fix(UX): show title instead of name 2024-04-08 18:45:34 +05:30
Ankush Menat
6873eab7b4 refactor: move to boot
- Remove API call
- Remove notification setting, don't think we need this
2024-04-08 18:40:03 +05:30
Ankush Menat
ea45d959b3 fix: correct HTTP response code for rate limit 2024-04-08 18:24:38 +05:30
Ankush Menat
491c995313 fix: cold start 2024-04-08 18:24:38 +05:30