Repository: fractal-analytics-platform/fractal-client (language: python)

Issue:
Update dataset endpoint address
https://github.com/fractal-analytics-platform/fractal-server/pull/402 has a breaking change in the API (the address for the dataset get endpoint).

This will be released in fractal-server=1.0.0b10


Discussion / hints:

Fix patch:
diff --git a/fractal/cmd/_dataset.py b/fractal/cmd/_dataset.py
index 1f5c1c0bd..3f9eca582 100644
--- a/fractal/cmd/_dataset.py
+++ b/fractal/cmd/_dataset.py
@@ -100,7 +100,7 @@ async def dataset_show(
     client: AuthClient, *, project_id: int, dataset_id: int, **kwargs
 ) -> BaseInterface:
     res = await client.get(
-        f"{settings.BASE_URL}/dataset/{project_id}/{dataset_id}"
+        f"{settings.BASE_URL}/project/{project_id}/{dataset_id}"
     )
     from rich.console import Group
 
diff --git a/poetry.lock b/poetry.lock
index ed5c76f96..69feee21a 100644
--- a/poetry.lock
+++ b/poetry.lock
@@ -597,14 +597,14 @@ sqlmodel = "*"
 
 [[package]]
 name = "fractal-server"
-version = "1.0.0b9"
+version = "1.0.0b10"
 description = "Server component of the Fractal analytics platform"
 category = "dev"
 optional = false
 python-versions = ">=3.8,<4.0"
 files = [
-    {file = "fractal_server-1.0.0b9-py3-none-any.whl", hash = "sha256:28773ba3ab2dd1d6dcd626b6219f8df3b1b160e9348acaabe9a1d1dd9fb41e4c"},
-    {file = "fractal_server-1.0.0b9.tar.gz", hash = "sha256:238713625a73fa8de314f357c4bea3439522354ceaac29e114dd86bc466748ed"},
+    {file = "fractal_server-1.0.0b10-py3-none-any.whl", hash = "sha256:3d41a9805f1da81f90a6b57b09e8f07184e0bb5cf075d3cc48f58d84808671fa"},
+    {file = "fractal_server-1.0.0b10.tar.gz", hash = "sha256:afcd64753f4513cbe3804026485c23aaa8c1f1d38cfe139c7f936edb2ed6465f"},
 ]
 
 [package.dependencies]
@@ -1727,4 +1727,4 @@ testing = ["flake8 (<5)", "func-timeout", "jaraco.functools", "jaraco.itertools"
 [metadata]
 lock-version = "2.0"
 python-versions = "^3.8"
-content-hash = "e56e526a9d7183108414e5d3c6989e701996f901ba60b03890df7d8d60446665"
+content-hash = "c1fb17261f4ceac618f8d1d3af87e39f863de394e9cfb183ef00056b62d778ea"
diff --git a/pyproject.toml b/pyproject.toml
index 782eacdf8..28a05ca8a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -29,7 +29,7 @@ pytest = "^7.1.2"
 bumpver = "^2022.1118"
 pytest-asyncio = "^0.19.0"
 # fractal-server = "^1.0.0"
-fractal-server = ">=1.0.0b9"
+fractal-server = ">=1.0.0b10"
 coverage = {extras = ["toml"], version = "^6.5.0"}
 
 [tool.poetry.group.doc.dependencies]


Test patch:
diff --git a/tests/fixtures_testserver.py b/tests/fixtures_testserver.py
index 840282807..85728af01 100644
--- a/tests/fixtures_testserver.py
+++ b/tests/fixtures_testserver.py
@@ -153,7 +153,7 @@ async def _workflow_factory(**wf_args_override):
 
 @pytest.fixture
 async def job_factory(db):
-    from fractal_server.app.models.run import ApplyWorkflow
+    from fractal_server.app.models.job import ApplyWorkflow
 
     async def _job_factory(**job_args_override):
         job_args = dict(