-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Phone provider refactoring #1713
Merged
Merged
Changes from all commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
f1e9b30
Remove unused "created_for_slack" method
Konstantinov-Innokentii 2c8f83b
Initial commit for PhoneProvider refactoring
Konstantinov-Innokentii bbd1430
Delete a.py
Konstantinov-Innokentii ab928fa
Fixed receiving phone_call and sms notifications
Konstantinov-Innokentii e0cc0b1
Cleam twilioapp utils
Konstantinov-Innokentii 81178a6
Clean some comments
Konstantinov-Innokentii 0ccd284
Comments and logging
Konstantinov-Innokentii 678a23d
Polishing
Konstantinov-Innokentii f66242f
Remove non-related changed
Konstantinov-Innokentii b53558e
Return AllowOnlyTwilio permission
Konstantinov-Innokentii 3b99554
Reduce twilio status callbacks
Konstantinov-Innokentii 21d589e
Keep status and sid
Konstantinov-Innokentii 56d6ccd
Remove unised SMSMessage model
Konstantinov-Innokentii 9ffaa24
Fix migration dependencies
Konstantinov-Innokentii 7fd7600
Merge dev
Konstantinov-Innokentii 8dd39f9
Keep TwilioLogRecord for backward compalibility
Konstantinov-Innokentii 26ebc43
Count oss call in limits
Konstantinov-Innokentii 3b8479e
Count oss call in limits
Konstantinov-Innokentii 381aa54
Rename OnCallPhoneCall/SMS to PhoneCall/SMSRecord
Konstantinov-Innokentii 4d79515
Rewrite twilio phone call tests
Konstantinov-Innokentii bb5b505
Fix existing tests
Konstantinov-Innokentii d3ad2ea
Tests for PhoneBackend
Konstantinov-Innokentii b6cbd7d
Inherit TwilioSMS from ProviderSMS
Konstantinov-Innokentii ae09bbe
Test PhoneBackend.relay_oss_sms/call
Konstantinov-Innokentii bfa71ce
Replace doube quotes in PhoneCallTemplates
Konstantinov-Innokentii 7c8df3d
Tests for phone verification
Konstantinov-Innokentii bf3ec04
Tests for TwilioPhoneProvider
Konstantinov-Innokentii db33b14
automock apply_async for all tests
Konstantinov-Innokentii 59ec9a9
Merge branch 'dev' into phone_notificator
Konstantinov-Innokentii 1be1305
Add PhoneProvider.Config
Konstantinov-Innokentii 6f017da
Merge branch 'dev' into phone_notificator
Konstantinov-Innokentii 67929a3
Fix TwilioProvider config
Konstantinov-Innokentii 128c549
Rename provider config to flags
Konstantinov-Innokentii ea0a414
Fixes
Konstantinov-Innokentii f589b53
Comment iteration
Konstantinov-Innokentii 6147dfd
Enable cloud calls only in OSS
Konstantinov-Innokentii 81c2490
Comments polishing
Konstantinov-Innokentii 2eca39e
Merge branch 'dev' into phone_notificator
Konstantinov-Innokentii a513a0e
verification with call and send test sms button have been added to Us…
Ukochka 163aeb3
Handle ProviderNotSupports in verification API
Konstantinov-Innokentii a38f4a8
Fixes
Konstantinov-Innokentii 4f16a9b
Merge branch 'dev' into phone_notificator
Konstantinov-Innokentii 7f0e6d4
Comment out simple phone provider
Konstantinov-Innokentii b9a6402
Merge remote-tracking branch 'origin/phone_notificator' into phone_no…
Konstantinov-Innokentii 2ea310b
Ignore migration linter
Konstantinov-Innokentii 24d9eb0
Fix tests
Konstantinov-Innokentii 3298392
Update CHANGELOG.md
Konstantinov-Innokentii 7acb39c
Fix tests
Konstantinov-Innokentii 3987336
Fix tests
Konstantinov-Innokentii 9b71018
Fix tests
Konstantinov-Innokentii e65a3c3
Fix MockPhoneProvider
Konstantinov-Innokentii 0585099
Make migrations backward compatible
Konstantinov-Innokentii 7bebc85
Merge branch 'dev' into phone_notificator
Konstantinov-Innokentii 2e336f9
Fix tests
Konstantinov-Innokentii 0a227d4
Merge remote-tracking branch 'origin/phone_notificator' into phone_no…
Konstantinov-Innokentii File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ class ActionSource: | |
( | ||
SLACK, | ||
WEB, | ||
TWILIO, | ||
PHONE, | ||
TELEGRAM, | ||
) = range(4) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that expected that we don't escape
< > &
anymore?https://github.com/grafana/oncall/pull/1713/files#diff-007b962c05ebca7bac34170b3d6fa519225c2bc6d652371dfc27ae018f942b73L193-L195
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this escape was Twilio Related, so it's moved to TwilioPhoneProvider https://github.com/grafana/oncall/pull/1713/files#diff-764f1941b04b97b1517990791c24bc6446e623f0326b95c44060dd4ec42afd75R26