Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions src/dispatch/organization/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,22 +109,3 @@ def update_organization(
model=OrganizationUpdate,
)
return organization


# this isn't full supported yet
# @router.delete(
# "/{organization_id}",
# response_model=OrganizationRead,
# dependencies=[Depends(PermissionsDependency([OrganizationOwnerPermission]))],
# )
# def delete_organization(*, db_session: Session = Depends(get_db), organization_id: PrimaryKey):
# """Delete an organization."""
# organization = get(db_session=db_session, organization_id=organization_id)
# if not organization:
# raise HTTPException(
# status_code=status.HTTP_404_NOT_FOUND, detail=[{"msg": "An organization with this id does not exist."}]
# )
#
# delete(db_session=db_session, organization_id=organization_id)
# return organization
#
4 changes: 2 additions & 2 deletions src/dispatch/project/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ def create(*, db_session, project_in: ProjectCreate) -> Project:
"""Creates a project."""
from dispatch.organization import service as organization_service

organization = organization_service.get_by_name(
db_session=db_session, name=project_in.organization.name
organization = organization_service.get_by_slug(
db_session=db_session, slug=project_in.organization.name
)
project = Project(
**project_in.dict(exclude={"organization"}),
Expand Down