Deepesh Garg
2af2b80ba6
feat: Expose add index in exec_globals ( #16605 )
...
* feat: Expose add index in exec_globals
* fix: Linting issues
2022-04-14 18:59:39 +05:30
Ankush Menat
3fb1eaf13b
perf: dont query for impossible child/ancestor ( #16577 )
...
Also avoid manual plucking
2022-04-12 13:31:57 +05:30
Suraj Shetty
c0c5b2ebdd
style: format all python files using black ( #16453 )
...
Co-authored-by: Frappe Bot <developers@frappe.io>
2022-04-12 10:59:25 +05:30
gavin
62ca3b6edb
Merge pull request #16502 from gavindsouza/nestedset-fixes
...
fix(nestedset): Fix rgt value via update_add_node
2022-04-04 16:00:56 +05:30
Gavin D'souza
9e01a022b8
fix(nestedset): update_move_node
...
Revert to past-like structure and maintain only query conversions
2022-04-04 15:14:37 +05:30
Gavin D'souza
5ff587fc40
fix(nestedset): Fix rgt value via update_add_node
...
This bug was introduced via 3358fdf9a9
2022-04-04 12:36:18 +05:30
Sagar Vora
830a925b82
feat: allow enqueue at front of Redis Queue
2022-04-03 11:50:02 +05:30
Suraj Shetty
b8212501fb
Merge branch 'develop' into fix-flaky-test
2022-04-01 19:05:50 +05:30
Suraj Shetty
42643c3faa
fix: Follow FIFO while inserting global search record
...
the latest enqueued value should override the value of the existing document
2022-04-01 18:47:05 +05:30
Gavin D'souza
1728db8428
fix(file_manager): Correct and => or usage in refactored query
2022-04-01 17:50:33 +05:30
gavin
278827cb18
Merge pull request #16468 from gavindsouza/misc-fixes-8
...
fix(utils): Misc fixes
2022-04-01 17:28:40 +05:30
Gavin D'souza
eaa332e901
fix(goal): Make sure history field contains a JSON dump
2022-04-01 16:43:25 +05:30
Suraj Shetty
bb98e47e11
Merge pull request #16470 from netchampfaris/refactor-background-jobs-page
2022-04-01 12:06:13 +05:30
Faris Ansari
c7dbb61e55
fix: Refactor Background Jobs page
...
- Jobs/Worker view
- Filter by Queue Timeout and Job Status
- Toggle Auto Refresh
- Consistent theme
2022-03-31 16:35:54 +05:30
Gavin D'souza
69df3edba3
fix(query): Typo in OPERATOR_MAP
2022-03-31 16:24:03 +05:30
Gavin D'souza
b99cd7ab3b
refactor: frappe.utils.user
...
* Refactored raw SQLs and outdated APIs to use newer DB + QB APIs
* Simplified Python & Query logic
* Added type hints
* Styled with Black
2022-03-31 16:19:27 +05:30
Gavin D'souza
d0bd4730da
refactor(file_manager): Refactor raw SQLs to use qb & db_query APIs
2022-03-31 16:12:54 +05:30
Sagar Vora
e02e640497
perf: dont cache assets_json in Redis for developer_mode
2022-03-31 14:50:15 +05:30
Gavin D'souza
b4485665ad
refactor: frappe.utils.goal
...
* Deprecate filter_str in whitelisted get_monthly_goal_graph_data API;
use filter Dict instead
* Simplify logic
* Use qb notation instead of raw SQLs
* Raise 403 if user does not have access to document
Note: This includes a security fix
2022-03-31 14:48:47 +05:30
gavin
590a25ef78
Merge pull request #16465 from resilient-tech/refactor-get_assets_json
...
perf: cache parsed `assets_json` instead of string
2022-03-31 14:38:26 +05:30
Gavin D'souza
2d806b5d6d
fix: Ported subqry to branch for compatibility
...
Via https://github.com/frappe/frappe/pull/16107
2022-03-31 13:41:08 +05:30
Sagar Vora
987b47557d
perf: cache parsed assets_json instead of string
2022-03-31 12:28:23 +05:30
Gavin D'souza
459c179916
refactor(utils): Use qb & db APIs inplace of raw SQls
2022-03-30 17:59:22 +05:30
Gavin D'souza
3358fdf9a9
refactor(nestedset): Using qb or db APIs inplace of raw SQLs
2022-03-30 17:59:22 +05:30
gavin
e6e9370b59
Merge pull request #16450 from gavindsouza/drop-bots
...
fix!: Remove dead functionality
2022-03-30 17:58:13 +05:30
Sagar Vora
6993f51bf9
fix: ignore DoesNotExistError inside get_cached_value
2022-03-30 15:40:09 +05:30
Gavin D'souza
9819cdeea8
fix!: Remove frappe.utils.reset_doc
...
Removed because it's a long forgotten, unused module that seems to be straight up
broken
2022-03-30 12:41:48 +05:30
Gavin D'souza
081d3081bc
fix!: Remove "K.I.S.S. Bot" functionality
...
The feature has been removed from Core since it doesn't add any value to
the system, is unmaintained, partially developed and undocumented.
2022-03-30 11:33:40 +05:30
Suraj Shetty
cc725e9f48
fix: Allow empty webhook data
2022-03-29 08:56:16 +05:30
Ankush Menat
b029b255fe
refactor: code duplication for sql whitelisting
2022-03-24 17:49:28 +05:30
Ankush Menat
590aaf80c7
fix(UX): Logout -> Log out
2022-03-24 15:57:16 +05:30
Raffael Meyer
f80a16ed14
feat: add translated search doctypes to hooks ( #16197 )
...
In `search.py` it was hardcoded that **DocType** and **Role** get translated before matching against the search text. This way, a user can type in his local language and still see correct results.
This feature is useful for other DocTypes as well. The criterion would be: there is a small, fairly static number of records, so that the performance impact of translating all names first is not too bad.
This PR adds a hook `translated_search_doctypes` that determines which DocType names get translated before search.
I also added **Country** to `translated_search_doctypes` for frappe. The link to **Country** is frequently used in **Address**, but until now there was no way to use it in the local language. There are ~70% less Countries than DocTypes (including ERPNext), so the performance should be fine.
ERPNext could, for example, add the **Gender** DocType to this hook. As there are very few genders, translating them is fast and improves the UX.
Docs: https://frappeframework.com/docs/v13/user/en/python-api/hooks/edit?wiki_page_patch=b4d7c8d6fc
2022-03-23 10:43:04 +00:00
mergify[bot]
64efc6bd88
Merge pull request #16042 from saxenabhishek/aks-feat-parse_app_name
...
feat: app name parsing
2022-03-23 09:01:52 +00:00
Gavin D'souza
22fc955e65
fix: Tabs > Spaces
2022-03-23 13:37:41 +05:30
Carlos Ríos
e8fdca8698
feat(logger): implement stream_only to use StreamHandler instead of RotatingFileHandler ( #16274 )
...
* feat: implement valued parameter 'stream_only' in 'get_logger()' in order to stream logs into stderr instead rotating log files.
Co-authored-by: gavin <gavin18d@gmail.com>
2022-03-23 13:37:12 +05:30
saxenabhishek
c53e6d822d
feat: parse app name from tags and urls
2022-03-22 14:16:59 +05:30
mergify[bot]
cf0765916e
Merge pull request #16340 from alyf-de/refactor-backup-utils
...
fix: backup utils
2022-03-20 08:32:52 +00:00
barredterra
8a4f316ec5
refactor: remove useless pass, log error
2022-03-20 02:35:35 +01:00
barredterra
1d3ec42974
fix: send_email doesn't take arguments
2022-03-20 02:20:27 +01:00
barredterra
4b8efc5ebd
fix: typo in parameter name
2022-03-20 02:19:41 +01:00
barredterra
0d8733c462
refactor: remove unused import
2022-03-20 02:19:07 +01:00
mergify[bot]
5d0ff49296
Merge pull request #16321 from rmehta/website-fixes
...
fix(build): separate assets.json and assets-rtl.json to fix concurrency issue
2022-03-17 09:51:35 +00:00
Rushabh Mehta
0b8a2edee7
fix(build): separate assets.json and assets-rtl.json to fix concurrency issue
2022-03-17 14:54:17 +05:30
Suraj Shetty
bcaac34126
Merge branch 'develop' into support-portal
2022-03-17 10:49:48 +05:30
Rushabh Mehta
dd02496dad
Merge pull request #15964 from phot0n/integer-primary-keys
...
feat: integer primary keys
2022-03-16 17:07:20 +05:30
mergify[bot]
5f1eadeb7a
fix(BackupGenerator): set missing attribute for class object (backport #16273 ) ( #16301 )
...
This is a semi-automatic backport of pull request #16273 done by [Mergify](https://mergify.com ).
2022-03-16 08:10:05 +00:00
shadrak gurupnor
9268405d62
feat: added redirect for support portal
2022-03-15 17:36:33 +05:30
Ankush Menat
23b70df784
fix!: deprecate is_async=False usage outside of tests
2022-03-14 14:27:59 +05:30
phot0n
bebc8058b6
feat: integer primary keys
2022-03-11 23:46:00 +05:30
ChillarAnand
b2fc959307
refactor: Clean up whitespace & add CI check
2022-02-25 20:01:29 +05:30