-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Webhooks: use PUBLIC_API_URL to generate the webhook URL (#10801)
* Webhooks: use PUBLIC_API_URL to generate the webhook URL When using the beta instance, the webhook URL generated points to the beta instance, but this shouldn't be used, since that domain will be removed when the beta is over. * Expose PUBLIC_API_URL in templates * Fix tests
- Loading branch information
Showing
6 changed files
with
23 additions
and
63 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,6 +67,7 @@ class TestNotification(Notification): | |
"GLOBAL_ANALYTICS_CODE": mock.ANY, | ||
"PRODUCTION_DOMAIN": "readthedocs.org", | ||
"PUBLIC_DOMAIN": mock.ANY, | ||
"PUBLIC_API_URL": mock.ANY, | ||
"SITE_ROOT": mock.ANY, | ||
"SUPPORT_EMAIL": "[email protected]", | ||
"TEMPLATE_ROOT": mock.ANY, | ||
|
@@ -232,6 +233,7 @@ def test_context_data(self): | |
"GLOBAL_ANALYTICS_CODE": mock.ANY, | ||
"PRODUCTION_DOMAIN": "readthedocs.org", | ||
"PUBLIC_DOMAIN": mock.ANY, | ||
"PUBLIC_API_URL": mock.ANY, | ||
"SITE_ROOT": mock.ANY, | ||
"SUPPORT_EMAIL": "[email protected]", | ||
"TEMPLATE_ROOT": mock.ANY, | ||
|