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

fix(nx-cloud): use create-workspace-v1 endpoint if v2 returns with 404 #28015

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

lourw
Copy link
Contributor

@lourw lourw commented Sep 20, 2024

Current Behavior

By default we connect all workspaces to Nx Cloud via the V2 connect endpoint.

Expected Behavior

Certain users (on-prem or single tenant) may not have access to the V2 endpoint, and so we should fall back to V1 so as not to prevent new workspaces from being created.

Related Issue(s)

Fixes #

Copy link

vercel bot commented Sep 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Oct 4, 2024 4:55pm

@lourw lourw marked this pull request as ready for review September 20, 2024 18:47
@lourw lourw requested a review from a team as a code owner September 20, 2024 18:47
@lourw lourw force-pushed the lourw/use-v1-create-workspace-endpoint-on-404 branch 4 times, most recently from b474b37 to 52d571d Compare September 24, 2024 17:28
@lourw lourw force-pushed the lourw/use-v1-create-workspace-endpoint-on-404 branch from 52d571d to 6b12ac5 Compare October 3, 2024 17:54
@lourw lourw force-pushed the lourw/use-v1-create-workspace-endpoint-on-404 branch from 6b12ac5 to d2d5365 Compare October 4, 2024 16:52
@lourw lourw self-assigned this Oct 4, 2024
@FrozenPandaz FrozenPandaz merged commit acb19a6 into master Oct 4, 2024
6 checks passed
@FrozenPandaz FrozenPandaz deleted the lourw/use-v1-create-workspace-endpoint-on-404 branch October 4, 2024 18:16
FrozenPandaz pushed a commit that referenced this pull request Oct 4, 2024
#28015)

<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->

By default we connect all workspaces to Nx Cloud via the V2 connect
endpoint.

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

Certain users (on-prem or single tenant) may not have access to the V2
endpoint, and so we should fall back to V1 so as not to prevent new
workspaces from being created.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #

(cherry picked from commit acb19a6)
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants