Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Commit d197647

Browse files
authored
Fixes an issue impacting the ability to create new projects (#2246)
1 parent 89c9cd5 commit d197647

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

src/dispatch/organization/views.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -109,22 +109,3 @@ def update_organization(
109109
model=OrganizationUpdate,
110110
)
111111
return organization
112-
113-
114-
# this isn't full supported yet
115-
# @router.delete(
116-
# "/{organization_id}",
117-
# response_model=OrganizationRead,
118-
# dependencies=[Depends(PermissionsDependency([OrganizationOwnerPermission]))],
119-
# )
120-
# def delete_organization(*, db_session: Session = Depends(get_db), organization_id: PrimaryKey):
121-
# """Delete an organization."""
122-
# organization = get(db_session=db_session, organization_id=organization_id)
123-
# if not organization:
124-
# raise HTTPException(
125-
# status_code=status.HTTP_404_NOT_FOUND, detail=[{"msg": "An organization with this id does not exist."}]
126-
# )
127-
#
128-
# delete(db_session=db_session, organization_id=organization_id)
129-
# return organization
130-
#

src/dispatch/project/service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ def create(*, db_session, project_in: ProjectCreate) -> Project:
7676
"""Creates a project."""
7777
from dispatch.organization import service as organization_service
7878

79-
organization = organization_service.get_by_name(
80-
db_session=db_session, name=project_in.organization.name
79+
organization = organization_service.get_by_slug(
80+
db_session=db_session, slug=project_in.organization.name
8181
)
8282
project = Project(
8383
**project_in.dict(exclude={"organization"}),

0 commit comments

Comments
 (0)