Commit graph

38823 commits

Author SHA1 Message Date
phot0n
2b7bd4eef0 minor(ux): select field for alternating between basic and oauth authentication 2022-07-13 12:05:46 +05:30
phot0n
2907571098 minor: encrypt email oauth refresh and access token 2022-07-13 12:05:46 +05:30
phot0n
5bf26819a8 fix: better/reduced exception handling for email oauth
Since the places where connection methods are called already
have a lot of exception handling, we can just raise and let them
handle all the probable cases.
2022-07-13 12:05:46 +05:30
phot0n
8b38fcb438 chore: move getting site address to GoogleOAuth 2022-07-13 12:05:46 +05:30
phot0n
431afaeee4 fix: remove commit
* chore: raise not implemented error for services other than gmail

* chore: use fstring for _auth_string property
2022-07-13 12:05:46 +05:30
phot0n
84ad7b74b9 fix: don't show authorize api access button if the form is unsaved 2022-07-13 12:05:46 +05:30
phot0n
484758d6e0 chore: remove additional/unnecessary set_value calls 2022-07-13 12:05:46 +05:30
phot0n
6848c93770 chore: remove GET method whitelisting from google integrations 2022-07-13 12:05:46 +05:30
phot0n
6d3dfca214 fix: consider oauth usage as well for asking/updating user email password 2022-07-13 12:05:46 +05:30
phot0n
5521abd40c fix: use safe decode for uid 2022-07-13 12:05:46 +05:30
phot0n
4d5dec4048 fix: open authorization url on the current browsing context 2022-07-13 12:05:46 +05:30
phot0n
834410a2a5 fix: dont update modified timestamp on generating and refreshing tokens 2022-07-13 12:05:46 +05:30
phot0n
ab9a577474 minor: better oauth flow 2022-07-13 12:05:46 +05:30
phot0n
221423c718 chore: added docstrings 2022-07-13 12:05:46 +05:30
phot0n
e58afca3f6 minor: simplify authorize_google_access 2022-07-13 12:05:46 +05:30
phot0n
ed0a255353 minor: fetch oauth fields from site config 2022-07-13 12:05:46 +05:30
phot0n
de6f1326f7 minor: move oauth access functions from email_account 2022-07-13 12:05:46 +05:30
phot0n
67730b7b26 chore: fix sider 2022-07-13 12:05:46 +05:30
phot0n
064ffef8b9 minor: throw exception if refresh_token is not present 2022-07-13 12:05:46 +05:30
phot0n
06c5a7226d chore: fix linter 2022-07-13 12:05:46 +05:30
phot0n
ebc5861210 feat: generic OAuth for email 2022-07-13 12:05:46 +05:30
phot0n
b930cb923b fix: set X-Original-From header before replacing sender email/name
This will help in knowing the original email id and sender of email
and also bring consistency.
2022-07-13 12:05:46 +05:30
phot0n
cc878377be fix: allow adding new emails with google oauth checked
kinda works in a similar way as awaiting_password for new emails
2022-07-13 12:05:46 +05:30
phot0n
07a577af86 feat: google oauth for google emails
* used unique constraint on email_id in Email Account Doctype
2022-07-13 12:05:46 +05:30
phot0n
26dd606831 refactor: GoogleOAuth
* refactor: single callback method for google oauth
2022-07-13 12:05:46 +05:30
Ankush Menat
3fdd89a737
refactor!: remove old weekly cleanup for route history (#17493)
This is now configurable with log settings.

This also fixes circular import issue that occurs when restoring backup
2022-07-13 11:02:56 +05:30
Suraj Shetty
572d9cc696
fix: Return from function after clearing interval 2022-07-13 08:54:52 +05:30
vorasmit
ff734532aa
fix: set primary action after clearing previous action (#17454) 2022-07-12 21:06:52 +05:30
Sagar Vora
7a59fc7ecf
fix: simplify defaults._clear_cache (#17485) 2022-07-12 20:45:49 +05:30
Ritwik Puri
fbb89bdfe9
fix: delete user mention cache when a user is disabled or enabled (#17451)
User Mention cache is deleted on 3 occasions:

* when a new user is inserted
* when allowed_in_mention or user_type value has changed
* when a user is deleted

But we didn't delete it when a user was enabled or disabled as we maintain the mention cache for enabled users
2022-07-12 18:58:07 +05:30
Ankush Menat
ca39cfb11d
feat: support strikethrough in text-editor/comments (#17478)
IMO strikethrough is useful way more often (than many other options that we
already support in editor) so adding it in default config.

closes #17470
2022-07-12 18:38:28 +05:30
Ankush Menat
9530c90c09
fix(quill): don't go beyond container for bubble (#17475)
Container uses bubble type quill editor, options for which seem to spill
out and hide behind the commend container. This fixes the UI glitch.

ref: https://quilljs.com/docs/configuration/#bounds
2022-07-12 18:19:39 +05:30
Sagar Vora
4671460b65
fix: dont scrub key if found in defaults, but falsy (#17467)
* fix: dont scrub key if found in defaults, but falsy

* fix: remove redundant use of `.get`
2022-07-12 17:06:06 +05:30
Suraj Shetty
e6043ef427
fix: Wait for request to complete before firing new request
Sometimes it might take more than 5s
2022-07-12 16:57:20 +05:30
Ankush Menat
415a8b1a7d
Merge pull request #17461 from surajshetty3416/fix-newsletter-performance
perf: Re-use SMTP session while sending bulk emails
2022-07-12 16:14:02 +05:30
Ankush Menat
c1f1895563
Merge pull request #17474 from ruthra-kumar/preserve_type_in_excel_export
fix: Preserve data type in excel export except for composite
2022-07-12 16:13:16 +05:30
Ankush Menat
0a73a3c708 refactor: stringify all non-excel types
style: incorrect EOF

test: excel export types
2022-07-12 15:53:55 +05:30
Suraj Shetty
6bcef3781e fix(email queue): Remove unnecessary indexing 2022-07-12 15:20:44 +05:30
ruthra kumar
dd9fbeff4b fix: Preserve data type in excel export except for composite 2022-07-12 14:03:24 +05:30
Suraj Shetty
34b1ea57f9 fix: Show "Queued" status on newsletter
Show "Queued" status on newsletter if emails are queued and "email sending" is not yet started.
2022-07-12 13:03:06 +05:30
Suraj Shetty
5c72181f22 perf(email queue): Index status, reference_doctype & reference_docname 2022-07-12 12:59:53 +05:30
Suraj Shetty
2b0a3533d3 test: Update test case according to changes 2022-07-12 12:58:15 +05:30
Shariq Ansari
2c2368e973
fix: Datetime field not getting saved if use NOW button. (#17452) 2022-07-12 12:12:39 +05:30
Ankush Menat
9fa69e2610
Merge pull request #17463 from ankush/feat/webhook_previews
feat(UX): generate preview of Webhook request data
2022-07-12 11:27:24 +05:30
Suraj Shetty
a574e3c09e fix: Send emails immediately during tests 2022-07-11 18:55:43 +05:30
Ankush Menat
e652811d55 fix: ignore virtual fields when doing db_update 2022-07-11 18:33:50 +05:30
Ankush Menat
d5820213f0 feat: preview Webhook request data 2022-07-11 18:26:57 +05:30
Ankush Menat
1531e36004 fix: allow JSON array as request body 2022-07-11 18:26:54 +05:30
Ankush Menat
d4fe142674 fix(UX): correctly validate python condition 2022-07-11 18:26:54 +05:30
Suraj Shetty
8f5650de5b fix: Use errored email stats while showing send status 2022-07-11 17:43:56 +05:30