-
Notifications
You must be signed in to change notification settings - Fork 45
[Doppel] Refactor parameter names in DoppelVision actions for consistency #434
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
[Doppel] Refactor parameter names in DoppelVision actions for consistency #434
Conversation
Summary of ChangesHello @siddharths1-metron, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on enhancing the maintainability and clarity of the DoppelVision integration by standardizing parameter names within its various actions. The changes involve a straightforward refactoring of configuration parameter names, replacing underscore-separated names with space-separated ones. This ensures a more consistent naming convention across the integration, making the code easier to read and understand for future development and maintenance. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This pull request refactors parameter names for consistency, which is a good improvement. The changes correctly align the parameter names in the action scripts with the definition.yaml.
However, my review identified several critical issues and style guide violations across the modified files that should be addressed:
- Critical Security Vulnerability: In
Ping.py, the API key is logged in plain text, which is a severe security risk and violates the repository's style guide. - Bugs: The
Ping.pyaction incorrectly uses string values"true"and"false"for the result status, where booleans are expected. - Style Guide Violations:
- None of the
mainfunctions in the modified action files have type annotations or docstrings, which are mandatory. - Actions that produce JSON results are missing the required
_json_example.jsonfiles in aresources/directory. - The integration uses the synchronous
requestslibrary for network calls, while the style guide recommends asynchronous libraries likehttpxoraiohttpfor better performance in I/O-bound operations. - Unit test coverage appears minimal, while the style guide requires comprehensive tests for integrations in this part of the repository.
- None of the
- Inconsistency: Some parameter names in
GetAlert.pyandUpdateAlert.pystill usesnake_case, which is inconsistent with the goal of this PR.
I've added detailed comments in each file. Please address the critical security issue and the bug in Ping.py with the highest priority.
content/response_integrations/third_party/partner/doppel_vision/actions/Ping.py
Show resolved
Hide resolved
content/response_integrations/third_party/partner/doppel_vision/actions/Ping.py
Show resolved
Hide resolved
content/response_integrations/third_party/partner/doppel_vision/actions/CreateAbuseAlert.py
Show resolved
Hide resolved
content/response_integrations/third_party/partner/doppel_vision/actions/CreateAlert.py
Show resolved
Hide resolved
content/response_integrations/third_party/partner/doppel_vision/actions/GetAlert.py
Show resolved
Hide resolved
content/response_integrations/third_party/partner/doppel_vision/actions/GetAlerts.py
Show resolved
Hide resolved
content/response_integrations/third_party/partner/doppel_vision/actions/Ping.py
Show resolved
Hide resolved
content/response_integrations/third_party/partner/doppel_vision/actions/UpdateAlert.py
Show resolved
Hide resolved
|
❌ Marketplace Validation Failed Click to view the full reportValidation Report🧩 IntegrationsPre-Build Stagedoppel_vision
|
|
Hi @siddharths1-metron , i will review your pr.
|
|
Hello @AmitJ98 I have made the changes, Please take a look, thanks! |
Thank you, i am merging the pr. |
Refactor parameter names in DoppelVision actions for consistency with definiton.yaml
Description
What problem does this PR solve?
The Doppel integration is not able to fetch API key and other credentials due to mismatch in parameter names.
How does this PR solve the problem?
We have modified to parameter values to be consistent with definition.yaml file.
Checklist:
Please ensure you have completed the following items before submitting your PR.
This helps us review your contribution faster and more efficiently.
General Checks:
Open-Source Specific Checks:
For Google Team Members and Reviewers Only:
Screenshots (If Applicable)
If your changes involve UI or visual elements, please include screenshots or GIFs here.
Ensure any sensitive data is redacted or generalized.
Further Comments / Questions
Any additional comments, questions, or areas where you'd like specific feedback.