refactor: streamline GraphQL schema by removing deprecated fields and…#8915
refactor: streamline GraphQL schema by removing deprecated fields and…#8915mikeallisonJS merged 6 commits intomainfrom
Conversation
… updating input types - Removed `cardBlockCreate` and `cardBlockUpdate` mutations from `api-journeys` schema. - Updated `adminJourney` query to align with modern API structure. - Refactored `DateTimeFilter` input type for better clarity and usage. - Adjusted various GraphQL types to ensure consistency across schemas. - Cleaned up unused imports and types in resolver files to enhance maintainability.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
💤 Files with no reviewable changes (1)
✅ Files skipped from review due to trivial changes (1)
WalkthroughThis pull request restructures GraphQL Federation routing across multiple services by moving field implementations between the api-journeys and api-journeys-modern graphs. It relocates Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
View your CI Pipeline Execution ↗ for commit d302f74
☁️ Nx Cloud last updated this comment at |
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
|
The latest updates on your projects.
|
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
apis/api-journeys-modern/schema.graphql (1)
1348-1355:⚠️ Potential issue | 🟠 MajorRemove the stale
api-journeysoverrides that now point to non-existent fields.
apis/api-journeys/schema.graphqlno longer exposescardBlockUpdateoradminJourney, but the modern schema still marks those fields with@override(from: "api-journeys")at lines 1355 and 1737. These stale directives will break Apollo Federation composition and routing, since the override source fields no longer exist.Suggested SDL fix
cardBlockUpdate( id: ID! input: CardBlockUpdateInput! """drop this parameter after merging teams""" journeyId: ID - ): CardBlock! `@override`(from: "api-journeys") + ): CardBlock! @@ - adminJourney(id: ID!, idType: IdType = slug): Journey! `@override`(from: "api-journeys") + adminJourney(id: ID!, idType: IdType = slug): Journey!🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@apis/api-journeys-modern/schema.graphql` around lines 1348 - 1355, The schema contains stale `@override` directives referencing removed fields in the other service; remove the obsolete `@override`(from: "api-journeys") annotations from the CardBlock mutations (cardBlockUpdate) and the adminJourney field so the modern schema no longer points to non-existent sources — locate the occurrences of the `@override` directive on cardBlockUpdate and adminJourney in the SDL and delete those `@override`(from: "api-journeys") annotations, leaving the fields defined locally in the modern schema.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@apis/api-journeys-modern/schema.graphql`:
- Around line 1348-1355: The schema contains stale `@override` directives
referencing removed fields in the other service; remove the obsolete
`@override`(from: "api-journeys") annotations from the CardBlock mutations
(cardBlockUpdate) and the adminJourney field so the modern schema no longer
points to non-existent sources — locate the occurrences of the `@override`
directive on cardBlockUpdate and adminJourney in the SDL and delete those
`@override`(from: "api-journeys") annotations, leaving the fields defined locally
in the modern schema.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: ca05109d-dd45-4a0b-bc60-e4dfccf302a8
⛔ Files ignored due to path filters (52)
apis/api-journeys/src/__generated__/graphql.tsis excluded by!**/__generated__/**apis/api-journeys/src/app/__generated__/graphql.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/BlockActionDelete.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/BlockDelete.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/BlockDeleteForCoverImage.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/BlockOrderUpdate.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/CardCtaDelete.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/CardFormDelete.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/CardIntroDelete.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/CardPollDelete.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/CardQuoteDelete.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/CardVideoDelete.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/CardVideoRestore.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/CoverBlockDelete.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/CoverBlockRestore.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/DuplicatedBlock.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/GetStepBlocksWithPosition.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/JourneyAiTranslateCreateSubscription.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/JourneyImageBlockDelete.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/MenuBlockDelete.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/MultiselectWithButtonDelete.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/MultiselectWithButtonRestore.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/NewBlock.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/PosterImageBlockDelete.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/PosterImageBlockRestore.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/RadioOptionImageDelete.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/RadioOptionImageRestore.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/RestoredBlock.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/StepBlockCreateFromAction.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/StepBlockCreateFromSocialPreview.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/StepBlockDeleteFromAction.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/StepBlockDeleteFromActionWithoutAction.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/StepBlockDeleteFromSocialPreview.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/StepBlockDeleteFromStep.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/StepBlockRestoreFromAction.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/StepBlockRestoreFromSocialPreview.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/TestJourney.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/TextResponseWithButtonDelete.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/TranslatedJourney.tsis excluded by!**/__generated__/**apps/journeys-admin/__generated__/globalTypes.tsis excluded by!**/__generated__/**apps/journeys/__generated__/JourneyAiTranslateCreateSubscription.tsis excluded by!**/__generated__/**apps/journeys/__generated__/TranslatedJourney.tsis excluded by!**/__generated__/**apps/journeys/__generated__/globalTypes.tsis excluded by!**/__generated__/**apps/resources/__generated__/JourneyAiTranslateCreateSubscription.tsis excluded by!**/__generated__/**apps/resources/__generated__/TranslatedJourney.tsis excluded by!**/__generated__/**apps/resources/__generated__/globalTypes.tsis excluded by!**/__generated__/**apps/watch/__generated__/JourneyAiTranslateCreateSubscription.tsis excluded by!**/__generated__/**apps/watch/__generated__/TranslatedJourney.tsis excluded by!**/__generated__/**apps/watch/__generated__/globalTypes.tsis excluded by!**/__generated__/**libs/journeys/ui/__generated__/globalTypes.tsis excluded by!**/__generated__/**libs/journeys/ui/src/libs/useJourneyAiTranslateSubscription/__generated__/JourneyAiTranslateCreateSubscription.tsis excluded by!**/__generated__/**libs/journeys/ui/src/libs/useJourneyAiTranslateSubscription/__generated__/TranslatedJourney.tsis excluded by!**/__generated__/**
📒 Files selected for processing (16)
apis/api-gateway/schema.graphqlapis/api-journeys-modern/schema.graphqlapis/api-journeys-modern/src/schema/block/button/buttonBlockCreate.mutation.tsapis/api-journeys-modern/src/schema/block/button/buttonBlockUpdate.mutation.tsapis/api-journeys-modern/src/schema/block/card/cardBlockCreate.mutation.tsapis/api-journeys-modern/src/schema/journeyProfile/journeyProfileUpdate.mutation.tsapis/api-journeys-modern/src/schema/userRole/getUserRole.query.tsapis/api-journeys/schema.graphqlapis/api-journeys/src/app/modules/block/card/card.graphqlapis/api-journeys/src/app/modules/block/card/card.resolver.spec.tsapis/api-journeys/src/app/modules/block/card/card.resolver.tsapis/api-journeys/src/app/modules/block/icon/icon.resolver.tsapis/api-journeys/src/app/modules/journey/journey.graphqlapis/api-journeys/src/app/modules/journey/journey.resolver.spec.tsapis/api-journeys/src/app/modules/journey/journey.resolver.tsapis/api-media/schema.graphql
💤 Files with no reviewable changes (10)
- apis/api-journeys-modern/src/schema/block/card/cardBlockCreate.mutation.ts
- apis/api-journeys-modern/src/schema/userRole/getUserRole.query.ts
- apis/api-journeys-modern/src/schema/journeyProfile/journeyProfileUpdate.mutation.ts
- apis/api-journeys/src/app/modules/journey/journey.graphql
- apis/api-journeys-modern/src/schema/block/button/buttonBlockCreate.mutation.ts
- apis/api-journeys/src/app/modules/block/icon/icon.resolver.ts
- apis/api-journeys-modern/src/schema/block/button/buttonBlockUpdate.mutation.ts
- apis/api-journeys/src/app/modules/journey/journey.resolver.ts
- apis/api-journeys/src/app/modules/block/card/card.graphql
- apis/api-journeys/src/app/modules/journey/journey.resolver.spec.ts
…n API alignment - Reintroduced `iconBlockCreate` mutation in `api-gateway` and `api-journeys` schemas with updated input type. - Removed deprecated `iconBlockCreate` definitions from previous locations. - Ensured consistency in `IconBlockCreateInput` across schemas. - Cleaned up related resolver files by removing unused imports and tests for the removed mutation.
|
Merge conflict attempting to merge this into stage. Please fix manually. |
This comment has been minimized.
This comment has been minimized.
…-override-cleanup
… updating input types
cardBlockCreateandcardBlockUpdatemutations fromapi-journeysschema.adminJourneyquery to align with modern API structure.DateTimeFilterinput type for better clarity and usage.Summary by CodeRabbit
Release Notes
Removed Features
API Reorganization