diff --git a/renku/ui/service/cache/projects.py b/renku/ui/service/cache/projects.py index e95d2bce88..2cb06085bf 100644 --- a/renku/ui/service/cache/projects.py +++ b/renku/ui/service/cache/projects.py @@ -16,7 +16,7 @@ """Renku service project cache management.""" from typing import cast -from marshmallow import EXCLUDE +from marshmallow import RAISE from renku.ui.service.cache.base import BaseCache from renku.ui.service.cache.models.project import Project @@ -34,7 +34,7 @@ def make_project(self, user, project_data, persist=True) -> Project: """Store user project metadata.""" project_data.update({"user_id": user.user_id}) - project_obj: Project = cast(Project, self.project_schema.load(project_data, unknown=EXCLUDE)) + project_obj: Project = cast(Project, self.project_schema.load(project_data, unknown=RAISE)) if persist: project_obj.save() diff --git a/renku/ui/service/controllers/templates_create_project.py b/renku/ui/service/controllers/templates_create_project.py index 0b988f47d1..74048896f8 100644 --- a/renku/ui/service/controllers/templates_create_project.py +++ b/renku/ui/service/controllers/templates_create_project.py @@ -98,12 +98,8 @@ def setup_new_project(self): "name": self.ctx["project_name"], "slug": self.ctx["project_name_stripped"], "description": self.ctx["project_description"], - "fullname": self.ctx["fullname"], - "email": self.ctx["email"], "owner": self.ctx["project_namespace"], - "token": self.ctx["token"], "initialized": True, - "image": self.ctx["image"], } project = self.cache.make_project(self.user, new_project_data) diff --git a/renku/ui/service/gateways/repository_cache.py b/renku/ui/service/gateways/repository_cache.py index 158d1d9f98..a163f81a39 100644 --- a/renku/ui/service/gateways/repository_cache.py +++ b/renku/ui/service/gateways/repository_cache.py @@ -142,7 +142,7 @@ def _clone_project( "owner": parsed_git_url.owner, "name": parsed_git_url.name, "slug": normalize_to_ascii(parsed_git_url.name), - "depth": PROJECT_CLONE_DEPTH_DEFAULT if shallow else None, + "clone_depth": PROJECT_CLONE_DEPTH_DEFAULT if shallow else None, "branch": branch, "git_url": git_url, "user_id": user.user_id,