Skip to content

Commit

Permalink
[Core-550] Change packaged-analytics URLS to app.descarteslabs.com UR…
Browse files Browse the repository at this point in the history
…Ls (#12710)

GitOrigin-RevId: ff637befbe31d454416c87605537da9fcbca089c
  • Loading branch information
stephencpope authored and Descartes Labs Build committed Oct 21, 2024
1 parent 6b338cb commit cbf291b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
12 changes: 6 additions & 6 deletions descarteslabs/config/settings.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ default_domain = ""
default_domain = "@format production.aws.{this.DOMAIN}"
platform_url = "@format https://platform.{this.DEFAULT_DOMAIN}"

app_url = "@format https://packaged-analytics.production.aws.{this.DOMAIN}"
app_url = "@format https://app.{this.DOMAIN}"
catalog_v2_url = "@format {this.PLATFORM_URL}/metadata/v1/catalog/v2"
compute_url = "@format {this.PLATFORM_URL}/compute/v1"
iam_url = "@format https://iam.{this.DEFAULT_DOMAIN}"
Expand All @@ -23,7 +23,7 @@ yaas_url = "@format {this.PLATFORM_URL}/yaas/v1"
default_domain = "@format staging.aws.{this.DOMAIN}"
platform_url = "@format https://platform.{this.DEFAULT_DOMAIN}"

app_url = "@format https://packaged-analytics.production.aws.{this.DOMAIN}"
app_url = "@format https://app.{this.DOMAIN}"
catalog_v2_url = "@format {this.PLATFORM_URL}/metadata/v1/catalog/v2"
compute_url = "@format {this.PLATFORM_URL}/compute/v1"
iam_url = "@format https://iam.{this.DEFAULT_DOMAIN}"
Expand All @@ -38,7 +38,7 @@ yaas_url = "@format {this.PLATFORM_URL}/yaas/v1"
default_domain = "@format dev.aws.{this.DOMAIN}"
platform_url = "@format https://platform.{this.DEFAULT_DOMAIN}"

app_url = "@format https://packaged-analytics.production.aws.{this.DOMAIN}"
app_url = "@format https://app.{this.DOMAIN}"
catalog_v2_url = "@format {this.PLATFORM_URL}/metadata/v1/catalog/v2"
compute_url = "@format {this.PLATFORM_URL}/compute/v1"
iam_url = "@format https://iam.{this.DEFAULT_DOMAIN}"
Expand All @@ -53,7 +53,7 @@ yaas_url = "@format {this.PLATFORM_URL}/yaas/v1"
default_domain = "@format freemium.aws.{this.DOMAIN}"
platform_url = "@format https://platform.{this.DEFAULT_DOMAIN}"

app_url = "@format https://packaged-analytics.production.aws.{this.DOMAIN}"
app_url = "@format https://app.{this.DOMAIN}"
catalog_v2_url = "@format {this.PLATFORM_URL}/metadata/v1/catalog/v2"
iam_url = "@format https://iam.{this.DEFAULT_DOMAIN}"
metadata_url = "@format {this.PLATFORM_URL}/metadata/v1"
Expand All @@ -66,7 +66,7 @@ default_domain = "@format dev.aws.{this.DOMAIN}"
platform_url = "@format https://platform.{this.DEFAULT_DOMAIN}"
testing = true

app_url = "@format https://packaged-analytics.production.aws.{this.DOMAIN}"
app_url = "@format https://app.{this.DOMAIN}"
catalog_v2_url = "@format {this.PLATFORM_URL}/metadata/v1/catalog/v2"
compute_url = "@format {this.PLATFORM_URL}/compute/v1"
iam_url = "@format https://iam.{this.DEFAULT_DOMAIN}"
Expand All @@ -83,7 +83,7 @@ default_domain = "dev.localhost"
platform_url = "@format https://platform.dev.aws.descarteslabs.com"
testing = true

app_url = "@format https://packaged-analytics.production.aws.{this.DOMAIN}"
app_url = "@format https://app.{this.DOMAIN}"
catalog_v2_url = "@format {this.PLATFORM_URL}/metadata/v1/catalog/v2"
compute_url = "@format {this.PLATFORM_URL}/compute/v1"
iam_url = "@format https://{this.DEFAULT_DOMAIN}:8000"
Expand Down
10 changes: 5 additions & 5 deletions descarteslabs/config/tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def test_env(self):
class VerifyValues(unittest.TestCase):
configs = {
"aws-dev": {
"APP_URL": "https://packaged-analytics.production.aws.descarteslabs.com",
"APP_URL": "https://app.descarteslabs.com",
"CATALOG_V2_URL": "https://platform.dev.aws.descarteslabs.com/metadata/v1/catalog/v2",
"COMPUTE_URL": "https://platform.dev.aws.descarteslabs.com/compute/v1",
"IAM_URL": "https://iam.dev.aws.descarteslabs.com",
Expand All @@ -149,7 +149,7 @@ class VerifyValues(unittest.TestCase):
"YAAS_URL": "https://platform.dev.aws.descarteslabs.com/yaas/v1",
},
"aws-freemium": {
"APP_URL": "https://packaged-analytics.production.aws.descarteslabs.com",
"APP_URL": "https://app.descarteslabs.com",
"CATALOG_V2_URL": "https://platform.freemium.aws.descarteslabs.com/metadata/v1/catalog/v2",
"IAM_URL": "https://iam.freemium.aws.descarteslabs.com",
"LOG_LEVEL": "WARNING",
Expand All @@ -160,7 +160,7 @@ class VerifyValues(unittest.TestCase):
"USERLIMIT_URL": "https://platform.freemium.aws.descarteslabs.com/userlimit/v1",
},
"aws-production": {
"APP_URL": "https://packaged-analytics.production.aws.descarteslabs.com",
"APP_URL": "https://app.descarteslabs.com",
"CATALOG_V2_URL": "https://platform.production.aws.descarteslabs.com/metadata/v1/catalog/v2",
"COMPUTE_URL": "https://platform.production.aws.descarteslabs.com/compute/v1",
"IAM_URL": "https://iam.production.aws.descarteslabs.com",
Expand All @@ -174,7 +174,7 @@ class VerifyValues(unittest.TestCase):
"YAAS_URL": "https://platform.production.aws.descarteslabs.com/yaas/v1",
},
"aws-staging": {
"APP_URL": "https://packaged-analytics.production.aws.descarteslabs.com",
"APP_URL": "https://app.descarteslabs.com",
"CATALOG_V2_URL": "https://platform.staging.aws.descarteslabs.com/metadata/v1/catalog/v2",
"COMPUTE_URL": "https://platform.staging.aws.descarteslabs.com/compute/v1",
"IAM_URL": "https://iam.staging.aws.descarteslabs.com",
Expand All @@ -188,7 +188,7 @@ class VerifyValues(unittest.TestCase):
"YAAS_URL": "https://platform.staging.aws.descarteslabs.com/yaas/v1",
},
"testing": {
"APP_URL": "https://packaged-analytics.production.aws.descarteslabs.com",
"APP_URL": "https://app.descarteslabs.com",
"CATALOG_V2_URL": "https://platform.dev.aws.descarteslabs.com/metadata/v1/catalog/v2",
"COMPUTE_URL": "https://platform.dev.aws.descarteslabs.com/compute/v1",
"IAM_URL": "https://iam.dev.aws.descarteslabs.com",
Expand Down
4 changes: 2 additions & 2 deletions descarteslabs/core/client/auth/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
)


LOGIN_URL = f"{get_auth_refresh_domain()}/refresh_token"
LOGIN_URL = f"{get_auth_refresh_domain()}/account/refresh-token"


# this is defined this way to support mocking in the tests
Expand All @@ -49,7 +49,7 @@ def cli():
@cli.command()
def login():
"""Log in to Descartes Labs"""
click.echo(f"Follow this link to login:\n\n {LOGIN_URL}\n")
click.echo(f"Follow this link to login and request a token:\n\n {LOGIN_URL}\n")

while True:
try:
Expand Down

0 comments on commit cbf291b

Please sign in to comment.