Skip to content

Commit

Permalink
Add org id and name
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-agenta committed Dec 6, 2024
1 parent 149403a commit d141f87
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion agenta-backend/agenta_backend/routers/projects_router.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,17 @@


class ProjectsResponse(BaseModel):
organization_id: Optional[UUID] = None
organization_name: Optional[str] = None
# is_default_organization: Optional[bool] = None
workspace_id: Optional[UUID] = None
workspace_name: Optional[str] = None
# is_default_workspace: Optional[bool] = None
project_id: UUID
project_name: str
# is_default_project: bool
user_role: Optional[str] = None
is_demo: Optional[bool] = False
is_demo: Optional[bool] = None


router = APIRouter()
Expand Down Expand Up @@ -65,6 +68,8 @@ async def get_projects(

projects = [
ProjectsResponse(
organization_id=project_membership.project.organization.id,
organization_name=project_membership.project.organization.name,
workspace_id=project_membership.project.workspace.id,
workspace_name=project_membership.project.workspace.name,
project_id=project_membership.project.id,
Expand Down

0 comments on commit d141f87

Please sign in to comment.