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

feat: filters api #407

Merged
merged 2 commits into from
May 14, 2023
Merged

Conversation

matthisholleville
Copy link
Contributor

Closes #

📑 Description

This pull request includes two commits that address different aspects of the codebase:

  1. Fix: Stop execution after matching condition in RunAnalysis()
    This commit fixes an issue in the RunAnalysis() function where the execution continued even after matching a condition. With this fix, the execution now stops at the end of the corresponding if statement, improving control flow.
  2. Feat: Include filters parameter in AnalyzeRequest initialization
    This commit adds a new feature to the AnalyzeRequest initialization. It includes the filters parameter, allowing for more specific analysis by specifying filters during the analysis process.

✅ Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

ℹ Additional Information

grpcurl -plaintext -d '{"explain": false, "nocache": false, "filters": ["Ingress"], "namespace": "k8sgpt"}' localhost:8080 schema.v1.Server/Analyze

The commit fixes the issue where the RunAnalysis() function continues execution even after matching a condition. The fix ensures that the execution stops at the end of the corresponding if statement, improving the control flow and preventing unnecessary processing.

Signed-off-by: Matthis Holleville <matthish29@gmail.com>
The commit introduces a new feature where the filters parameter is included in the initialization of the AnalyzeRequest. This enhancement allows for more specific analysis by specifying filters during the analysis process.

Signed-off-by: Matthis Holleville <matthish29@gmail.com>
@matthisholleville matthisholleville requested review from a team as code owners May 14, 2023 07:43
@matthisholleville matthisholleville changed the title Feat/filters api feat: filters api May 14, 2023
@AlexsJones AlexsJones merged commit e5e613a into k8sgpt-ai:main May 14, 2023
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants