Ankush Menat
089985e53b
feat: frappe.job local for reading job info
2023-11-04 14:06:31 +05:30
mergify[bot]
6ad2e762d3
Merge pull request #23064 from frappe/bulk-insert-search-sync
...
perf(GlobalSearch): bulk insert queued items
2023-11-03 05:10:31 +00:00
Ankush Menat
8c74d542d5
perf: don't check len before popping
...
rpop is atomic and yields None when nothing is found. No need to check length.
2023-11-03 10:20:31 +05:30
Ankush Menat
eba499a9ba
refactor: misc changes
...
- make internal function explicit
- dont delete keys which is immediately being replaced.
- deprecate `sync_value`
2023-11-03 10:15:52 +05:30
18alantom
3d7ba41583
fix(sync_values): use EXCLUDED for postgres
...
removing the second arg from `do_update` causes
EXCLUDE to be auto added
2023-11-02 18:57:51 +05:30
18alantom
aa690553cf
refactor: undo use of count in redis pop
...
count param in rpop and lpop was introduced in 6.20
at the time of this commit we are using an older
version that does not include it
2023-11-02 18:22:50 +05:30
18alantom
ee3776f38f
refactor: move inner for to function
2023-11-02 17:02:49 +05:30
18alantom
64adf49706
refactor: use rpop count to pop in batches
...
- fix: dedupe items in a batch
- fix: reassign `query` cause it does not hold state
_fkn ORMs man 🙄 _
2023-11-02 16:58:10 +05:30
18alantom
b56136ba66
refactor: add count to cache pop
2023-11-02 15:52:29 +05:30
18alantom
2742746ced
perf(GlobalSearch): bulk insert queued items
...
Fixes #14660
2023-11-02 13:30:56 +05:30
Ankush Menat
db01c05eb8
fix: enforce perms on global search
2023-10-31 21:37:30 +05:30
Akhil Narang
03c88d145e
chore: print full path to backup ( #22984 )
...
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2023-10-30 18:04:33 +05:30
Ankush Menat
daca4dd31c
chore: keep deprecated function slated for removal in future
...
This is used in ERPNext.
2023-10-30 17:31:25 +05:30
Ankush Menat
d3225a6df9
refactor: Writing multi-pdf ( #22981 )
...
- rename variables, output -> pdf_writer
- write to in memory stream instead of disk
[skip ci]
2023-10-30 17:26:01 +05:30
Akhil Narang
1119919971
refactor: use gzip library's compress() and decompress() methods directly
...
The util methods were added for python2.7 compat, mark them as deprecated
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2023-10-20 21:17:35 +05:30
Ankush Menat
d1111fb189
refactor: DB dump executable logic ( #22799 )
2023-10-18 08:54:40 +00:00
Ankush Menat
5de126aea9
Merge pull request #22757 from frappe/fix-ci-boilerplate
...
fix: add mariadb-client install step in workflow boilerplate
2023-10-17 11:57:05 +05:30
Hussain Nagaria
f1ba76f5f7
fix: add mariadb-client install step in workflow boilerplate
2023-10-16 19:40:09 +05:30
Ankush Menat
e2714c3e1c
feat: v2 error and debug log structure
2023-10-16 18:13:50 +05:30
Ankush Menat
018ed845bd
refactor: defer unnecessary json-dumping of messages
...
Also avoid accessing locals where interface is present like for popping last message.
2023-10-16 18:13:50 +05:30
Ankush Menat
411819ef81
feat: v2 for message response strucutre
2023-10-16 18:13:50 +05:30
Ankush Menat
3cc2ca8fc7
test: old API messages
2023-10-16 18:13:50 +05:30
Ankush Menat
d5a21a2676
fix: rename type validation
...
`None` can be passed which is acceptable here.
TODO: Make slackdict accept none as bool and convert to False
2023-10-16 18:12:53 +05:30
Ankush Menat
e1f2f4bb54
fix: Let social login key control signups
...
There are cases where certain social login keys
- Should not allow signups at all and only allow logins. E.g. social media login keys.
- Should allow signups even if global sign ups are disabled. e.g. internal SSO like setups.
2023-10-14 12:43:48 +05:30
Akhil Narang
0be3b61aec
chore: drop usage of the deprecated distutils.version.LooseVersion
...
Use `packaging.version.Version` instead
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2023-10-11 20:13:59 +05:30
Ankush Menat
fc16af2ac9
fix: fallback to mysqldump if mariadb-dump isn't available
2023-10-11 19:30:36 +05:30
Sambasiva Suda
7165f94148
fix: validate_email_addr should return email id as it is if it is valid ( #22613 )
2023-10-11 12:37:48 +05:30
Akhil Narang
091ebdd8dc
refactor(treewide): use mariadb commands directly instead of mysql ( #22620 )
...
This has been done because the mysql command issues a deprecation warning now
mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2023-10-10 12:49:16 +05:30
Ankush Menat
5d31667157
fix: Correct exit code for failed compressed file backup
...
addresses https://github.com/frappe/press/issues/1052
Similar to https://github.com/frappe/frappe/pull/18230
2023-09-25 23:15:11 +05:30
Ankush Menat
e9a6c4ab13
fix: user info error when name case mismatches
2023-09-23 15:26:31 +05:30
Corentin Flr
41d30e7213
feat: Add custom icons with the app_include_icons hook ( #22254 )
...
* feat: Add custom icons with the `app_include_icons` hook
These custom icons are available on the desk only. They can be picked in the `ControlIcon` picker.
Co-authored-by: Abraham Kalungi <85731451+kalungia@users.noreply.github.com>
* fix: skip conf for including icons
* test: Fix test_include_icons
---------
Co-authored-by: Abraham Kalungi <85731451+kalungia@users.noreply.github.com>
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
2023-09-20 20:23:17 +05:30
Bernd Oliver Sünderhauf
67376e26d4
fix: Set system timezone for Administrator and Guest users. ( #22440 )
...
* fix: Set system timezone for Administrator and Guest users.
* refactor: use constant instead of duplicating
[skip ci]
---------
Co-authored-by: Ankush Menat <ankush@frappe.io>
2023-09-20 15:26:00 +05:30
Ankush Menat
e152ebc0a3
chore: typo
2023-09-18 20:16:27 +05:30
Ankush Menat
d20e436e0f
perf: fetch user info in one query
2023-09-18 11:16:20 +05:30
0xsaif
87c1a9d7d7
refactor: Ensure admin receives a valid backup encryption key ( #22411 )
...
* refactor: Ensure admin receives a valid backup encryption key
- Added logic to retrieve or generate a backup encryption key if not present.
* refactor: simplify code
---------
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
2023-09-15 11:40:10 +05:30
Ankush Menat
909457de3d
fix: PDF and raw response ( #22402 )
2023-09-13 16:42:49 +00:00
0xsaif
aa7ee1c6b9
refactor: force ipv4 localhost ( #22394 )
...
* reafctor: force ipv4 localhost
Replacing "localhost" with "127.0.0.1" in the codebase; sometimes the name localhost force-resolves to ipv6
* revert: leave localhost usage in oauth tests
Change not required.
---------
Co-authored-by: Ankush Menat <ankush@frappe.io>
2023-09-13 16:23:23 +05:30
Ankush Menat
970a740164
revert: #22308 ( #22389 )
...
* Revert "chore: move function to correct file"
This reverts commit ebfdfa283b .
* Revert "refactor!: merge get_site_url into get_url (#22308 )"
This reverts commit 2001bc278f .
2023-09-13 14:34:52 +05:30
Ankush Menat
0eb509aac3
refactor: Correct Content-Disposition headers ( #22383 )
2023-09-13 12:57:14 +05:30
ViralKansodiya
b0bb9a55d5
fix: error while export a doctype report in excel ( #22376 )
...
* fix: error while export a doctype report in excel
* Update frappe/utils/response.py
---------
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
2023-09-13 12:13:31 +05:30
Ankush Menat
ebfdfa283b
chore: move function to correct file
2023-09-11 19:02:34 +05:30
David Arnold
2001bc278f
refactor!: merge get_site_url into get_url ( #22308 )
...
* chore: merge get_site_url into get_url
* fix: keep alias with deprecation notice
2023-09-11 15:09:05 +05:30
niraj gautam
fbbdef1e9c
feat: Dynamically generate license text ( #22299 )
...
* feat: Add dynamic license dtext
* feat: Validate license name
* fix(DX): Pass options as click.Choice
---------
Co-authored-by: Ankush Menat <ankush@frappe.io>
2023-09-05 05:45:27 +00:00
gavin
c3efddd380
fix: Allow DB Callback Managers in Safe Exec ( #22302 )
2023-09-05 10:38:14 +05:30
David Arnold
011e44656b
fix(test): ensure tests construe the site url from its constructor ( #21870 )
2023-09-02 15:36:24 +05:30
Ankush Menat
5215cc3c74
Merge pull request #22266 from Xieyt/fix/new-app-email-validation
...
fix: add Email Validation in boilerplate creation
2023-09-02 11:39:18 +05:30
Ankush Menat
1ad5c0ea86
refactor: Avoid regex for email validation
...
[skip ci]
2023-09-02 11:38:56 +05:30
Corentin Flr
1380241609
chore: Switch to pydantic.ConfigDict in typing_validations.py ( #22268 )
...
> PydanticDeprecatedSince20: Support for class-based `config` is deprecated, use ConfigDict instead. Deprecated in Pydantic V2.0 to be removed in V3.0. See Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.0/migration/
2023-09-02 11:23:50 +05:30
Corentin Flr
f88df82820
chore(rq): Pass rq.Callback objects to enqueue_call ( #22271 )
...
> DeprecationWarning: Passing a string or function for `on_failure` is deprecated, pass `Callback` instead
2023-09-02 11:22:33 +05:30
Xieyt
98fce7d633
Fix:add Email Validation
2023-08-31 14:04:54 +05:30