-
Notifications
You must be signed in to change notification settings - Fork 983
feat: add delete_project functionality and integrate projects_app in CLI #1511
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
base: dev
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Caution
Changes requested ❌
Reviewed everything up to 72588f8 in 1 minute and 31 seconds. Click for details.
- Reviewed
385
lines of code in8
files - Skipped
0
files when reviewing. - Skipped posting
2
draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src/agents-api/agents_api/queries/projects/delete_project.py:83
- Draft comment:
Missing newline at end of file. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%
<= threshold50%
This comment is purely informative and does not provide a specific code suggestion or ask for a specific test to be written. It does not align with the rules for good comments, as it does not address a potential issue or improvement in the code logic.
2. src/agents-api/tests/test_project_delete.py:47
- Draft comment:
Consider checking for a more specific exception (or its message) instead of using the generic Exception for better test precision. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 20% vs. threshold = 50% The code explicitly comments that exception types may vary based on the database layer, suggesting this generic catch is intentional. Making the exception more specific could make the tests brittle if the underlying database implementation changes. The current approach seems to be a deliberate design choice rather than an oversight. The comment does raise a valid testing best practice of being specific about exceptions. The current code might miss catching wrong exception types. The intentional flexibility in exception handling appears to be a conscious architectural decision to handle database layer variations, making specific exception checking potentially counterproductive. Delete the comment as the generic exception handling appears to be an intentional design choice documented in the code comments.
Workflow ID: wflow_Gh8Gbyo0gbxVp0Gk
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
please review - @Ahmad-mtos |
Thanks for working on this @abhinav-1305 . We'll review and get back shortly. cc/ @anasalatasi @anasalatasiuni @Ahmad-mtos |
PR Type
Enhancement
resolves: #1486
Description
Add delete project functionality with database query and API endpoint
Integrate projects management commands in CLI interface
Include comprehensive test coverage for project deletion scenarios
Implement safety checks preventing default project deletion
Changes diagram
Changes walkthrough 📝
7 files
Export delete_project function
Implement project deletion database query
Export delete_project router function
Add DELETE endpoint for projects
Export projects_app module
Register projects CLI subcommand
Implement project CLI commands
1 files
Add comprehensive project deletion tests