Conversation
WalkthroughThis update extends the redirect rule creation process to require explicit association with a parent resource, either a site or function. Code changes introduce new parameters for resource type and ID, update rule creation logic, and modify related SDK formatting and end-to-end tests to accommodate and verify these associations. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant ProxyModule
participant DBProject
participant DBPlatform
Client->>ProxyModule: createRedirectRule(domain, url, statusCode, resourceType, resourceId)
ProxyModule->>DBProject: Fetch resource (site/function) by resourceId
DBProject-->>ProxyModule: Return resource or not found
alt Resource found
ProxyModule->>DBPlatform: Create redirect rule with resource linkage
DBPlatform-->>ProxyModule: Rule created
ProxyModule-->>Client: Success response
else Resource not found
ProxyModule-->>Client: RULE_RESOURCE_NOT_FOUND error
end
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (4)
⏰ Context from checks skipped due to timeout of 90000ms (4)
🔇 Additional comments (10)
✨ 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
Documentation and Community
|
Security Scan Results for PRDocker Image Scan Results
Source Code Scan Results🎉 No vulnerabilities found! |
commit: |
✨ Benchmark results
⚡ Benchmark Comparison
|
What does this PR do?
Adds parent to redirect type rule. Doing this allow to query it by it then, so it can be shown properly in site's rules tab in Console
Test Plan
New tests
Related PRs and Issues
x
Checklist
Summary by CodeRabbit
New Features
Bug Fixes
Tests