Skip to content
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
10 changes: 5 additions & 5 deletions backend/routers/developer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import uuid

Check warning on line 1 in backend/routers/developer.py

View workflow job for this annotation

GitHub Actions / Lint & Format Check

Large changed file

backend/routers/developer.py is 2157 lines; consider splitting files over 800 lines.
from datetime import datetime, timezone, timedelta

from enum import Enum
Expand Down Expand Up @@ -894,7 +894,7 @@
operation_id="listActionItems",
)
def get_action_items(
uid: str = Depends(with_rate_limit(get_uid_with_action_items_read, "dev:action_items_read")),
uid: str = Depends(get_uid_with_action_items_read),
conversation_id: Optional[str] = None,
completed: Optional[bool] = None,
start_date: Optional[datetime] = None,
Expand Down Expand Up @@ -1305,7 +1305,7 @@


@router.get("/v1/dev/user/folders", response_model=List[DeveloperFolder], tags=["Folders"], operation_id="listFolders")
def get_user_folders(uid: str = Depends(with_rate_limit(get_uid_with_conversations_read, "dev:conversations_read"))):
def get_user_folders(uid: str = Depends(get_uid_with_conversations_read)):
"""
Get all folders for the authenticated user.

Expand Down Expand Up @@ -1610,7 +1610,7 @@
)


def _create_conversation_from_segments(

Check warning on line 1613 in backend/routers/developer.py

View workflow job for this annotation

GitHub Actions / Lint & Format Check

Long function

_create_conversation_from_segments is 164 lines; consider extracting focused helpers over 150 lines.
uid: str,
request: CreateConversationFromTranscriptRequest,
*,
Expand Down Expand Up @@ -1992,7 +1992,7 @@

@router.get("/v1/dev/user/goals", tags=["Goals"], response_model=List[GoalResponse], operation_id="listGoals")
def get_goals(
uid: str = Depends(with_rate_limit(get_uid_with_goals_read, "dev:goals_read")),
uid: str = Depends(get_uid_with_goals_read),
limit: int = 10,
include_inactive: bool = False,
):
Expand All @@ -2013,7 +2013,7 @@
@router.get("/v1/dev/user/goals/{goal_id}", tags=["Goals"], response_model=GoalResponse, operation_id="getGoal")
def get_goal(
goal_id: str,
uid: str = Depends(with_rate_limit(get_uid_with_goals_read, "dev:goals_read")),
uid: str = Depends(get_uid_with_goals_read),
):
"""
Get a single goal by ID.
Expand Down Expand Up @@ -2125,7 +2125,7 @@
def get_goal_history(
goal_id: str,
days: HistoryDays = 30,
uid: str = Depends(with_rate_limit(get_uid_with_goals_read, "dev:goals_read")),
uid: str = Depends(get_uid_with_goals_read),
) -> List[dict]:
"""
Get progress history for a goal.
Expand Down
32 changes: 0 additions & 32 deletions backend/tests/unit/test_dev_read_rate_limits.py

This file was deleted.

Loading