Suraj Shetty
c0c5b2ebdd
style: format all python files using black ( #16453 )
Co-authored-by: Frappe Bot <developers@frappe.io>
pirms 3 gadiem
Sagar Vora
951ad3f844
chore(deps): bump werkzeug to latest version
pirms 3 gadiem
Faris Ansari
b632cc558b
fix: remove unnecessary array transformation in request args
`key: ['value', 'value2']` is turned into `key: 'value'` for no reason
pirms 3 gadiem
Suraj Shetty
fba15b3874
fix: Combine request args and form data
- To accept argument via both way in a single request
pirms 3 gadiem
Mitul David
648d24eca5
refactor: Limit file size of uploads by setting max_content_length
pirms 3 gadiem
Gavin D'souza
3446026555
chore: Update header: license.txt => LICENSE
The license.txt file has been replaced with LICENSE for quite a while
now. INAL but it didn't seem accurate to say "hey, checkout license.txt
although there's no such file". Apart from this, there were
inconsistencies in the headers altogether...this change brings
consistency.
pirms 3 gadiem
Gavin D'souza
e407b78506
chore: Drop dead and deprecated code
* Remove six for PY2 compatability since our dependencies are not, PY2
is legacy.
* Removed usages of utils from future/past libraries since they are
deprecated. This includes 'from __future__ ...' and 'from past...'
statements.
* Removed compatibility imports for PY2, switched from six imports to
standard library imports.
* Removed utils code blocks that handle operations depending on PY2/3
versions.
* Removed 'from __future__ ...' lines from templates/code generators
* Used PY3 syntaxes in place of PY2 compatible blocks. eg: metaclass
pirms 4 gadiem
Gavin D'souza
b1d2e24892
refactor(minor): Move logging code in seperate function
pirms 4 gadiem
Sagar Vora
09e406395a
fix: add docstring
(cherry picked from commit e288b781bf
)
pirms 4 gadiem
Sagar Vora
65b6d14dcf
fix: disable reloading files in `__pycache__` directory
(cherry picked from commit b214a993da
)
pirms 4 gadiem
Sagar Vora
e288b781bf
fix: add docstring
pirms 4 gadiem
Sagar Vora
b214a993da
fix: disable reloading files in `__pycache__` directory
pirms 4 gadiem
leela
a8f74d9471
refactor: Move finding email accounts code to EmailAccount doctype
pirms 4 gadiem
Gavin D'souza
127f5223e4
fix: Respond to /api requests as JSON by default
If header 'Accept: application/json' isn't set, the failure
responses to /api endpoints is HTML. Success responses are of type JSON.
(cherry picked from commit fcf63622bc
)
pirms 4 gadiem
Gavin D'souza
6ca0af82b5
fix: Respond to /api requests as JSON by default
If header 'Accept: application/json' isn't set, the failure
responses to /api endpoints is HTML. Success responses are of type JSON.
(cherry picked from commit fcf63622bc
)
pirms 4 gadiem
Gavin D'souza
fcf63622bc
fix: Respond to /api requests as JSON by default
If header 'Accept: application/json' isn't set, the failure
responses to /api endpoints is HTML. Success responses are of type JSON.
pirms 4 gadiem
Suraj Shetty
87fa672250
style: Resolve code correctness warning
pirms 4 gadiem
Suraj Shetty
e18a43e11d
fix: Replace render() with get_response
pirms 4 gadiem
Revant Nandgaonkar
37cd622628
fix: remove unused imports
pirms 4 gadiem
leela
d8d86f7498
refactor: enable profiler from env variable
pirms 4 gadiem
Revant Nandgaonkar
1d0e72834d
fix: remove unused imports
pirms 4 gadiem
leela
b7c8e030b9
fix: Fix setting admin as user when frappe.db is not set
we are setting admin as current user, At time of request handling if
frappe.db is not set. fixed that issue by adding a check.
pirms 4 gadiem
mergify[bot]
7e6ce22d64
perf: optimise set_cors_headers (bp #12460 ) ( #12462 )
(cherry picked from commit 68c6fc4a44
)
Co-authored-by: Sagar Vora <sagar@resilient.tech>
pirms 4 gadiem
Sagar Vora
68c6fc4a44
fix: optimise set_cors_headers
pirms 4 gadiem
Faris Ansari
51bb7aa39a
fix: Throw early if invalid arguments
pirms 4 gadiem
Rushabh Mehta
4369b8c0dc
fix(rendering): add doctype generate pages
pirms 4 gadiem
Rushabh Mehta
3f38c33004
fix: status_code, login page works
pirms 4 gadiem
Sagar Vora
f35e8045d9
feat: set CORS headers based on allow_cors site config
pirms 4 gadiem
Rushabh Mehta
a0a3606a7f
fix(tests): add test cases for custom_link and custom_action
pirms 4 gadiem
Rushabh Mehta
77e79c050f
fix(linting)
pirms 4 gadiem
Rushabh Mehta
1e48ced097
feat(customize form): add links and actions to customize form and cleanup code
pirms 4 gadiem
Faris Ansari
129eb72a2f
fix: Print disabled traceback in development
pirms 4 gadiem
Saurabh
435b522dbf
fix: cache all apps in local and switch to enable/disable frappe logger
pirms 5 gadiem
Aditya Hase
0748312e39
fix(werkzeug): Avoid duplicate lines from werkzeug in bench start logs ( #11171 )
Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
pirms 5 gadiem
Gavin D'souza
f6f3fba485
fix: Log site only if exists
(cherry picked from commit 4b93f75eba
)
pirms 5 gadiem
Gavin D'souza
4b93f75eba
fix: Log site only if exists
pirms 5 gadiem
Gavin D'souza
1de50505f9
feat: Allow_site flag in frappe.logger
(cherry picked from commit 1345c2feb3
)
pirms 5 gadiem
Gavin D'souza
973b01cd02
fix: Add site validation for logger
(cherry picked from commit 476e625261
)
pirms 5 gadiem
Gavin D'souza
1345c2feb3
feat: Allow_site flag in frappe.logger
pirms 5 gadiem
Gavin D'souza
476e625261
fix: Add site validation for logger
pirms 5 gadiem
Gavin D'souza
fe22595e85
fix: rename web.log generated by frappe to frappe.web.log to avoid
conflict with web.log file generated by gunicorn process in production
pirms 5 gadiem
Gavin D'souza
a3d64fb4c5
fix: use fallback attr for web logging
pirms 5 gadiem
Gavin D'souza
746b540af8
fix: Add Form Dict information only for frappe.log
pirms 5 gadiem
Aditya Hase
19e8008c3c
feat(rate-limiter): Ignore requests above limit
pirms 5 gadiem
Chinmay D. Pai
fd88d324dc
fix: sanitize html before rendering error
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
pirms 5 gadiem
Aditya Hase
4740e4f7e6
refactor: Monitor
Do not collect request headers
Collect job wait time and whether it was scheduled
pirms 5 gadiem
Aditya Hase
af3c4feb64
feat: Monitor
Collect HTTP Request and Background Job logs
pirms 5 gadiem
Chinmay D. Pai
f239684740
chore: update werkzeug to 1.0.0
* move all werkzeug.wsgi and werkzeug.contrib imports to
werkzeug.middleware to make things work.
* update pinned requirement to 1.0.0
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
pirms 5 gadiem
Himanshu Warekar
b684ade868
fix: restore debugging code
pirms 5 gadiem
Himanshu Warekar
200767e0a3
fix: get_doc while in test
pirms 5 gadiem