-
-
Notifications
You must be signed in to change notification settings - Fork 56
refactor: allow node mapping in variadic functions to have different patterns, thus opening the path to a combination of node types (compared to the previous single type support) #349
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
…patterns, thus opening the path to a combination of node types (compared to the previous single type support)
WalkthroughThe changes update multiple Doctrine ORM query AST function classes by replacing the static property Changes
Sequence Diagram(s)sequenceDiagram
participant Caller as Test/Client
participant VF as BaseVariadicFunction
participant Parser as NodeParser
Caller->>VF: feedParserWithNodes(nodes)
VF->>VF: getNodeMappingPattern()
loop For each mapping pattern
VF->>Parser: feedNode(pattern)
alt Node accepted
Parser-->>VF: node added
else Exception raised
Parser-->>VF: catch exception
end
end
VF-->>Caller: return updated nodes
Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (21)
🧰 Additional context used📓 Path-based instructions (1)`tests/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/**/*.php`: Use the PostgreSQL official documentation to verify that tests include comprehensive use cases and example SQL que...
🧬 Code Graph Analysis (15)src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/DateSubtract.php (16)
src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/JsonBuildObject.php (13)
src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/JsonbPathQuery.php (16)
src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/Arr.php (15)
src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/JsonbBuildObject.php (6)
src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/JsonbPathQueryFirst.php (11)
src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/JsonbSet.php (14)
src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ToTsquery.php (15)
src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/Unaccent.php (13)
src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/ToTsvector.php (16)
src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/JsonbPathQueryArray.php (16)
tests/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/BaseComparisonFunctionTestCase.php (1)
src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/Row.php (16)
src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/JsonbPathExists.php (4)
src/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/BaseVariadicFunction.php (16)
⏰ Context from checks skipped due to timeout of 90000ms (5)
🔇 Additional comments (23)
✨ 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:
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
|
…patterns, thus opening the path to a combination of node types (compared to the previous single type support) (martin-georgiev#349)
Summary by CodeRabbit
Refactor / New Features
Tests