Commit graph

39863 commits

Author SHA1 Message Date
Ankush Menat
abaa830bbc
feat: db storage usage report (#18464)
Basic report to check storage usage by each table.

Note: This is not 100% accurate and will never be 100% accurate but gives rough indication of which table is consuming how much storage.

`no-docs`

[skip ci]
2022-10-19 15:23:00 +05:30
Ritwik Puri
59387d1a74
Merge pull request #18431 from phot0n/fix-bulk-edit-datetime
fix: consider now datetime if the default value is now for datetime field
2022-10-19 13:07:38 +05:30
phot0n
71bb5e835d fix(minor): consider lowercase value for comparision in set_formatted_input for datetime field 2022-10-19 12:01:44 +05:30
Ankush Menat
061a9aa2ab test: db_set does not query for new doc
[skip ci]
2022-10-19 10:58:29 +05:30
PeterG
3676188083
fix: google calendar sync times (system tz) (#18458)
* fix: google calendar sync times (system tz)

* added line breaks to excessively long bit

* (chore) linter appeasement

* chore: linting

[skip ci]
2022-10-19 10:39:43 +05:30
Ritwik Puri
dc92248378
Merge branch 'develop' into fix-bulk-edit-datetime 2022-10-19 02:17:20 +05:30
Ankush Menat
d0715dd574
Merge pull request #18453 from ankush/db_set_null
fix: dont `db_set` on unsaved document
2022-10-18 22:01:45 +05:30
Rushabh Mehta
83c310b779
Merge pull request #18452 from rmehta/blog-category-fix
fix(ux): add better home for blog category, cleanup forms
2022-10-18 21:50:22 +05:30
Anoop
c44e278fed
feat: add video conferencing option (Google Meet) to Google Calendar integration (#17851)
* feat: add video conferencing (via google meet) for events syncing with google calendar

* fix: unset add_video_conferencing if sync_with_google_calendar not enabled

* fix: remove conference data if add_video_conferencing disabled during update

* fix: restrict add conferencing if event_category in Event, Meeting and Other

* fix: save meet link while pulling from calendar
updated response API Response comment with conference details
show google calendar section if pulled from google calendar

* feat: show link to join video conference with google meet

* fix(style): linter errors

* fix(style): linter errors

* fix: set conferenceDataVersion 1 only if google meet conferencing enabled
remove google meet link from event needs both conferenceData as null and conferenceDataVersion 1

* Update frappe/desk/doctype/event/event.py

show add_video_conferencing for events of all categories

Co-authored-by: Ritwik Puri <ritwikpuri5678@gmail.com>

* Update frappe/desk/doctype/event/event.json

show add_video_conferencing for events of all categories

Co-authored-by: Ritwik Puri <ritwikpuri5678@gmail.com>

* fix: handle empty ends_on, use starts_on

Co-authored-by: Ritwik Puri <ritwikpuri5678@gmail.com>

* fix: do not update Event modified time on db set meet link

Co-authored-by: Ritwik Puri <ritwikpuri5678@gmail.com>

* fix: add email field event participants table
set email from linked contact
google calendar event to use event participant email as attendees

* fix: attendees not cleared from google calendar event

* fix(style): linter suggestions

* fix: make email field non-read only, called set_participants_email from before_save hook

* test: update new no of fields in event doctype in test_fetch_to_customize

Co-authored-by: Ritwik Puri <ritwikpuri5678@gmail.com>
2022-10-18 19:07:48 +05:30
Ankush Menat
1bd61d5c25 fix: dont db_set on unsaved document 2022-10-18 17:38:03 +05:30
Rushabh Mehta
2a50d6c593 fix(ux): add better home for blog category, cleanup forms 2022-10-18 17:28:47 +05:30
Ankush Menat
6e020f333e
Merge pull request #18443 from netchampfaris/client-delete-child-doctype
fix(frappe.client): delete child doc via parent
2022-10-18 17:00:13 +05:30
Shariq Ansari
5c2dfcb9a0
Merge pull request #18425 from maharshivpatel/fix-ui-mobile-grid 2022-10-18 14:50:36 +05:30
Faris Ansari
2b859990d2 test(client.delete): test for child doc delete 2022-10-18 14:15:37 +05:30
Faris Ansari
8acbc38670 fix: raise error if child doc not found 2022-10-18 13:46:57 +05:30
Maharshi Patel
6b1c825741 fix(UI): consider 2px border at grid end 2022-10-18 13:02:42 +05:30
Ankush Menat
c2f43c4b26
fix: validate website settings (#18446) 2022-10-18 12:41:36 +05:30
Shariq Ansari
98e1813de1 fix(UI): lesser margin if cell is focused 2022-10-18 11:37:37 +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
Faris Ansari
55bc60433f fix(frappe.client): delete child doc via parent
so that parent's on_update is called
no change for deletion of normal doctype
2022-10-18 01:23:37 +05:30
Maharshi Patel
57aad87166 chore(DX): camelCase to snake_case & separate functions. 2022-10-17 21:56:55 +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
phot0n
5bbb9b42e1 fix: consider now datetime if the default value is now for datetime field 2022-10-17 13:38:57 +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
Maharshi Patel
60d6cb1040 fix(UI): child table custom horizontal scroll 2022-10-17 10:34:22 +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