Commit graph

140 commits

Author SHA1 Message Date
Sagar Vora
09e406395a fix: add docstring
(cherry picked from commit e288b781bf)
2021-05-04 05:08:50 +00:00
Sagar Vora
65b6d14dcf fix: disable reloading files in __pycache__ directory
(cherry picked from commit b214a993da)
2021-05-04 05:08:50 +00:00
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)
2021-04-30 06:08:15 +00:00
Revant Nandgaonkar
37cd622628 fix: remove unused imports 2021-04-27 14:56:13 +05:30
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.
2021-02-22 21:45:30 +05:30
Sagar Vora
68c6fc4a44 fix: optimise set_cors_headers 2021-02-22 18:13:30 +05:30
Faris Ansari
51bb7aa39a fix: Throw early if invalid arguments 2021-02-16 21:44:35 +05:30
Sagar Vora
f35e8045d9 feat: set CORS headers based on allow_cors site config 2021-01-09 14:55:55 +05:30
Rushabh Mehta
a0a3606a7f fix(tests): add test cases for custom_link and custom_action 2020-10-26 10:02:04 +05:30
Rushabh Mehta
77e79c050f fix(linting) 2020-10-26 10:02:04 +05:30
Rushabh Mehta
1e48ced097 feat(customize form): add links and actions to customize form and cleanup code 2020-10-26 10:02:04 +05:30
Faris Ansari
129eb72a2f fix: Print disabled traceback in development 2020-09-28 17:16:44 +05:30
Saurabh
435b522dbf fix: cache all apps in local and switch to enable/disable frappe logger 2020-08-10 12:31:08 +05:30
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>
2020-08-04 17:41:34 +05:30
Gavin D'souza
4b93f75eba fix: Log site only if exists 2020-08-03 17:23:32 +05:30
Gavin D'souza
1345c2feb3 feat: Allow_site flag in frappe.logger 2020-07-27 17:31:12 +05:30
Gavin D'souza
476e625261 fix: Add site validation for logger 2020-07-16 16:26:20 +05:30
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
2020-06-12 19:21:08 +05:30
Gavin D'souza
a3d64fb4c5 fix: use fallback attr for web logging 2020-05-29 16:51:07 +05:30
Gavin D'souza
f71585ec74 Merge branch 'develop' of github.com:frappe/frappe into site-wise-logging 2020-05-29 14:56:29 +05:30
Gavin D'souza
746b540af8 fix: Add Form Dict information only for frappe.log 2020-05-27 19:09:18 +05:30
Aditya Hase
19e8008c3c feat(rate-limiter): Ignore requests above limit 2020-05-13 12:34:07 +05:30
Chinmay D. Pai
fd88d324dc
fix: sanitize html before rendering error
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-04-10 21:26:08 +05:30
Aditya Hase
4740e4f7e6 refactor: Monitor
Do not collect request headers
Collect job wait time and whether it was scheduled
2020-03-05 15:06:15 +05:30
Aditya Hase
af3c4feb64 feat: Monitor
Collect HTTP Request and Background Job logs
2020-03-05 15:06:15 +05:30
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>
2020-02-07 12:16:42 +05:30
Saurabh
264a3a2a5d fix: if maintenance mode on, connect database explicitly before… (#7731) 2019-06-28 19:39:25 +05:30
Faris Ansari
f63ad574e5 fix: Dont append request data to form_dict
This breaks many whitelisted methods which do not expect a data arg,
and also the methods which expect an optional data arg but the value is
not passed.

Examples:
frappe.desk.reportview.get
frappe.desk.doctype.bulk_update.bulk_update.submit_cancel_or_update_docs
2019-03-24 12:12:53 +05:30
Aditya Hase
b0faf64386 style: Linting fixes 2019-02-19 21:58:57 +05:30
Aditya Hase
9dea898bae refactor(recorder): Remove --record flag from bench serve 2019-02-19 21:58:55 +05:30
Aditya Hase
9a83ae322c refactor(recorder): Remove RecorderMiddleware 2019-02-19 21:58:55 +05:30
Aditya Hase
c54b8a65ba refactor(recorder): Major refactor 2019-02-19 21:58:55 +05:30
Aditya Hase
4594836731 refactor(recorder): Use recorder_start and recorder_stop hooks 2019-02-19 21:58:55 +05:30
Aditya Hase
be6f1a638b refactor(recorder): Remove unused import 2019-02-19 21:58:55 +05:30
Aditya Hase
f4d770739d refactor(recorder): Move recorder related functions to recorder.py 2019-02-19 21:58:55 +05:30
Aditya Hase
7a348d9dbb fix(recorder): Sometimes serializing cache args and kwargs throws Exception 2019-02-19 21:58:55 +05:30
Aditya Hase
f7c5e149db feat(recorder): Record cache activity by monkeypatching RedisWrapper instance methods 2019-02-19 21:58:55 +05:30
Aditya Hase
25ae5757fa refactor(recorder): Store calls list as one object, instead of a list of objects. 2019-02-19 21:58:55 +05:30
Aditya Hase
320aacd14c feat(recorder): Record time before and after function call 2019-02-19 21:58:55 +05:30
Aditya Hase
23727c9302 feat(recorder): Record each executed query as-it-is 2019-02-19 21:58:55 +05:30
Aditya Hase
3cdbb0b40f feat(recorder): Record stack for each frappe.db.sql call 2019-02-19 21:58:55 +05:30
Aditya Hase
dcd9a1053d feat(recorder): Create uuid in RecorderMiddleware 2019-02-19 21:58:55 +05:30
Aditya Hase
8a62b135e2 fix(recorder): Serialize Datetime objects with str() 2019-02-19 21:58:55 +05:30
Aditya Hase
3bc9ccd433 feat(recorder): Record hit count for every path 2019-02-19 21:58:54 +05:30
Aditya Hase
7431a6b682 refactor(recorder): Add explanation for patching frappe.db.sql 2019-02-19 21:58:54 +05:30
Aditya Hase
dc6ea19c2a refactor(recorder): Store path, request, calls at the end of request in cache 2019-02-19 21:58:54 +05:30
Aditya Hase
a0dd5ceb56 refactor(recorder): Don't push data to cache on every call 2019-02-19 21:58:54 +05:30
Aditya Hase
ef3d952379 feat(recorder): Group and lines by frappe.request.path and show on page 2019-02-19 21:58:54 +05:30
Aditya Hase
5ad3d3ce59 feat(recorder): Store arguments and results for all calls to frappe.db.sql in cache 2019-02-19 21:58:54 +05:30
Aditya Hase
07f9d6cefc feat(recorder): Add --record flag to use RecorderMiddleware 2019-02-19 21:58:54 +05:30