Commit graph

43235 commits

Author SHA1 Message Date
mergify[bot]
9309f9743f
Merge pull request #22309 from blaggacao/cleanup/do-not-hack-popimaplib-anymore-necessary
refactor!: monkey patching {imap,pop}lib is no more necessary since 4 years
2023-09-07 06:01:20 +00:00
David Arnold
734fb891c2
chore: monkey patching {imap,pop}lib is no more necessary since 4 years
see: 13a7ee8d62
2023-09-07 01:12:55 +02:00
Sagar Vora
7b7a574c5a
Merge pull request #22326 from resilient-tech/long-single-value 2023-09-06 16:47:30 +05:30
Sagar Vora
7e9b08a040 fix: convert value column to longtext for Singles 2023-09-06 16:23:01 +05:30
ruthra kumar
1b3b214bea
Merge pull request #22321 from ruthra-kumar/custom_report_error
fix: key error on link_field
2023-09-06 14:11:18 +05:30
ruthra kumar
9cdb56ee5e fix: key error on link_field 2023-09-06 13:47:59 +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
dependabot[bot]
78d481760c
chore(deps): bump actions/checkout from 3 to 4 (#22310)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-05 10:41:55 +05:30
gavin
c3efddd380
fix: Allow DB Callback Managers in Safe Exec (#22302) 2023-09-05 10:38:14 +05:30
Sagar Vora
bcc7cc9a3d
style: use functools.cached_property (#22304) 2023-09-04 16:50:25 +05:30
Ankush Menat
b29272c092 fix: ipython console
https://github.com/ipython/ipython/issues/13966
2023-09-03 19:59:41 +05:30
David Arnold
2d73b8f314
fix: align base template to socketio port default 9000 (#22298)
follow up on #22277
2023-09-03 17:53:05 +05:30
Grant
1259441b9d
fix: Update utils.js use correct tile.osm.org URL (#22296)
See: https://github.com/openstreetmap/operations/issues/737
2023-09-03 11:36:11 +05:30
Ankush Menat
cbc5f0b8db
build(deps): update python dependencies (#22294)
* build!: Remove pycryptodome dependencies

This is added for payments app, shouldn't be added here.

ref: https://github.com/frappe/frappe/pull/9955/

* build(deps): update many python dependencies
2023-09-02 12:10:13 +00:00
Ankush Menat
c22f128475 chore: disable perf tests on postgres 2023-09-02 16:07:08 +05:30
Sabu Siyad
7f88f819ef
feat: communication: override on_update (#22267)
* feat: communication: override `on_update`

If reference doc has a property, `on_communication_update`, execute it.
Otherwise, continue with default/magic actions

* fix: make sure method is callable

---------

Co-authored-by: Ankush Menat <ankush@frappe.io>
2023-09-02 16:01:38 +05:30
Ankush Menat
4fe0a21d6b chore: limit markteplace search to prod sites 2023-09-02 16:00:17 +05:30
Rutwik Hiwalkar
3393e6d1c5
feat: search frappecloud marketplace apps from awesomebar (#22185)
* chore: remove unused import

* feat: search frappecloud marketplace apps from awesomebar

* chore: cache results and add tracking url

* refactor: get_marketplace_apps

- use generator for setting cache
- drop expiry. No need to keep this updated as of now. Site updates and
  ram usage anyways drops cache.
- Timeout if not able to respond
- Rank results lower than everything else

* chore: update request url

* fix: avoid excessive retries

---------

Co-authored-by: Ankush Menat <ankush@frappe.io>
2023-09-02 15:57:34 +05:30
Raffael Meyer
a5c176e5f5
feat: show warning headline in public files (#22242) 2023-09-02 15:53:01 +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
9e2a0384e0
build: bump gitpython (#22290) 2023-09-02 15:29:14 +05:30
Ankush Menat
8f48fbcde2 fix: escape title in link preview 2023-09-02 15:14:42 +05:30
Ankush Menat
9e87c97822
Merge pull request from GHSA-j2w9-8xrr-7g98
* fix: Prevent HTML injection in list_view

* fix: Prevent HTML injection in link_preview

* fix: Prevent HTML injection in breadcrumbs

* fix: Prevent HTML injection in readonly Link field

* refactor: rename breadcrumb util

---------

Co-authored-by: Corentin Forler <10946971+cogk@users.noreply.github.com>
2023-09-02 13:10:49 +05:30
Raffael Meyer
744b383e9a
fix: don't attach web view link if disabled (#22276)
* fix: don't attach web view link if disabled

* feat: improve label

old: "Send document Web View link in email"
new: "Include Web View Link in Email"
2023-09-02 11:43:28 +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
David Arnold
ed5da35b1a
fix: align to socketio port default 9000 (#22277)
* fix: align the frontent to socketio port default 3000

* Revert "fix: align the frontent to socketio port default 3000"

This reverts commit 85df5bfbf9f87c954a3d25169c344ea43c9b8fff.

* fix: change default socketio port

[skip ci]

---------

Co-authored-by: Ankush Menat <ankush@frappe.io>
2023-09-02 11:28:10 +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
ruthra kumar
8605cd2129
fix: attribute error on old custom reports (#22286) 2023-09-02 09:54:14 +05:30
ruthra kumar
2249751e43
fix: attribute error on custom reports (#22281) 2023-09-01 20:50:34 +05:30
RitvikSardana
6fc2cc7fa3
fix: when tree doctype is created ignore_user_permissions is set to 1 by default (#22235) 2023-09-01 14:29:50 +05:30
Xieyt
98fce7d633
Fix:add Email Validation 2023-08-31 14:04:54 +05:30
Ankush Menat
9436c14265 chore: treat background submit as beta feature 2023-08-31 11:59:40 +05:30
Raffael Meyer
b070c06f53
fix: show progress in doc, if given (#22256)
If doc is given, show progress in doc only.
Else, show progress to the current user (in all tabs).
2023-08-31 11:33:48 +05:30
gavin
ddc4e4813a
Merge pull request #22253 from gavindsouza/trim_database-fix
fix(trim-db): Dont show confirm dialog on dry run
2023-08-31 11:26:38 +05:30
Ankush Menat
470e46ed2a
Merge pull request #22258 from ankush/update_rp
build(deps): update RestrictedPython to latest version
2023-08-31 11:20:53 +05:30
Ankush Menat
e9585e9ce6 fix: remove validation on text code
These can overvalidate e.g. "Frappe information technology" contains "format".

Restricted python anyways validates these attr access at runtime, so no
need to validate this on code.
2023-08-31 11:03:28 +05:30
Ankush Menat
cef0399fa3 build(deps): update RestrictedPython to latest version 2023-08-31 10:51:06 +05:30
Gavin D'souza
d4fe4c7e02 fix(trim-db): Dont show confirm dialog on dry run 2023-08-30 13:04:33 +00:00
dependabot[bot]
dd8f314bf4
chore(deps): bump @adobe/css-tools from 4.2.0 to 4.3.1 (#22247)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-30 16:50:40 +05:30
mergify[bot]
fe3f6fe0c9
fix: The Geolocation Map Field in RTL languages in System (backport #22248) (#22250)
(cherry picked from commit 30dd229032cb77b41e7dda16dbdc3e6b28456ee9)

Co-authored-by: Alaa Alsalehi <alaadiaa@gmail.com>
2023-08-30 15:27:57 +05:30
Ankush Menat
d4255eb8b2
Merge pull request #22231 from ruthra-kumar/typeerror_on_custom_reports
fix: `typeerror` on custom reports
2023-08-30 12:03:12 +05:30
Raffael Meyer
1dcf1d1f4b
Merge pull request #21874 from blaggacao/fix-website-asset-discovery 2023-08-29 19:23:55 +02:00
Ankush Menat
487d9fb61f
chore: use isinstance 2023-08-29 22:02:52 +05:30
ruthra kumar
cf24c46128 refactor: filter on names while fetching custom fields
post https://github.com/frappe/frappe/pull/22133, `link_field` should
be a dict to facilitate passing primary key `name` for filtering

query_report.py has been modified to be backward compatible with old
`str` type link_field as well
2023-08-29 20:49:09 +05:30
Ankush Menat
e88cdb6e70
Merge pull request #22224 from ankush/desk_user
feat: `Desk User` role
2023-08-29 20:27:21 +05:30
Ankush Menat
04b2c42778
Merge pull request #22239 from ankush/reveal_missing_perm
fix(UX): Highlight which permission is missing
2023-08-29 20:25:12 +05:30
Ankush Menat
edfeb0d932 fix(UX): Highlight which permission is missing 2023-08-29 19:11:58 +05:30
Ankush Menat
fd44142893
Merge pull request #22233 from ankush/rename_merge_prevent
fix: dont allow rename+merge for case changes
2023-08-29 18:20:58 +05:30