Skip to content

Commit 06c49ad

Browse files
committed
feat: add cloud storage via rclone
squashme: use the amalthea session cache
1 parent e364cc9 commit 06c49ad

4 files changed

Lines changed: 17 additions & 14 deletions

File tree

components/renku_data_services/notebooks/api.spec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,7 @@ components:
439439
- registered
440440
type: object
441441
ErrorResponse:
442+
type: object
442443
properties:
443444
error:
444445
type: object

components/renku_data_services/notebooks/apispec.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,16 @@ class DefaultCullingThresholds(BaseAPISpec):
3434
registered: CullingThreshold
3535

3636

37-
class ErrorResponseNested(BaseAPISpec):
38-
code: int
39-
detail: Optional[str] = None
40-
message: str
37+
class Error(BaseAPISpec):
38+
code: int = Field(..., example=1404, gt=0)
39+
detail: Optional[str] = Field(
40+
None, example="A more detailed optional message showing what the problem was"
41+
)
42+
message: str = Field(..., example="Something went wrong - please try again later")
43+
44+
45+
class ErrorResponse(BaseAPISpec):
46+
error: Error
4147

4248

4349
class Generated(BaseAPISpec):
@@ -293,10 +299,6 @@ class SessionsImagesGetParametersQuery(BaseAPISpec):
293299
image_url: str
294300

295301

296-
class ErrorResponse(BaseAPISpec):
297-
error: ErrorResponseNested
298-
299-
300302
class LaunchNotebookRequest(BaseAPISpec):
301303
project_id: str
302304
launcher_id: str

poetry.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

projects/renku_data_service/poetry.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)