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-react] Handle BYOC Component error #1621

Merged
merged 5 commits into from
Sep 27, 2023

Conversation

addy-pathania
Copy link
Contributor

@addy-pathania addy-pathania commented Sep 26, 2023

The BYOC component should parse the passed props when fetchedDatais not present.

Description / Motivation

Testing Details

  • Unit Test Added
  • Manual Test/Other (Please elaborate)

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 requested a review from a team September 26, 2023 18:29
Copy link
Contributor

@art-alexeyenko art-alexeyenko left a comment

Choose a reason for hiding this comment

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

👍

@art-alexeyenko
Copy link
Contributor

One question though- do we need to modify yarn.lock each time with our PRs now?
Should we be fixing yarn.lock outside of a pull request to make it more cherry-pickable? @sc-addypathania

@addy-pathania
Copy link
Contributor Author

addy-pathania commented Sep 27, 2023

One question though- do we need to modify yarn.lock each time with our PRs now? Should we be fixing yarn.lock outside of a pull request to make it more cherry-pickable? @sc-addypathania

@art-alexeyenko How would you fix the yarn.lock outside of PR?
The issue is whenever we switch branches or pull changes from the remote branch if there were any change in the dependencies then the node_modules gets corrupted. Therefore the only solution i see is to reset yarn.lock before pushing the PR.

@art-alexeyenko
Copy link
Contributor

The issue is whenever we switch branches or pull changes from the remote branch if there were any change in the dependencies then the node_modules gets corrupted.

I think the issue was caused by that yarn.lock commit launched from azure pipeline automation? Now that this commit is not triggered for the previous PR merge, there's a conflict in the current one.

How would you fix the yarn.lock outside of PR?

We should only need to update yarn lock when dependencies change. So we need to ensure that unneccesary yarn.lock updates don't trigger. Until then we can try restoring a "broken" yarn.lock via a direct [skip-ci] commit perhaps.
@sc-addypathania

@addy-pathania
Copy link
Contributor Author

I think the issue was caused by that yarn.lock commit launched from azure pipeline automation? Now that this commit is not triggered for the previous PR merge, there's a conflict in the current one.

Hmm probably but looks like this change has been there in the azure pipeline file since a very long time.

We should only need to update yarn lock when dependencies change. So we need to ensure that unneccesary yarn.lock updates don't trigger. Until then we can try restoring a "broken" yarn.lock via a direct [skip-ci] commit perhaps.

Yeah we should add something to investigate this.
Sounds good. 👍🏼

@addy-pathania addy-pathania merged commit 16ece71 into dev Sep 27, 2023
1 check passed
@addy-pathania addy-pathania deleted the bugfix/handle-byoc-error branch September 27, 2023 23:10
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