Commit graph

49454 commits

Author SHA1 Message Date
petnd
38f112f4ac
fix: Apply permlevel for update_doc endpoint in v2 API (#32135)
* fix: Only Return Allowed Fields in API Response

Apply Read Permission to the returned fields of API v2
2025-04-16 13:02:14 +02:00
ruthra kumar
7d5e338e55
Merge pull request #32106 from ruthra-kumar/allow_custom_fonts_in_wkhtmltopdf
fix: allow custom fonts in wkhtmltopdf
2025-04-16 15:14:48 +05:30
Ankush Menat
599c3a9b77
perf: cache link previews for 10 minutes (#32161)
Often used for masters and often never change
2025-04-16 09:11:33 +00:00
Soham Kulkarni
e038da5129
Merge pull request #32160 from sokumon/boilerplate-ci
fix(boilerplate): update mariadb in ci
2025-04-16 14:11:32 +05:30
sokumon
3ae2baeaf1 fix(boilerplate): update mariadb in ci 2025-04-16 13:58:24 +05:30
Soham Kulkarni
9adec086d6
Merge pull request #32158 from sokumon/search-dialog
fix(ui): search dialog
2025-04-16 13:46:28 +05:30
sokumon
8f6527d13e fix(ui): search dialog 2025-04-16 12:49:33 +05:30
Soham Kulkarni
f395814a36
Merge pull request #32156 from sokumon/address-rendering
fix(minor): address rendering should look same
2025-04-16 11:44:47 +05:30
sokumon
1d723ded80 fix(minor): address rendering should look same 2025-04-16 11:15:26 +05:30
Ankush Menat
31e672f985
perf: 10000s of times faster global search (#32147)
In a new installment of *"how did it ever work"* - global search wasn't
filtering by the matched filter, just ranking. I have no idea why this
is being done here but it's far from a good idea from performance POV.

Not adding `MATCH` in where clause makes the fulltext index worthless.
2025-04-16 09:06:00 +05:30
Akhil Narang
9e6a73f7c2
Merge pull request #31156 from akhilnarang/sqlite
feat: sqlite support
2025-04-16 08:56:52 +05:30
meike289
31f534cade
fix: dont send mail to assignee again if assignee was sender (#32014)
* fix: dont send mail to assignee again if assignee was sender

* fix: pre-commit changes

* fix: simplify check, remove sender from assignees

Co-authored-by: Akhil Narang <me@akhilnarang.dev>

* fix: remove duplicate check

---------

Co-authored-by: Akhil Narang <me@akhilnarang.dev>
2025-04-16 08:23:22 +05:30
mergify[bot]
47650d75ff
fix: translatable string extraction (#32142) (#32148)
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
2025-04-15 17:43:52 +00:00
Soham Kulkarni
e9d2737c3d
Merge pull request #31889 from sokumon/report-not-allowed
fix(UX): dont show the blank screen if no permission
2025-04-15 22:35:35 +05:30
Ankush Menat
56e2a9ad2d
Revert "fix(HTML Editor): extraction of images" (#32129) 2025-04-15 22:21:40 +05:30
Suhail
dafc73836f
feat: initialise and preload system settings and user for setup wizard (#32108)
used in press to smoothen the signup experience
2025-04-15 18:30:39 +05:30
Francisco Sousa Uva
20e6957312
fix: update minimum password score to 1 (#31986)
* fix #28620: update minimum password score to 1
Updated minimum password score to 1
Updated passsword score test

* fix: password score now correctly defaults to 1 when enabled

* feat: added password score test for failure test when score is 0

* fix(system_settings): set check field value to 2, regenerate json

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

---------

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
Co-authored-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 09:04:19 +00:00
Akhil Narang
9fcf98be93
chore: disable SQLite CI for now
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:17 +05:30
Akhil Narang
ec27078266
chore(sqlite): set connection timeout to 15 seconds and set synchronous pragma
(wal was already enabled in the file itself, no harm setting it here for consistency.

Reference: 45622c7d54

Co-authored-by: 18alantom <2.alan.tom@gmail.com>
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:17 +05:30
Akhil Narang
b16d69a002
fix(sqlite): make System Health Report compatible
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:17 +05:30
Akhil Narang
dc60a65c38
fix(sqlite): don't allow starting nested transactions
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:17 +05:30
Akhil Narang
7d62f22a3a
fix(sqlite): hack together something for read-only mode
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:17 +05:30
Akhil Narang
2114a47256
fix(sqlite): we get frappe exception classes here sometimes
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:17 +05:30
Akhil Narang
8aed84c0d0
fix: skip test_eps_heatmap_query for now
Need to implement `UnixTimestamp` and `Interval` for sqlite in pypika

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:17 +05:30
Akhil Narang
aed2c65cd2
fix(test_server_script): this is applicable to mariadb+sqlite
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:17 +05:30
Akhil Narang
9fa330c075
fix(sqlite): use correct check for unique/primary key constraint violations
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:17 +05:30
Akhil Narang
05fca5b16b
chore: skip a few tests for sqlite
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:17 +05:30
Akhil Narang
9adad5e262
fix(sqlite): get_database_size() was checking a non-existent path
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:17 +05:30
Akhil Narang
40c07e0d9b
fix(sqlite): don't try to re-create existing indices
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:17 +05:30
Akhil Narang
50fae37072
fix(sqlite): don't consider implicit commit for begin for now
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:17 +05:30
Akhil Narang
5d566d03a0
fix(tests): use correct quit command for sqlite console
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:17 +05:30
Akhil Narang
5b98b4ca93
fix: convert timestamps to datetime
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:17 +05:30
Akhil Narang
7d4634519e
fix: drop some overrides for now
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:17 +05:30
Akhil Narang
294013955e
chore: linting
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:17 +05:30
Akhil Narang
44e7b64aae
feat(sqlite): implement regexp
Python can't use the implementation that sqlite3 cli uses directly

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:17 +05:30
Akhil Narang
8b92cca1f3
chore(sqlite): extend 573028ad3f
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:17 +05:30
Akhil Narang
482f2cb3f5
fix(sqlite): escape some string values
Some strings can have ' in them

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:17 +05:30
Akhil Narang
c2965e3dd2
feat(sqlite): implement truncate
(delete rows + delete from sqlite_sequence)

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:17 +05:30
Akhil Narang
ab4c2826a9
chore(deps): track fork of pypika
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:17 +05:30
Akhil Narang
2b92073aa7
chore: setup sqlite tests, drop postgres CI
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:17 +05:30
Akhil Narang
69d22a8194
fix(sqlite): implement rename and change column type
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:16 +05:30
Akhil Narang
6e31745290
chore: handle restoring gzipped backups
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:16 +05:30
Akhil Narang
368d7ae298
fix(installer): don't allow partial-restore for sqlite
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:16 +05:30
Akhil Narang
8106e72981
refactor: use a database file directly, instead of an SQL file
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:16 +05:30
Akhil Narang
41e4b4c76d
refactor: strpos -> instr
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:16 +05:30
Akhil Narang
d9384366ef
fix: disable partial restore for sqlite
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:16 +05:30
Akhil Narang
ed8191047e
fix(add_column): adjust for sqlite
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:16 +05:30
Akhil Narang
6c51381e9d
fix(check_database): add sqlite support
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:16 +05:30
Akhil Narang
26fb2f0db0
fix(password): add sqlite compat
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:16 +05:30
Akhil Narang
ad32216040
fix: support sqlite
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-04-15 13:59:16 +05:30