You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of multiple PRs addressing sonar quality gate issues. Sonar Cloud flags optional arguments without defaults. This adds defaults of None to truly optional arguments. This PR also addresses other small issues that do not fit neatly into other categories.
Attached is a document describing the actions taken here.
The changes update optional message defaults and annotations, adjust PEM and credential validation logic, and simplify existing serializer conditions. Registry data gains an explicit string annotation.
Changes
Validation and message contract updates
Layer / File(s)
Summary
Optional message field contracts src/aap_eda/wsapi/messages.py
ActionMessage and VaultPassword.label optional fields now default to None; AnsibleEventMessage.run_at is typed as Optional[str].
Utility parsing and validation behavior src/aap_eda/core/utils/awx.py, src/aap_eda/core/utils/credentials.py
PEM remainder matching is greedy, non-validation hostname exceptions are explicitly re-raised, and default choice handling requires a list.
API condition and type annotations src/aap_eda/api/serializers/project.py, src/aap_eda/api/serializers/user.py, src/aap_eda/conf/registry.py
Proxy and superuser conditions are consolidated, and RegistryData.category_slug is explicitly annotated as a string.
Comment @coderabbitai help to get the list of available commands.
jcraiglo1
changed the title
fix: sonar issues: Add defaults to optional args
fix: sonar issues: Add defaults to optional args and small general fixes
Jul 16, 2026
❌ Patch coverage is 88.88889% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.76%. Comparing base (51086aa) to head (a0a88bb).
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://redhat.atlassian.net/browse/AAP-77394
One of multiple PRs addressing sonar quality gate issues. Sonar Cloud flags optional arguments without defaults. This adds defaults of None to truly optional arguments. This PR also addresses other small issues that do not fit neatly into other categories.
Attached is a document describing the actions taken here.
sonarcloud-remediation-report.md
Summary by CodeRabbit
Bug Fixes
Compatibility