Commit graph

178 commits

Author SHA1 Message Date
Faris Ansari
adc236e35d feat: Notify build events to browser
- Update assets_json directly from node
- Show error overlay or success message
- Open file in editor from error overlay
2021-05-01 16:02:49 +05:30
Faris Ansari
aac5423600 Merge remote-tracking branch 'upstream/develop' into esbuild 2021-04-29 13:58:27 +05:30
Faris Ansari
dd69f1ab43 fix: Hash based file naming
- For better HTTP caching and cache busting
- assets.json is created under [app]/dist folder which contains the map
of input file and output file name, this is used to get the correct path for
bundled assets
2021-04-29 13:30:07 +05:30
Rohan Bansal
dade7ed216 refactor: fix py3 datatypes and remove references to six in oauth 2021-04-28 14:02:23 +05:30
Revant Nandgaonkar
c4a9238549 fix: remove six imports and use py3 defaults 2021-04-27 14:20:26 +05:30
Revant Nandgaonkar
1f54b8b973 fix: sider issues 2021-04-26 22:56:14 +05:30
Revant Nandgaonkar
96d6971ee4 refactor: improve oauthlib implementation
implement openid provider
implement PKCE
improve errors
2021-04-26 22:56:14 +05:30
Sagar Vora
9d3be5160f perf: low priority for backup processes 2021-04-22 12:45:46 +05:30
leela
5c2bda478c Refactor(Improv): Include automated mail notifications in timeline
Notifications sent through notifications doctype are not part of
communications doctype and also not into timelines. Added these
notifications into timeline by adding docs into Communication doctype.
2021-04-05 09:45:17 +05:30
Suraj Shetty
ac7b40a7e3 fix: Do not show progress bar in CI environ 2021-03-19 18:57:31 +05:30
leela
a62cc40885 perf: Improve import template performance by 10 times
Removed nested forloop to get the performace and also using generators
to reduce memory usage.
2021-03-11 09:52:40 +05:30
Aditya Hase
bbb898cf9b
Merge branch 'develop' of https://github.com/frappe/frappe into perf-cli 2021-02-21 09:58:21 +05:30
Aditya Hase
7f0fe5e697
perf: Remove frappe.utils.identicon from import tree 2021-02-20 21:19:04 +05:30
Aditya Hase
9614886fa5
perf: Remove requests from import tree 2021-02-19 21:14:12 +05:30
Gavin D'souza
721097e47d chore: Drop deprecated code 2021-02-10 11:31:18 +05:30
Gavin D'souza
ff27940b8e refactor(utils): Update create_batch docstring, annotations 2021-02-10 11:30:34 +05:30
Gavin D'souza
3589f724af style: sort imports 2021-02-04 17:20:44 +05:30
Gavin D'souza
3ce680a5f9 Merge branch 'develop' of github.com:frappe/frappe into fix-base-path-restore 2020-12-04 18:17:59 +05:30
Gavin D'souza
1b609af8e5 fix: Handle paths relative to bench root and sites folder 2020-12-04 18:15:17 +05:30
Abhishek Balam
3676f8dc6f
Merge pull request #11720 from saurabh6790/format-email-fix
fix: validate email id before passing to formataddr
2020-12-04 17:42:53 +05:30
Abhishek Balam
d229e363b3 fix: revert cstr import added 2020-12-04 17:10:42 +05:30
Abhishek Balam
9d060f9653 fix: cstr import added 2020-12-04 17:01:55 +05:30
Suraj Shetty
13175a8bc4 fix(website): Bust cache by passing build_version to link and script sources 2020-11-09 15:54:17 +05:30
Suraj Shetty
01312889f8 refactor: Move get_build_version to utils.py 2020-11-09 15:31:49 +05:30
Saurabh
9219db4c2a fix: validate email id before passing to formataddr 2020-10-16 14:12:31 +05:30
Gavin D'souza
a94db8a5ce fix: Added human readable file size func 2020-09-28 19:13:31 +05:30
Rushabh Mehta
334ae82e52 fix(naming): added multiple rules for naming series 2020-09-21 10:28:11 +05:30
Faris Ansari
ee7d119546 fix: Escape invalid email in throw 2020-09-09 14:03:56 +05:30
Chinmay D. Pai
ff39b6ae5f
fix: email encoding issue inside email queue
email addresses get formatted incorrectly inside the email queue,
causing emails to be sent with encoded-words addresses instead of
proper, human readable email addresses. this particularly happens when
the address has special and accented characters. an example of
encoded-words address looks like:

=?utf-8?q?=C3=A1dministr=C3=A1tor?= <admin@example.com>

instead of something like:

ádministrátor <admin@example.com>

another issue that causes this is validations that strip html tags from
field when ignore_xss_filter is not set in a docfield. setting
ignore_xss_filter for the email field inside email queue fixes
this issue.

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-07-17 16:24:31 +05:30
Gavin D'souza
52ba5c9b79 fix: Handle progress updates if command not executed via terminal 2020-06-23 12:46:26 +05:30
Gavin D'souza
064a0ae4e2 fix: update progress bar wrt terminal size 2020-06-19 12:00:45 +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
9a6151ec32 perf: memoize get_site_name function 2020-05-27 19:10:04 +05:30
Gavin D'souza
f3ccdd9ebc fix: dont convert from md if html 2020-05-20 13:18:19 +05:30
Suraj Shetty
41c5b35636 feat: Show percent complete with progress bar 2020-05-03 18:45:40 +05:30
Chinmay D. Pai
1dfa8ccbc4
feat: add name validation to data fieldtype
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-04-21 15:49:55 +05:30
Gavin D'souza
2c5bc5abcf fix: remove type annotations 2020-03-25 17:22:12 +05:30
Gavin D'souza
f7111e20be fix: Improper ValidationError string
returning empty string if parseaddr returns None shows " is not a valid Email Address"

eg: if 'email@' is passed as value, email.utils.parseaddr will return a
(None, None) tuple
2020-03-25 16:28:37 +05:30
Gavin D'souza
c199a3555b chore: remove deprecated validate_email_add function 2020-03-25 15:59:01 +05:30
Gavin D'souza
d199d8027a feat: added server validations for phone and email
for fieldtype "Data" and options set to "Email" or "Phone", updating
    documents will trigger data validations for email and phone numbers will be made
2020-03-25 15:29:24 +05:30
Gavin D'souza
e9a6927039 chore: fixed imports after module restructure 2019-11-29 21:08:30 +05:30
Gavin D'souza
450f5c3785 chore: moved 'get_html_for_route' to frappe.utils 2019-11-29 20:42:25 +05:30
Gavin D'souza
5bd5eb8911 chore: moved set_request function to frappe.utils 2019-11-13 14:09:46 +05:30
Chinmay D. Pai
2bdcdf5dcf
fix: decode non-ascii characters for formataddr
formataddr[1] by default encodes non-ascii characters to `=?utf-8?q`, which needs to be decoded to a human-readable string format. using decode_header and make_header we can decode the string back to human-readable format.

before:

In [1]: formataddr(("Tèst", "notifications@erpnext.com"))
Out[1]: '=?utf-8?b?VMOoc3Q=?= <notifications@erpnext.com>'

after:

In [2]: make_header(decode_header(formataddr(("Tèst", "notifications@erpnext.com"))))
Out[2]: 'Tèst <notifications@erpnext.com>'

references:
[1]: https://docs.python.org/3/library/email.utils.html#email.utils.formataddr

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2019-10-29 16:22:25 +05:30
Faris Ansari
b973a5d101 fix: Process data in batches 2019-09-29 22:41:29 +05:30
Himanshu Warekar
cfbfc24398 fix: 'NoneType' object has no attribute 'get' 2019-09-20 16:16:57 +05:30
Faris Ansari
1389300115 fix: bench run-ui-tests command (#7844)
* fix: bench run-ui-tests command

BREAKING CHANGE
This replaces the old run-ui-tests command which used selenium to run
UI tests with Cypress.

Usage:

bench --site [sitename] run-ui-tests [app]
bench --site [sitename] run-ui-tests [app] --headless

* fix: Include adminPassword from site_config

* fix: string formatting
2019-07-05 15:30:59 +05:30
Sahil Khan
0eb9fc5eec fix(sync_site): syntax error 2019-05-09 14:52:37 +05:30
Sahil Khan
42fc641fd9 feat(sync_site): sync site via central agent 2019-05-09 14:22:47 +05:30
Frappe Bot
bd2e410a02 Merge branch 'master' into develop 2019-03-23 07:23:54 +00:00