Skip to content

Workspaces#150

Merged
tomasMizera merged 12 commits intomasterfrom
workspaces
Jan 26, 2023
Merged

Workspaces#150
tomasMizera merged 12 commits intomasterfrom
workspaces

Conversation

@uclaros
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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