Commit 1a7ed16
authored
fix: planner fixes for parent entity jumps and unique nodes selections (#1230)
fixes ENG-7397
fixes ENG-7355
fixes ENG-7228
<!--
Important: Before developing new features, please open an issue to
discuss your ideas with the maintainers. This ensures project alignment
and helps avoid unnecessary work for you.
Thank you for your contribution! Please provide a detailed description
below and ensure you've met all the requirements.
Squashed commit messages must follow the [Conventional
Commits](https://www.conventionalcommits.org/en/v1.0.0/) standard to
facilitate changelog generation.
Please ensure your PR title follows the Conventional Commits
specification, using the appropriate type (e.g., feat, fix, docs) and
scope.
Examples of good PR titles:
- 💥feat!: change implementation in an non-backward compatible way
- ✨feat(auth): add support for OAuth2 login
- 🐞fix(router): add support for custom metrics
- 📚docs(README): update installation instructions
- 🧹chore(deps): bump dependencies to latest versions
-->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added a new validation rule to detect and report empty selection sets
in dynamically generated GraphQL operations.
* **Bug Fixes**
* Improved internal logic for selecting parent and duplicate nodes in
data source planning, resulting in more accurate and streamlined node
selection.
* **Tests**
* Updated test descriptions to reflect changes in node selection
reasoning, ensuring test clarity and consistency.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
## Checklist
- [ ] I have discussed my proposed changes in an issue and have received
approval to proceed.
- [ ] I have followed the coding standards of the project.
- [ ] Tests or benchmarks have been added or updated.
<!--
Please add any additional information or context regarding your changes
here.
-->1 parent 2b96f7e commit 1a7ed16
File tree
4 files changed
+113
-78
lines changed- v2/pkg
- astvalidation
- engine
- datasource/graphql_datasource
- plan
4 files changed
+113
-78
lines changedLines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1684 | 1684 | | |
1685 | 1685 | | |
1686 | 1686 | | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
1687 | 1694 | | |
1688 | 1695 | | |
1689 | 1696 | | |
1690 | 1697 | | |
1691 | | - | |
| 1698 | + | |
1692 | 1699 | | |
1693 | 1700 | | |
1694 | 1701 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
| 200 | + | |
| 201 | + | |
204 | 202 | | |
205 | 203 | | |
206 | 204 | | |
| |||
218 | 216 | | |
219 | 217 | | |
220 | 218 | | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | 219 | | |
225 | 220 | | |
226 | 221 | | |
227 | 222 | | |
228 | 223 | | |
229 | 224 | | |
230 | 225 | | |
231 | | - | |
232 | | - | |
| 226 | + | |
233 | 227 | | |
234 | 228 | | |
235 | 229 | | |
236 | 230 | | |
237 | 231 | | |
238 | 232 | | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
| 233 | + | |
259 | 234 | | |
260 | 235 | | |
261 | 236 | | |
262 | 237 | | |
263 | 238 | | |
264 | | - | |
| 239 | + | |
265 | 240 | | |
266 | 241 | | |
267 | | - | |
| 242 | + | |
268 | 243 | | |
269 | 244 | | |
270 | 245 | | |
271 | 246 | | |
| 247 | + | |
| 248 | + | |
272 | 249 | | |
273 | 250 | | |
274 | 251 | | |
275 | 252 | | |
276 | 253 | | |
277 | 254 | | |
| 255 | + | |
278 | 256 | | |
279 | | - | |
280 | | - | |
| 257 | + | |
| 258 | + | |
281 | 259 | | |
282 | 260 | | |
283 | 261 | | |
284 | | - | |
285 | | - | |
| 262 | + | |
| 263 | + | |
286 | 264 | | |
287 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
288 | 276 | | |
289 | 277 | | |
290 | 278 | | |
| |||
529 | 517 | | |
530 | 518 | | |
531 | 519 | | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | | - | |
| 520 | + | |
560 | 521 | | |
561 | | - | |
| 522 | + | |
562 | 523 | | |
563 | 524 | | |
564 | 525 | | |
| |||
582 | 543 | | |
583 | 544 | | |
584 | 545 | | |
585 | | - | |
| 546 | + | |
586 | 547 | | |
587 | 548 | | |
588 | 549 | | |
| |||
605 | 566 | | |
606 | 567 | | |
607 | 568 | | |
608 | | - | |
| 569 | + | |
609 | 570 | | |
610 | 571 | | |
611 | 572 | | |
| |||
630 | 591 | | |
631 | 592 | | |
632 | 593 | | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
633 | 625 | | |
634 | 626 | | |
635 | 627 | | |
| |||
0 commit comments