Skip to content
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

[sitecore-jss] rootItemId not resolvable for different language versions #1196

Merged
merged 3 commits into from
Oct 14, 2022

Conversation

addy-pathania
Copy link
Contributor

@addy-pathania addy-pathania commented Oct 7, 2022

The dictionary service doesn't return rootItemId for other language versions other than English.
Added a fix to make another request using language as en to get the rootItemId as it is same in all versions.

Description / Motivation

Testing Details

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@addy-pathania addy-pathania changed the title [sitecore-jss] rootItemId not resolvable for different language versions [sitecore-jss] rootItemId not resolvable for different language versions Oct 7, 2022
@addy-pathania addy-pathania requested a review from a team October 7, 2022 20:50
Copy link
Contributor

@ambrauer ambrauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments. Also, please add unit tests for this new case.

packages/sitecore-jss/src/graphql/app-root-query.ts Outdated Show resolved Hide resolved
packages/sitecore-jss/src/graphql/app-root-query.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@ambrauer ambrauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving, but see suggestion about tests :)

@ambrauer ambrauer merged commit ffca382 into dev Oct 14, 2022
@ambrauer ambrauer deleted the bugfix/552628-rootItemId-fail branch October 14, 2022 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants