Commit graph

45991 commits

Author SHA1 Message Date
Ankush Menat
d1210f7edc
Merge pull request #25507 from GursheenK/announcement-widget-navbar
feat: navbar announcement widget
2024-04-02 22:38:52 +05:30
Raffael Meyer
b0cc60115a
Merge pull request #25782 from barredterra/dont-translate-product-name 2024-04-02 17:17:31 +02:00
barredterra
f5e4a59ff9 fix: product name should not be translatable 2024-04-02 17:16:14 +02:00
Akhil Narang
49fce67e88
Merge pull request #25752 from maharshivpatel/print-format-validate-in-install
fix: add in_install flag to print_format validate
2024-04-02 17:14:48 +05:30
Akhil Narang
b9f413f21e
Merge pull request #25763 from akhilnarang/revert-conditional-msgprint
fix: clear last message log when exception has been handled
2024-04-01 21:57:16 +05:30
Akhil Narang
da563ef0e4
fix(event): clear message after handling exception
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-04-01 21:46:15 +05:30
Akhil Narang
bf931598a2
Revert "Merge pull request #25755 from akhilnarang/optional-skip-msgprint"
This reverts commit f8121b99df, reversing
changes made to 14e2d95947.
2024-04-01 21:42:12 +05:30
Akhil Narang
2bf0ab079a
feat(customize_form): allow setting creation as a default sort field (#25760)
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-04-01 19:08:11 +05:30
Akhil Narang
f8121b99df
Merge pull request #25755 from akhilnarang/optional-skip-msgprint
feat: allow skipping msgprint
2024-04-01 16:57:12 +05:30
Akhil Narang
ca83ad580c
feat: allow skipping msgprint
If we're handling the exception on our own, we don't need to show the user anything
Example: https://github.com/frappe/frappe/blob/version-15/frappe/desk/doctype/event/event.py#L398

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-04-01 14:21:47 +05:30
Maharshi Patel
9739023c59 fix: add in_install flag to print_format validate
don't validate "Standard Print Format cannot be updated" during installation
2024-04-01 11:59:02 +05:30
Akhil Narang
14e2d95947
Merge pull request #25554 from barredterra/filter-email-recipients
feat: add option to filter email recipients
2024-03-31 14:50:12 +05:30
barredterra
470f128581 fix: frm can be missing 2024-03-31 00:04:25 +01:00
barredterra
e854b7ba5d Merge remote-tracking branch 'upstream/develop' into filter-email-recipients 2024-03-31 00:01:09 +01:00
Ankush Menat
561617d5db
fix: allow disabling logging on CRON jobs (#25742)
Some crons are very very small duration and don't require logging
either. We should let users decide if they want to disable logging.
2024-03-30 06:21:56 +00:00
Maxim Sysoev
f32c3aa3a8
fix(ListView): In ListView make visible link title value for Subject column (#25569)
* fix(ListView): In ListView make visible link tite value for Subject column

Fixes #25567

* Revert "fix(ListView): In ListView make visible link tite value for Subject column"

This reverts commit eea3ea0a148f6f5800f1b008f97f8a86b4e6ebe8.

* fix: show title in subject field

---------

Co-authored-by: Ankush Menat <ankush@frappe.io>
2024-03-30 11:23:01 +05:30
Ankush Menat
ea5e1b61ad
fix: cint -> avoid precision loss if already integer (#25735) 2024-03-29 22:31:53 +05:30
Ankush Menat
a6732a0e12
fix: set db name in filter (#25732) 2024-03-29 16:06:02 +00:00
Ankush Menat
bb26d8f678
Merge pull request #25730 from ankush/ulid_naming
feat: UUID naming support
2024-03-29 21:25:07 +05:30
Ankush Menat
8c6e3a56c6 feat: UUID name implementation for postgres 2024-03-29 21:02:54 +05:30
Ankush Menat
8cc6c31f0e fix: Allow switching between UUID and VARCHAR
- VARCHAR -> UUID = Only allowed when table is empty for now
- UUID -> VARCHAR is not lossy, can be done anytime.
2024-03-29 19:02:28 +05:30
Ankush Menat
1ec4d658fc fix: Allow setting UUID to application code 2024-03-29 19:02:28 +05:30
Ankush Menat
6c79a13641 feat: UUID naming support 2024-03-29 19:02:28 +05:30
Akhil Narang
ae34b12ce8
Merge pull request #22548 from blaggacao/feat/uds
feat: support unix domain sockets
2024-03-29 18:11:01 +05:30
Akhil Narang
0d3b2499fc
fix: don't use frappe.flags for mariadb_user_host_login_scope
This gets reset whenever we call `frappe.init()` again

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-03-29 16:57:04 +05:30
Gursheen Anand
2c0498cbdd fix: use boot to store announcement 2024-03-29 16:24:41 +05:30
Ankush Menat
de48dc2c04
fix: db explain (#25724)
This broke from some recent changes.

It's just a wrapper, so probably no one uses it.
Anyway, fixed and added test to prevent it.
2024-03-29 10:23:12 +00:00
Corentin Flr
e8fe24d7df
feat(router): Go to default workspace when clicking app logo (#25706) 2024-03-29 15:44:25 +05:30
Ankush Menat
87ffe25e71
fix: reserved keywords as col name (#25718) 2024-03-29 15:43:33 +05:30
David
39d4318a27
feat: enable db socket connection 2024-03-29 10:29:50 +01:00
David
6eb1607c0a
refactor: name and explain user host login scope flag for mariadb 2024-03-29 10:26:49 +01:00
David Arnold
640e7d79b3
feat: prepare redis subsystem for unix domain socket connections 2024-03-29 10:12:19 +01:00
Akhil Narang
34f1b9cb65
Merge pull request #25719 from akhilnarang/fix-enqueue-method
fix(enqueue): pass the original method argument here
2024-03-29 14:17:34 +05:30
Akhil Narang
8658196650
fix(enqueue): pass the original method argument here
Don't pass the stringified version - this is what goes to RQ, and the string we construct isn't always "correct"

For example, 87d121f47a/frappe/email/doctype/email_queue/email_queue.py (L735-L736) generates `frappe.email.doctype.email_queue.email_queue.QueueBuilder.send_emails` which will result in `ModuleNotFoundError: No module named 'frappe.email.doctype.email_queue.email_queue.QueueBuilder'; 'frappe.email.doctype.email_queue.email_queue' is not a package`

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-03-29 14:05:33 +05:30
Akhil Narang
2feacf5443
Merge pull request #25683 from akhilnarang/rollback-new-site
feat: rollback new site creation on failure
2024-03-29 12:42:38 +05:30
Akhil Narang
ee8e2fef8c
refactor(new-site): update rollback prompt
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-03-29 12:12:19 +05:30
Akhil Narang
197b1ab77c
refactor(installer): use frappe.generate_hash() to generate database name
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-03-29 12:12:19 +05:30
Akhil Narang
07f93e2817
fix(generate_hash): Deprecate txt parameter - its not used.
`length` has a default value anyway, no need of checking and setting a default.

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-03-29 12:12:15 +05:30
Akhil Narang
1847e9cae8
fix: pass function as lambda
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-03-29 12:00:25 +05:30
Akhil Narang
9940868063
fix: switch to datetime.now() instead of our get_datetime()
`get_datetime()` will query the DB to get the system timezone, not something we currently have.

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-03-29 12:00:25 +05:30
Akhil Narang
4b2fde1d8f
fix: check if rollback callback is defined
Don't raise exceptions where a simple print() will suffice
Print exception before prompting for rollback

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-03-29 12:00:25 +05:30
Akhil Narang
c58e986a87
chore: check whether we're in an interactive session or not
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-03-29 12:00:25 +05:30
Akhil Narang
147c0c8b37
feat: initial failed site rollback implementation
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-03-29 12:00:25 +05:30
Akhil Narang
46981622ec
feat: generate a non-deterministic database name every time - include current date in the hash
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-03-29 12:00:25 +05:30
Akhil Narang
1ffc4c7834
chore: update output to let the user know they can pass --force
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-03-29 12:00:25 +05:30
Akhil Narang
8cd23ecef5
chore: drop unused parameter
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-03-29 12:00:25 +05:30
Raffael Meyer
c43ec1cc37
Merge pull request #25707 from barredterra/translatable-insights-ad 2024-03-28 17:21:16 +01:00
barredterra
449d7d3b3d fix: make insights ad translatable 2024-03-28 17:19:53 +01:00
Ankush Menat
be579f9a8d
fix: sql_ddl - always ensure commit (#25704) 2024-03-28 13:13:55 +00:00
Ankush Menat
87d121f47a
Merge pull request #25660 from uhrjun/develop
fix: incorrect status on data import
2024-03-28 17:17:41 +05:30