Commit 03189bc
authored
fix: fix conflict of rewriter and required fields (#1338)
<!--
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
* **Bug Fixes**
* Improved error handling by gracefully skipping missing nodes instead
of crashing during query planning.
* **New Features**
* Enhanced federated schema query planning with improved dependency
tracking across subgraphs.
* Refined field resolution and selection handling for more accurate
query execution in complex federation scenarios.
* **Improvements**
* Better error diagnostics with enhanced context in planning output.
<!-- 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 af46be6 commit 03189bc
File tree
14 files changed
+983
-152
lines changed- v2/pkg
- astprinter
- engine
- datasource/graphql_datasource
- plan
14 files changed
+983
-152
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
272 | | - | |
273 | | - | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
274 | 283 | | |
275 | 284 | | |
276 | 285 | | |
| |||
319 | 328 | | |
320 | 329 | | |
321 | 330 | | |
| 331 | + | |
| 332 | + | |
322 | 333 | | |
323 | | - | |
324 | | - | |
| 334 | + | |
325 | 335 | | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
330 | 348 | | |
331 | 349 | | |
332 | 350 | | |
| |||
342 | 360 | | |
343 | 361 | | |
344 | 362 | | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | 363 | | |
355 | 364 | | |
356 | 365 | | |
| |||
362 | 371 | | |
363 | 372 | | |
364 | 373 | | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
365 | 391 | | |
366 | 392 | | |
367 | 393 | | |
| |||
399 | 425 | | |
400 | 426 | | |
401 | 427 | | |
402 | | - | |
403 | | - | |
404 | | - | |
405 | | - | |
406 | | - | |
407 | | - | |
408 | 428 | | |
409 | 429 | | |
410 | 430 | | |
| |||
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1372 | 1372 | | |
1373 | 1373 | | |
1374 | 1374 | | |
1375 | | - | |
| 1375 | + | |
1376 | 1376 | | |
1377 | 1377 | | |
1378 | 1378 | | |
| |||
1407 | 1407 | | |
1408 | 1408 | | |
1409 | 1409 | | |
1410 | | - | |
| 1410 | + | |
1411 | 1411 | | |
1412 | 1412 | | |
1413 | 1413 | | |
| |||
1446 | 1446 | | |
1447 | 1447 | | |
1448 | 1448 | | |
1449 | | - | |
| 1449 | + | |
1450 | 1450 | | |
1451 | 1451 | | |
1452 | 1452 | | |
| |||
1457 | 1457 | | |
1458 | 1458 | | |
1459 | 1459 | | |
1460 | | - | |
| 1460 | + | |
1461 | 1461 | | |
1462 | 1462 | | |
1463 | 1463 | | |
| |||
1468 | 1468 | | |
1469 | 1469 | | |
1470 | 1470 | | |
1471 | | - | |
| 1471 | + | |
1472 | 1472 | | |
1473 | 1473 | | |
1474 | 1474 | | |
| |||
1478 | 1478 | | |
1479 | 1479 | | |
1480 | 1480 | | |
1481 | | - | |
| 1481 | + | |
1482 | 1482 | | |
1483 | 1483 | | |
1484 | 1484 | | |
| |||
1493 | 1493 | | |
1494 | 1494 | | |
1495 | 1495 | | |
1496 | | - | |
| 1496 | + | |
1497 | 1497 | | |
1498 | 1498 | | |
1499 | 1499 | | |
| |||
Lines changed: 28 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4587 | 4587 | | |
4588 | 4588 | | |
4589 | 4589 | | |
4590 | | - | |
| 4590 | + | |
4591 | 4591 | | |
4592 | 4592 | | |
4593 | 4593 | | |
4594 | 4594 | | |
4595 | 4595 | | |
4596 | 4596 | | |
4597 | 4597 | | |
4598 | | - | |
4599 | | - | |
| 4598 | + | |
| 4599 | + | |
| 4600 | + | |
4600 | 4601 | | |
4601 | 4602 | | |
4602 | 4603 | | |
| |||
4609 | 4610 | | |
4610 | 4611 | | |
4611 | 4612 | | |
4612 | | - | |
4613 | | - | |
| 4613 | + | |
| 4614 | + | |
| 4615 | + | |
4614 | 4616 | | |
4615 | 4617 | | |
4616 | 4618 | | |
| |||
4623 | 4625 | | |
4624 | 4626 | | |
4625 | 4627 | | |
4626 | | - | |
4627 | | - | |
| 4628 | + | |
| 4629 | + | |
| 4630 | + | |
4628 | 4631 | | |
4629 | 4632 | | |
4630 | 4633 | | |
| |||
4652 | 4655 | | |
4653 | 4656 | | |
4654 | 4657 | | |
4655 | | - | |
| 4658 | + | |
4656 | 4659 | | |
4657 | 4660 | | |
4658 | 4661 | | |
4659 | 4662 | | |
4660 | 4663 | | |
4661 | 4664 | | |
4662 | 4665 | | |
4663 | | - | |
4664 | | - | |
4665 | | - | |
| 4666 | + | |
| 4667 | + | |
4666 | 4668 | | |
4667 | 4669 | | |
4668 | 4670 | | |
| |||
4675 | 4677 | | |
4676 | 4678 | | |
4677 | 4679 | | |
4678 | | - | |
4679 | | - | |
4680 | | - | |
| 4680 | + | |
| 4681 | + | |
4681 | 4682 | | |
4682 | 4683 | | |
4683 | 4684 | | |
| |||
4690 | 4691 | | |
4691 | 4692 | | |
4692 | 4693 | | |
4693 | | - | |
4694 | | - | |
4695 | | - | |
| 4694 | + | |
| 4695 | + | |
4696 | 4696 | | |
4697 | 4697 | | |
4698 | 4698 | | |
| |||
4718 | 4718 | | |
4719 | 4719 | | |
4720 | 4720 | | |
4721 | | - | |
| 4721 | + | |
4722 | 4722 | | |
4723 | 4723 | | |
4724 | 4724 | | |
| |||
4755 | 4755 | | |
4756 | 4756 | | |
4757 | 4757 | | |
4758 | | - | |
| 4758 | + | |
4759 | 4759 | | |
4760 | 4760 | | |
4761 | 4761 | | |
| |||
4770 | 4770 | | |
4771 | 4771 | | |
4772 | 4772 | | |
4773 | | - | |
| 4773 | + | |
4774 | 4774 | | |
4775 | 4775 | | |
4776 | 4776 | | |
4777 | 4777 | | |
4778 | 4778 | | |
4779 | 4779 | | |
4780 | | - | |
| 4780 | + | |
4781 | 4781 | | |
4782 | 4782 | | |
4783 | 4783 | | |
4784 | 4784 | | |
4785 | 4785 | | |
4786 | 4786 | | |
4787 | | - | |
| 4787 | + | |
4788 | 4788 | | |
4789 | 4789 | | |
4790 | 4790 | | |
4791 | 4791 | | |
4792 | 4792 | | |
4793 | 4793 | | |
4794 | 4794 | | |
4795 | | - | |
| 4795 | + | |
4796 | 4796 | | |
4797 | 4797 | | |
4798 | 4798 | | |
4799 | 4799 | | |
4800 | 4800 | | |
4801 | 4801 | | |
4802 | | - | |
| 4802 | + | |
4803 | 4803 | | |
4804 | 4804 | | |
4805 | 4805 | | |
4806 | 4806 | | |
4807 | 4807 | | |
4808 | 4808 | | |
4809 | | - | |
| 4809 | + | |
4810 | 4810 | | |
4811 | 4811 | | |
4812 | 4812 | | |
4813 | 4813 | | |
4814 | 4814 | | |
4815 | 4815 | | |
4816 | 4816 | | |
4817 | | - | |
| 4817 | + | |
4818 | 4818 | | |
4819 | 4819 | | |
4820 | 4820 | | |
4821 | 4821 | | |
4822 | 4822 | | |
4823 | 4823 | | |
4824 | | - | |
| 4824 | + | |
4825 | 4825 | | |
4826 | 4826 | | |
4827 | 4827 | | |
4828 | 4828 | | |
4829 | 4829 | | |
4830 | 4830 | | |
4831 | | - | |
| 4831 | + | |
4832 | 4832 | | |
4833 | 4833 | | |
4834 | 4834 | | |
| |||
0 commit comments