Commit graph

38643 commits

Author SHA1 Message Date
mergify[bot]
3e69b562f1
Merge pull request #17131 from Aradhya-Tripathi/get-all-mod
feat: Adding support to Query engine
2022-06-29 05:36:33 +00:00
Ankush Menat
069b0ec650 chore: py38 safe typehint 2022-06-29 11:01:55 +05:30
Gavin D'souza
ee18694b1b test(fix): Import Max for test_functions_fields 2022-06-29 10:40:21 +05:30
gavin
91e76ff874
Merge branch 'develop' into get-all-mod 2022-06-28 19:47:20 +05:30
Aradhya
303d94494d refactor: atomic functions & removed complicated checks
Co-authored-by: gavin <gavin18d@gmail.com>
2022-06-28 19:44:03 +05:30
Aradhya
6db6be1f3c refactor: frappe.qb.engine
* Small fixes in set_fields and clean code
* Optimize casefolds
* Fixed functions passed in List
* get_sql => get_query - more expressive, less confusion
* Updated tests
2022-06-28 19:43:57 +05:30
Aradhya
4af2e1e886 refactor: replaced frappe.db.query with frappe.qb.engine 2022-06-28 19:43:50 +05:30
Aradhya
7732accded feat: Attached Engine object to qb & added dynamic type hints 2022-06-28 19:43:23 +05:30
Aradhya
960952cfc3 feat(qb-engine): Added Aggregation function support
* Added Min, Max
* Added tests
2022-06-28 19:41:39 +05:30
Aradhya
fca026927e refactor: moved all query logic to query class 2022-06-28 19:41:32 +05:30
Aradhya
d0680941ad refactor: frappe.qb.engine
* feat: supporting empty iterables for Contains objects
* fix: explicitly setting empty iterables as tuples to support more operators
* feat: Added locate to frappe.qb Functions
* feat: Added support for functions passed as strings in fields
* feat: Included Criterion objects as fields
* fix: picking up only function intended fields to pass to get_function_objects
* feat: Added iterable for available functions, added support for Field objects
* fix: fixed * passed in fields in lists
2022-06-28 19:41:23 +05:30
Aradhya
d1f5c49b02 refactor(qb-engine): frappe.db.query
* feat: Added support for True as filter and pluck in the query engine

* feat: Added join support

* fix: return if filters are None

* feat: Added support for sets as filters and additional conditions

* fix: fixed IS operator in query builder

* feat: Added support for 'as' in query engine

* fix: fixed 'as' for criterion objects passed directly

* fix: fixed frappe.db.count

* fix: fixed functions in fieldname

* feat: Added support for multiple fields passed as a single string :) fixed None fields in a list

* feat: Added support for "as" in single string fields

* fix: fixed queries with invalid syntax
2022-06-28 19:40:34 +05:30
mergify[bot]
948b5acb3c
Merge pull request #17323 from scdanieli/enable-further-translations
fix: enable further translations
2022-06-28 13:34:08 +00:00
Ankush Menat
8463b0e2b9
Merge pull request #17338 from frappe/revert-17126-export-report-with-extra-column
Revert "fix: extra column in excel after exporting report with group by"
2022-06-28 18:40:44 +05:30
Ankush Menat
c8ac3f922e Revert "fix: extra column in excel after exporting report with group by (#17126)"
This reverts commit 971b8160a3.
2022-06-28 18:40:27 +05:30
gavin
4036a5704f
Merge pull request #17331 from gavindsouza/email-unsubscribe
refactor(minor): get_unsubscribe_message
2022-06-28 18:09:22 +05:30
Shariq Ansari
6a3e43789b
Merge branch 'develop' into enable-further-translations 2022-06-28 17:43:06 +05:30
Samuel Danieli
d58f2ed8e7
fix: german translations (#17324) 2022-06-28 17:28:27 +05:30
mergify[bot]
996cd58279
Merge pull request #17290 from resilient-tech/fix-expense-svg
fix: improve SVG for expenses icon
2022-06-28 11:48:19 +00:00
Shariq Ansari
4dff0d25a3
feat: add email retry limit in system settings (#17259)
**MAX_RETRY_COUNT** for email was hard coded as 3. Added **Email Retry Limit** field in **Email** section in **System Settings** 

<img width="754" alt="image" src="https://user-images.githubusercontent.com/30859809/174769592-97c27a5b-9fea-471f-b596-593de4c5f91f.png">

>no-docs
2022-06-28 10:47:26 +00:00
Shariq Ansari
971b8160a3
fix: extra column in excel after exporting report with group by (#17126)
Co-authored-by: gavin <gavin18d@gmail.com>
2022-06-28 12:39:45 +05:30
Ankush Menat
9e1d7742eb
Merge pull request #17329 from ankush/next_execution
fix(UX): show next execution time on scheduled job
2022-06-28 12:34:41 +05:30
Ankush Menat
6001864888 fix(UX): show next execution time on scheduled job 2022-06-28 12:27:11 +05:30
Ankush Menat
4bf7cd8210 fix: ignore virtual docfield property conflicts 2022-06-28 12:27:11 +05:30
Gavin D'souza
07d7b34fd9 refactor: get_unsubscribe_message
* Add fallback label "Unsubscribe" instead of printing None in the email
* Add typing hints, f-stringify & make code DRY-er for better readability
2022-06-28 12:08:00 +05:30
Ankush Menat
9bd753551b
ci: temp fix for semgrep (#17228)
* ci: respekt my authoritah

* ci: use pip semgrep
2022-06-28 12:07:34 +05:30
Shariq Ansari
c6fa8ab090
fix: email not sent if contain file with current site url (#17250) 2022-06-28 11:50:57 +05:30
mergify[bot]
f7761c7d43
Merge pull request #17322 from resilient-tech/pass-shared
fix(redis): pass shared param when setting value based on generator
2022-06-28 05:01:58 +00:00
Samuel Danieli
19a1393152 feat: make field label translatable 2022-06-27 23:32:55 +02:00
Samuel Danieli
3263bf8324 style: indent 2022-06-27 22:19:05 +02:00
Samuel Danieli
5604b090c0 feat: enable further translations 2022-06-27 22:15:23 +02:00
Sagar Vora
b7514a05ca fix(redis): pass shared param when setting value based on generator 2022-06-28 00:37:31 +05:30
Ankush Menat
112f113598
fix!: remove dangerous "rollback_on_exception" flag (#17321) 2022-06-27 17:04:34 +05:30
Ankush Menat
fba75c3595
fix: use console.error for logging errors (#17318)
Currently if uncaught exception occurs on server side, there's no simple
way to find it out. Converting these console.log to console.error
simplifies this for UI tests.

Also converted `console.trace to` `console.error`; Both are practically same
and give stack trace too, `trace` expands tracebacks by default. This is
done to make spying on window.console.error easier.
2022-06-27 15:55:54 +05:30
gavin
0a198621f7
Merge pull request #17320 from gavindsouza/doc-not-found
refactor(minor): get_permissions API
2022-06-27 15:44:28 +05:30
Gavin D'souza
084a1e6c31 refactor: get_permissions
* Show page even if dangling Custom DocPerm records encountered
* Add typing hints
* Cleanup APIs
2022-06-27 15:18:06 +05:30
Shariq Ansari
f89dc40b94
fix: Allow permitted number card of type report (#17316) 2022-06-27 14:46:06 +05:30
mergify[bot]
e79bef4115
Merge pull request #17213 from Abhirup-99/develop
Add data titles to sidebar workspace fields for easier selection through CSS.
2022-06-27 05:21:53 +00:00
mergify[bot]
d861538c36
Merge pull request #17238 from Altizo/develop
fix: update ru translate
2022-06-27 05:18:41 +00:00
mergify[bot]
ffd8db6947
Merge pull request #17303 from resilient-tech/chore-redis
chore(redis): remove unnecessary exception handling
2022-06-27 04:58:06 +00:00
Sagar Vora
99388652c9 chore(redis): remove unnecessary exception handling 2022-06-27 01:56:58 +05:30
Abhirup
c99dd7c5ef Add data titles to sidebar workspace fields for easier selection through CSS. 2022-06-27 01:11:21 +05:30
Sagar Vora
217644ac07
fix!: remove unnecessary get_default API (#17295) 2022-06-27 01:01:03 +05:30
mergify[bot]
81d41c8d3a
Merge pull request #17297 from resilient-tech/dont-remove-custom-perms
fix!: dont delete custom permissions when doctype is deleted
2022-06-26 14:22:55 +00:00
mergify[bot]
9b2ce4861e
Merge pull request #17298 from resilient-tech/ignore-docs-on-delete
fix: ignore integration request when deleting doc
2022-06-26 08:27:49 +00:00
Smit Vora
b6963b1dec fix: ignore integration request when deleting doc 2022-06-26 12:53:38 +05:30
Sagar Vora
3c617e3b06 fix!: dont delete custom permissions when doctype is deleted 2022-06-26 11:51:52 +05:30
mergify[bot]
568702967e
Merge pull request #17287 from scdanieli/patch-3
fix(Image View): make info field translatable
2022-06-24 14:02:54 +00:00
Sagar Vora
ac84287266 fix: improve SVG for expenses icon 2022-06-24 18:31:43 +05:30
Danny
47483f833f
feat(translations-cli): Fetch translations for a particular app (#17276)
* translataions for particular app 

get-untranslated/update-translations string for particular app frappe#17268 (feature request)

* fix: linting, making stuff DRY-er

Co-authored-by: gavin <gavin18d@gmail.com>
2022-06-24 17:04:49 +05:30