Commit graph

39842 commits

Author SHA1 Message Date
Ankush Menat
1bd61d5c25 fix: dont db_set on unsaved document 2022-10-18 17:38:03 +05:30
dependabot[bot]
ab259343c2
build(deps): bump actions/checkout from 2 to 3 (#18442)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [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/v2...v3)

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

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-18 10:07:56 +05:30
Ankush Menat
38686d44fb
build(deps): bump restricted python (#18435)
has better support for 3.10

https://github.com/zopefoundation/RestrictedPython/pull/215/files
2022-10-17 20:16:07 +05:30
Ankush Menat
cc72dc47ab
fix: Show error page even when routing fails (#18437) 2022-10-17 19:52:37 +05:30
Rushabh Mehta
590d1d36ca
Merge pull request #18436 from rmehta/fix-skip-broken-redirect
fix(minor): skip broken redirect
2022-10-17 18:56:15 +05:30
Rushabh Mehta
ac263d02ae fix(minor): skip broken redirect 2022-10-17 18:54:41 +05:30
Shariq Ansari
b0c1e400ea
feat: configurable default views (#18409)
Co-authored-by: hrwx <himanshuwarekar@yahoo.com>
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
Co-authored-by: Ankush Menat <ankush@frappe.io>
2022-10-17 16:36:01 +05:30
Leonard Goertz
cfbab92249
fix: add flags to set_permission for docshares (#18416)
* add flags to set_permission for docshares

* refactor: don't expose flags to client side

* fix add_docshare

* style: black formatting

[skip ci]

Co-authored-by: Leonard Goertz <leonard.goertz@noventive.com>
Co-authored-by: Ankush Menat <ankush@frappe.io>
2022-10-17 12:39:56 +05:30
avc
94398aab0e
fix: Notifications. Get Alerts for Today button #18423 2022-10-17 12:32:05 +05:30
Saurabh
35995f0153
fix: reshuffle __newname field to accommodate under 1st Tab Break (#18406)
* fix: reshuffle __newname field to accommodate under 1st Tab Break

* fix: handle empty condition
2022-10-17 12:24:54 +05:30
Faris Ansari
4f650854b8
fix(dx): resolve_class (#18417)
* fix(resolve_class): ignore False values

* fix: allow multiple arguments

* fix: remove unnecessary condition

* test: resolve_class
2022-10-15 17:40:22 +05:30
Shariq Ansari
241f270390
Merge pull request #18400 from shariquerik/child-table-responsive 2022-10-13 19:01:31 +05:30
Shariq Ansari
92f7af969c
Merge branch 'develop' into child-table-responsive 2022-10-13 17:09:23 +05:30
Ankush Menat
eebf7e1fff
chore: dead code removal (#18410)
* chore!: Drop dead code related to configs/moduelview

* chore!: Drop dead boilerplate

* chore: drop desktop.py boilerplate

* chore!: Remove report dump
2022-10-13 15:55:40 +05:30
Ankush Menat
7a53a1dcd8 chore!: drop dead code related to mobile apps 2022-10-13 14:31:27 +05:30
Ankush Menat
2fa5d7636f chore: disable flakey test
This has 29% failure rate and after repeated attempt to fix it, it's
still quite flaky.
2022-10-13 12:07:57 +05:30
mergify[bot]
209a00d60a
fix: correct import for markupsafe.escape (#18401)
ref: https://github.com/pallets/jinja/issues/1626
(cherry picked from commit c2f1c5744b269758ebce48b5fb8feac0488442c1)

[skip ci]

Co-authored-by: Ankush Menat <ankush@frappe.io>
2022-10-13 11:43:09 +05:30
Dany Robert
2f358dea03
fix: explicitly set doctype in queries (#18403) 2022-10-13 11:40:22 +05:30
Shariq Ansari
9280a41e27 fix(UI): Child table responsive 2022-10-12 22:29:30 +05:30
Ankush Menat
45645c3f73 feat: consistent, translatable timeline messages (#17526)
reapply accidentally reverted commit

[skip ci]
2022-10-12 22:27:04 +05:30
Ankush Menat
3c58fff019
fix: correcrt import
ref: https://github.com/pallets/jinja/issues/1626
2022-10-12 22:04:42 +05:30
Ankush Menat
17e546f1a5 Revert "fix: allow backtick in HTML templates as well"
This reverts commit 2f96458bcb.
2022-10-12 18:50:12 +05:30
Ankush Menat
ab3f706948 Revert "feat: consistent, translatable timeline messages (#17526)"
This reverts commit 112c492f3e.
2022-10-12 18:03:57 +05:30
Ankush Menat
c3644093d9 style: format
[skip ci]
2022-10-12 17:38:41 +05:30
Ankush Menat
81ac342c64
Merge pull request #18020 from Alchez/feat-doctype-layout-sync-dev
feat: allow syncing new fields in Doctype Layout
2022-10-12 17:37:14 +05:30
Rohan Bansal
b61e91d8a2 fix: append custom layout JS to existing doctype JS 2022-10-12 16:42:23 +05:30
Aradhya Tripathi
457de5c6b3
fix: stripping comments sent to the database API (#18229)
* feat: stripping comments sent to the database API

* test: Added tests for comment stripping

* fix: only stripping comments in string fields

* refactor: removing on the fly mutations

* refactor: added helper to avoid mutations

* refactor: simplify sanitization

* refactor: removing indexing from everywhere

* refactor: readable functions

* test: only run mdb test on mdb

Co-authored-by: Ankush Menat <ankush@frappe.io>
2022-10-12 16:36:55 +05:30
Nikhil Kothari
1da6ca6731
feat: add export option without template and headers (#18241)
* feat: add export option without template and headers

* Update frappe/core/doctype/data_export/data_export.json

Co-authored-by: Ankush Menat <ankushmenat@gmail.com>

Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
2022-10-12 16:36:02 +05:30
Raffael Meyer
3d17e1589e
feat: search in translated title, if we show title (#17828)
* refactor: use meta.translated_doctype

* refactor: get_title_field_query

* feat: search in title, if we show title

* refactor: build_for_autosuggest

* style: black

* fix: don't order translated doctypes by untranslated relevance

* feat: match all fields for translated doctypes

* feat: translate all fields in description, remove redundant title

* refactor: title in link

* fix: show name in description for title links
2022-10-12 16:31:53 +05:30
Faris Ansari
725d1d20b7
fix: Date rendering in Safari (#17450)
* fix: Date rendering in Safari

new Date(frappe.datetime.now_datetime()) is Invalid in Safari because it
doesn't support the YYYY-MM-DD format, the hiphens need to be removed.
But in this case there is no need to pass any value to Date constructor
to get the current datetime.

* fix: use now_datetime with string replace

Co-authored-by: Maharshi Patel <39730881+maharshivpatel@users.noreply.github.com>

* chore: linter fix

* chore: removed missed line from last commit

Co-authored-by: Maharshi Patel <39730881+maharshivpatel@users.noreply.github.com>
Co-authored-by: Shariq Ansari <30859809+shariquerik@users.noreply.github.com>
2022-10-12 16:30:26 +05:30
PeterG
77ae997b14
fix: google calendar sync times (#18384) 2022-10-12 15:23:04 +05:30
Ankush Menat
98dd7b0616
refactor: simplify api.py (#18372) 2022-10-12 15:18:39 +05:30
stephen
729be707cb
fix: progress bar not disappearing (#18375)
* fix: progress bar not disappearing

* style: format

[skip ci]

Co-authored-by: Ankush Menat <ankush@frappe.io>
2022-10-12 12:27:49 +05:30
Ankush Menat
cfee53d573
refactor: load balanced parallel tests without orchestrator (#18386)
* feat: dry run in test runner for debuggin

* refactor: load balance TestRunner using # of tests
2022-10-12 12:13:24 +05:30
Shariq Ansari
9987ba06b3
Merge pull request #18380 from shariquerik/grid-upload-format-fix 2022-10-12 12:09:45 +05:30
Ankush Menat
6de4d68b24
ci: disable test orchestrator (#18385) 2022-10-12 10:10:44 +05:30
mergify[bot]
f0952d0fbb
refactor: use file api to read import data (#18379) (#18382)
* refactor: use file api for reading data in import

* fix: remove unused import

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>

Co-authored-by: Faris Ansari <netchampfaris@users.noreply.github.com>
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
(cherry picked from commit 702e8674f94fde353ac12885f5782ea73ef75b6f)

Co-authored-by: Ankush Menat <ankush@frappe.io>
2022-10-11 21:59:43 +05:30
Shariq Ansari
a9460c920a
Merge branch 'develop' into grid-upload-format-fix 2022-10-11 19:25:36 +05:30
Shariq Ansari
95f23b3adb fix: format currency value as float while grid upload 2022-10-11 19:06:00 +05:30
Ankush Menat
4863ba154e
build(deps): bump oauthlib (#18373)
CVE-2022-36087 - https://github.com/advisories/GHSA-3pgj-pg6c-r5p7
2022-10-11 18:08:12 +05:30
Shariq Ansari
0d6b06b244
Merge pull request #18355 from shariquerik/vue-css-refactor 2022-10-11 18:04:17 +05:30
Rohan Bansal
5a431b0ec5 fix: ux improvements on doctype layout 2022-10-11 17:25:48 +05:30
Ankush Menat
fadf4049e3 ci: manually label critical files for coverage
[skip ci]
2022-10-11 16:05:45 +05:30
Shariq Ansari
3504ca08f2 fix: revert dynamic entryNames for js 2022-10-11 14:26:32 +05:30
Shariq Ansari
db62545c08
Merge pull request #18315 from shadrak98/reduce-margin 2022-10-11 13:33:50 +05:30
Shariq Ansari
8b7120ffba
Merge branch 'develop' into vue-css-refactor 2022-10-11 13:30:20 +05:30
Sagar Vora
2f96458bcb fix: allow backtick in HTML templates as well 2022-10-11 13:22:13 +05:30
Shariq Ansari
16fb96f6bd fix: responsive 2022-10-11 12:38:46 +05:30
Shariq Ansari
bfbdaa4f4d
chore: code cleanup
Co-authored-by: Sagar Vora <sagar@resilient.tech>
2022-10-11 12:32:36 +05:30
Nabin Hait
e821699c82
fix: Set email account in Communication only if exists (#18361) 2022-10-11 12:20:59 +05:30