Skip to content

Commit

Permalink
Merge pull request #1631 from ResearchHub/update-staging-backend-urls
Browse files Browse the repository at this point in the history
Update staging backend URLs
  • Loading branch information
gzurowski committed Jun 13, 2024
2 parents 1c728eb + 3daafb1 commit facf669
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/citation/tests/test_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def test_url_search(self):
self.client.force_authenticate(self.authenticated_user)

response = self.client.get(
"/api/citation_entry/url_search/?url=https://staging-backend.researchhub.com/api/paper/1001/",
"/api/citation_entry/url_search/?url=https://backend.staging.researchhub.com/api/paper/1001/",
)

self.assertEqual(response.status_code, 200)
Expand Down
2 changes: 1 addition & 1 deletion src/mailing_list/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def send_hub_digest(frequency):

request_path = "/api/researchhub_unified_document/get_unified_documents/"
if STAGING:
http_host = "staging-backend.researchhub.com"
http_host = "backend.staging.researchhub.com"
protocol = "https"
elif PRODUCTION:
http_host = "backend.researchhub.com"
Expand Down
4 changes: 2 additions & 2 deletions src/researchhub/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,10 +398,10 @@ def silky_capture(request):
)
if STAGING:
GOOGLE_REDIRECT_URL = (
"https://staging-backend.researchhub.com/auth/google/login/callback/"
"https://backend.staging.researchhub.com/auth/google/login/callback/"
)
GOOGLE_YOLO_REDIRECT_URL = (
"https://staging-backend.researchhub.com/auth/google/yolo/callback/"
"https://backend.staging.researchhub.com/auth/google/yolo/callback/"
)


Expand Down
2 changes: 1 addition & 1 deletion src/researchhub_document/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def preload_trending_documents(

request_path = "/api/researchhub_unified_document/get_unified_documents/"
if STAGING:
http_host = "staging-backend.researchhub.com"
http_host = "backend.staging.researchhub.com"
protocol = "https"
elif PRODUCTION:
http_host = "backend.researchhub.com"
Expand Down
2 changes: 1 addition & 1 deletion src/user/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def preload_latest_activity(hub_ids, ordering):
hub_ids_str = hub_ids
request_path = "/api/user/following_latest_activity/"
if STAGING:
http_host = "staging-backend.researchhub.com"
http_host = "backend.staging.researchhub.com"
protocol = "https"
elif PRODUCTION:
http_host = "backend.researchhub.com"
Expand Down

0 comments on commit facf669

Please sign in to comment.