Skip to content

Workspaces #150

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

Merged
merged 12 commits into from
Jan 26, 2023
Merged

Workspaces #150

merged 12 commits into from
Jan 26, 2023

Conversation

uclaros
Copy link
Contributor

@uclaros uclaros commented Oct 26, 2022

def global_namespace(self): will be redundant with the upcoming API changes as this info should be available by /workspaces endpoint and CE and EE versions will be treated the same.

@uclaros uclaros mentioned this pull request Oct 26, 2022
3 tasks
@uclaros uclaros linked an issue Nov 8, 2022 that may be closed by this pull request
mergin/client.py Outdated
Comment on lines 340 to 350
if not self._server_type:
try:
resp = self.get("/config")
config = json.load(resp)
if "user_workspaces_allowed" in config:
self._server_type = "ee"
if "global_namespace" in config:
self._server_type = "ce"
self._global_namespace = config["global_namespace"]
except ClientError as e:
self._server_type = "old"
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a note for the future: /config will return the type of the server explicitly without the need to guess it this way.

Copy link
Contributor

@tomasMizera tomasMizera left a comment

Choose a reason for hiding this comment

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

Looking good to me!

@tomasMizera tomasMizera added the frozen can not continue unless something else changes label Nov 21, 2022
@tomasMizera
Copy link
Contributor

We will merge this one once we are ready for workspaces! 🥳

@tomasMizera tomasMizera merged commit 0f45468 into master Jan 26, 2023
@tomasMizera tomasMizera deleted the workspaces branch January 26, 2023 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frozen can not continue unless something else changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate to new user info endpoint
2 participants