-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: improve error handling and code readability in API views
Overview - Enhanced error handling and logging across multiple API views. - Refactored code for better readability and maintainability. - Added new test cases to cover edge scenarios and improve test coverage. - Updated Docker configuration for development environment. Details - OllamaManager: Simplified error handling and added comments for clarity. - GPTAttackSuggestion: Improved error handling and refactored code for better readability. - FetchMostCommonVulnerability: Refactored query logic and improved error handling. - AddTarget: Added validation for domain names and improved error messages. - DeleteVulnerability: Added validation for input data and improved error handling. - ListTechnology: Refactored query logic for better readability. - get_ips_from_cidr_range: Improved error handling and logging. - Test cases: Added new test cases for various scenarios, including failure cases and edge cases. - Docker: Updated docker-compose.dev.yml to enable remote debugging and added a new port. - Miscellaneous: Various minor improvements and bug fixes across different files.
- Loading branch information
Showing
23 changed files
with
329 additions
and
248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.