-
Notifications
You must be signed in to change notification settings - Fork 3
Validate add-on ID format #44
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
Conversation
WalkthroughThe changes introduce stricter validation for the Changes
Sequence Diagram(s)sequenceDiagram
participant Test as Test Method
participant Validate as validate.checkAddonId
participant Manifest as Manifest Data
Test->>Validate: Call checkAddonId(manifest, path, submission_data)
Validate->>Manifest: Retrieve addonId from submission_data
Validate->>Validate: Check addonId format (regex)
alt Format invalid
Validate-->>Test: Yield validation error
else Format valid
Validate-->>Test: Continue (no error)
end
Poem
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
_tests/test_validate.py
(1 hunks)_validate/validate.py
(1 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
_tests/test_validate.py (1)
_validate/validate.py (1)
checkAddonId
(164-189)
🪛 GitHub Actions: Test code
_tests/test_validate.py
[error] 310-310: Unit test failure in test_invalidAddonIdFormat_invalidStartChar: AssertionError due to mismatch in expected vs actual 'addonId' field format in submission data.
[error] 293-293: Unit test failure in test_invalidAddonIdFormat_spaces: AssertionError due to mismatch in expected vs actual 'addonId' field format in submission data.
add-ons have been submitted to the store with invalid formats for add-on IDs such as containing spaces
Summary by CodeRabbit
New Features
Tests