Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Disable all the routes except of tasks and agents #439

Merged
merged 1 commit into from
Aug 3, 2024

Conversation

whiterabbit1983
Copy link
Contributor

@whiterabbit1983 whiterabbit1983 commented Aug 1, 2024

🚀 This description was created by Ellipsis for commit a1da3e6

Summary:

Disabled all routes except for tasks and agents, and updated the update_agent function to use next on the query result.

Key points:

  • Commented out include_router lines for sessions, users, and jobs in agents-api/agents_api/web.py to disable these routes.
  • Modified update_agent function in agents-api/agents_api/routers/agents/update_agent.py to use next on the result of update_agent_query to get the updated agent details.

Generated with ❤️ by ellipsis.dev

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested. Reviewed everything up to a1da3e6 in 44 seconds

More details
  • Looked at 50 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_g0yRknDArgncQZ0i


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

default_settings=request.default_settings,
metadata=request.metadata,
instructions=request.instructions,
_, updated_agent = next(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using next() and .iterrows() suggests that update_agent_query returns a DataFrame, which is unusual and potentially inefficient for a web API. Consider modifying update_agent_query to return a more suitable data structure, like a dictionary, directly applicable to the API's needs.

@whiterabbit1983 whiterabbit1983 merged commit 276f9ed into dev-tasks Aug 3, 2024
2 of 6 checks passed
@whiterabbit1983 whiterabbit1983 deleted the dev-tasks-disable-routes branch August 3, 2024 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant