Skip to content

Commit

Permalink
Merge 078c135 into 77f480f
Browse files Browse the repository at this point in the history
  • Loading branch information
m-alisafaee committed Jan 11, 2024
2 parents 77f480f + 078c135 commit 52d64ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions renku/domain_model/dataset.py
Expand Up @@ -738,6 +738,7 @@ class DatasetDetailsJson(marshmallow.Schema):
slug = marshmallow.fields.String(required=True)
version = marshmallow.fields.String(allow_none=True)
created_at = marshmallow.fields.String(allow_none=True, attribute="date_created")
date_published = marshmallow.fields.String(allow_none=True)

name = marshmallow.fields.String()
creators = marshmallow.fields.List(marshmallow.fields.Nested(DatasetCreatorsJson))
Expand Down
3 changes: 3 additions & 0 deletions tests/service/views/test_dataset_views.py
Expand Up @@ -630,6 +630,7 @@ def test_list_datasets_view(svc_client_with_repo):
"annotations",
"storage",
"data_directory",
"date_published",
} == set(response.json["result"]["datasets"][0].keys())


Expand Down Expand Up @@ -678,6 +679,7 @@ def test_list_datasets_view_remote(svc_client_with_repo, it_remote_repo_url):
"identifier",
"images",
"created_at",
"date_published",
"slug",
"name",
"creators",
Expand Down Expand Up @@ -797,6 +799,7 @@ def test_create_and_list_datasets_view(svc_client_with_repo):
"annotations",
"storage",
"data_directory",
"date_published",
} == set(response.json["result"]["datasets"][0].keys())

assert payload["slug"] in [ds["slug"] for ds in response.json["result"]["datasets"]]
Expand Down

0 comments on commit 52d64ba

Please sign in to comment.