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

Switching workspace doesn't invalidate context #4030

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jobartim44
Copy link
Contributor

As we change workspace we should not conserve the environment that is related to the old workspace.

Closes #3864

Description

When switching workspace, we go batck to "NO_ENV_SELECTED" in the local storage

@nivedin
Copy link
Member

nivedin commented May 15, 2024

While switching from one workspace to another, it's already being invalidated. However, when switching from the Personal Workspace to another workspace, the selection is kept as it is, since this is the intended flow. Some users use their personal environments in Workspaces.

@jobartim44
Copy link
Contributor Author

When switching from a team workspace to another team workspace, in the local storage (selectedEnvIndex), we still have the reference to the previously selected environment, it's not invalidated.

I have made a modification to invalidate the environment only if it not a personal environment.

nivedin
nivedin previously approved these changes May 15, 2024
Copy link
Member

@nivedin nivedin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, please rebase to the latest main branch.

@jobartim44 jobartim44 reopened this May 15, 2024
@jobartim44
Copy link
Contributor Author

The rebase is done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bug]: Switching context doesn't invalidate environment variables and requests
2 participants