Commit graph

1040 commits

Author SHA1 Message Date
Gavin D'souza
c489846547 Merge branch 'develop' into unnecessary_comprehensions 2021-06-11 19:30:23 +05:30
Raffael Meyer
7f7e8ac36a
Merge branch 'develop' into google_drive_picker 2021-06-03 15:01:50 +02:00
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
2021-05-26 15:31:29 +05:30
Ankush Menat
ba1c11008f
feat: option to disable button in slack message
Add a checkbox that lets user disable button which has link to the
document.
2021-05-24 22:01:45 +05:30
Nabin Hait
6d7a852351 Merge branch 'version-13' into develop 2021-05-17 11:21:46 +05:30
Ankush Menat
4754ab71d1
perf(minor): remove unnecessary comprehensions
- remove several unnecessary comprehensions from functions that accept a generator.
- Using `[x for x in iter]` causes a list to be built first then passed to the outer function.
- `any` and `all` can take generator instead. This makes memory usage O(1) and actually makes these functions short-circuiting. E.g. if the first condition fails then `all` will immediately return false instead of evaluating all the entries.
- `sum`, `min`, `max` => memory usage become O(1)
- `list`, `set`, `.join()` => roughly halves memory usage, as list is not required to be built.
- lastly, it's two fewer characters to read/think about.
2021-05-12 20:38:18 +05:30
casesolved-co-uk
095994a86c fix: connected app auto_refresh credentials and mandatory fields 2021-05-11 10:14:56 +00:00
Revant Nandgaonkar
0fb703ae9d fix: sider issues
(cherry picked from commit 72fbcac70c)
2021-04-29 14:14:30 +00:00
Revant Nandgaonkar
f7fb2809f4 test: oauth2 pkce and openid
(cherry picked from commit bb483d59af)
2021-04-29 14:14:30 +00:00
Revant Nandgaonkar
dfd5651dbe refactor: improve oauthlib implementation
implement openid provider
implement PKCE
improve errors

(cherry picked from commit 96d6971ee4)
2021-04-29 14:14:30 +00:00
Rohan Bansal
dade7ed216 refactor: fix py3 datatypes and remove references to six in oauth 2021-04-28 14:02:23 +05:30
Frappe Bot
e2729c65ea refactor: Delete Qunit test files
Since it is no longer used

(cherry picked from commit d30596b15e)
2021-04-28 03:46:23 +00:00
Suraj Shetty
d9b4e664a7
Merge pull request #13006 from surajshetty3416/fix-rtl-for-new-design 2021-04-28 09:13:33 +05:30
Frappe Bot
d30596b15e refactor: Delete Qunit test files
Since it is no longer used
2021-04-27 21:37:15 +05:30
barredterra
5c2a0f4aaf Merge branch 'develop' into google_drive_picker 2021-04-27 12:55:06 +02:00
Revant Nandgaonkar
936934b813 fix: id_token format
decode bytes to utf-8 string
2021-04-27 14:54:35 +05:30
barredterra
df1a0cd0cd fix: test_token_cache PermissionError 2021-04-27 14:54:35 +05:30
Rohan Bansal
3142723d41 feat: manage Python 3 compatiblity with dependencies 2021-04-27 14:54:34 +05:30
Revant Nandgaonkar
72fbcac70c fix: sider issues 2021-04-26 23:04:43 +05:30
Revant Nandgaonkar
bb483d59af test: oauth2 pkce and openid 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
Revant Nandgaonkar
46d68e252f fix: id_token format
decode bytes to utf-8 string
2021-04-19 20:01:52 +05:30
mergify[bot]
2cc1733126
Merge pull request #12887 from alyf-de/fix_test_token_cache
test: fix PermissionError in test_token_cache
2021-04-19 11:56:05 +00:00
Rohan Bansal
a7794d9f6c Merge remote-tracking branch 'upstream/develop' into feat-py3-dependencies 2021-04-19 12:51:50 +05:30
barredterra
edef0a467d fix: test_token_cache PermissionError 2021-04-17 18:31:43 +02:00
barredterra
eb1111af5c Merge branch 'develop' into google_drive_picker 2021-04-17 18:04:54 +02:00
Suraj Shetty
38ca6fe621
style: Remove extra space 2021-04-15 10:23:09 +05:30
Hussain Nagaria
2133777c44 test: Execute enabled webhook trigger 2021-04-15 07:46:39 +05:30
Rohan Bansal
86851028ea feat: manage Python 3 compatiblity with dependencies 2021-04-14 14:40:58 +05:30
Hussain Nagaria
1f70959fa1 feat: Add Enable/Disable Webhook via Check
- Added a new field to Webhook DocType
- Modfied the webhook run logic to only fetch enabled webhooks
2021-04-14 05:56:05 +05:30
Rushabh Mehta
3d22019b98 fix(minor): dynamically changing grid properties 2021-04-13 11:52:57 +05:30
barredterra
41c6c88c05 test: picker enabled 2021-04-03 16:01:11 +02:00
barredterra
7c78fda472 test: google settings 2021-04-02 20:09:37 +02:00
barredterra
91826bcb9c Merge branch 'develop' into google_drive_picker 2021-04-02 19:46:36 +02:00
Sagar Vora
ada4ad7514 chore: add whitelist decorator to missed methods 2021-03-30 18:31:01 +05:30
barredterra
eb98f33895 feat: separate switch for picker, descriptions 2021-03-30 14:36:37 +02:00
barredterra
144608241e refactor: save one API call 2021-03-30 02:20:11 +02:00
barredterra
25a4eb0757 feat: google drive picker 2021-03-29 19:25:41 +02:00
Gavin D'souza
82620d789a fix: Delete user after test is run 2021-03-15 18:53:22 +05:30
Afshan
a342ca2386
fix: Get file name from path (#12437)
* fix: get file name from path

* Update frappe/integrations/doctype/dropbox_settings/dropbox_settings.py

Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>

* fix: upload only files which have file url

* fix: patch to fix files name and url

* fix: fixing patch

* refact: patch refactor

* fix: missing :

* fix: renamed variables

* fix: refactoring patch

* fix: update file exists function

* fix: added patch path in patch.txt

* fix: added try except

* fix: Use set_value instead of set_values

* style: Fix formatting

Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
2021-03-10 18:36:10 +00:00
mergify[bot]
f36e23e003
Merge pull request #12470 from revant/fix_openid_profile
fix(integrations): fix base url for openid_profile
2021-02-24 11:54:42 +00:00
Revant Nandgaonkar
3d26f84d33 fix(integrations): fix base url for openid_profile
if the server is behind proxy the frappe.request.url scheme
is http instead of https causing mixed content errors in browser
2021-02-24 12:31:34 +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
Suraj Shetty
603018ef53
perf: Load workspace faster (#12364) 2021-02-12 19:10:44 +05:30
Suraj Shetty
b94d5778a8 Merge branch 'develop' of https://github.com/frappe/frappe into rebrand-ui 2021-01-19 10:36:50 +05:30
barredterra
a0678a4d5f test: login twice 2021-01-18 19:27:05 +01:00
barredterra
7fd4a114a1 test: use get for login 2021-01-18 18:53:35 +01:00
barredterra
aa9a8b2f1b fix: remove unused import 2021-01-18 18:46:55 +01:00
barredterra
b9f2f5bc22 test: fix connected app 2021-01-18 18:41:11 +01:00
Rushabh Mehta
2b40c5505c
Merge pull request #11000 from alyf-de/generic_oauth_client
feat: generic oauth client
2021-01-14 09:28:07 +05:30