Skip to content
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

Add beta environment flag #2969

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions deeplake/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
HUB_REST_ENDPOINT,
HUB_REST_ENDPOINT_LOCAL,
HUB_REST_ENDPOINT_DEV,
HUB_REST_ENDPOINT_TESTING,
HUB_REST_ENDPOINT_BETA,
HUB_REST_ENDPOINT_STAGING,
DEFAULT_REQUEST_TIMEOUT,
GET_DATASET_CREDENTIALS_SUFFIX,
Expand Down Expand Up @@ -162,8 +162,8 @@
return HUB_REST_ENDPOINT_LOCAL
if deeplake.client.config.USE_DEV_ENVIRONMENT:
return HUB_REST_ENDPOINT_DEV
if deeplake.client.config.USE_TESTING_ENVIRONMENT:
return HUB_REST_ENDPOINT_TESTING
if deeplake.client.config.USE_BETA_ENVIRONMENT:
return HUB_REST_ENDPOINT_BETA

Check warning on line 166 in deeplake/client/client.py

View check run for this annotation

Codecov / codecov/patch

deeplake/client/client.py#L166

Added line #L166 was not covered by tests
if deeplake.client.config.USE_STAGING_ENVIRONMENT:
return HUB_REST_ENDPOINT_STAGING

Expand Down
4 changes: 2 additions & 2 deletions deeplake/client/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
HUB_REST_ENDPOINT = "https://app.activeloop.ai"
HUB_REST_ENDPOINT_STAGING = "https://app-staging.activeloop.dev"
HUB_REST_ENDPOINT_DEV = "https://app-dev.activeloop.dev"
HUB_REST_ENDPOINT_TESTING = "https://testing.activeloop.dev"
HUB_REST_ENDPOINT_BETA = "https://beta.activeloop.dev"
HUB_REST_ENDPOINT_LOCAL = "http://localhost:7777"
USE_LOCAL_HOST = False
USE_DEV_ENVIRONMENT = False
USE_TESTING_ENVIRONMENT = False
USE_BETA_ENVIRONMENT = False
USE_STAGING_ENVIRONMENT = False

GET_DATASET_CREDENTIALS_SUFFIX = "/api/org/{}/ds/{}/creds"
Expand Down
Loading