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

only connect to serverChannel in development mode #22575

Merged
merged 3 commits into from
May 22, 2023

Conversation

ndelangen
Copy link
Member

What I did

I made it so the manager frame only attempts to connect to the serverChannel in development-mode.

@ndelangen ndelangen requested review from tmeasday and yannbf May 16, 2023 13:17
@ndelangen ndelangen self-assigned this May 16, 2023
@ndelangen ndelangen added bug patch:yes Bugfix & documentation PR that need to be picked to main branch builder-manager labels May 16, 2023
Copy link
Member

@tmeasday tmeasday left a comment

Choose a reason for hiding this comment

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

LGTM. What about the preview side?

@ndelangen
Copy link
Member Author

@tmeasday here's what I could find:

const serverChannel = createWebSocketChannel({});

const serverChannel = createWebSocketChannel({});
addons.setServerChannel(serverChannel);
window.__STORYBOOK_SERVER_CHANNEL__ = serverChannel;

These 2 places seem unguarded indeed.

@ndelangen ndelangen requested a review from tmeasday May 19, 2023 07:05
Copy link
Member

@tmeasday tmeasday left a comment

Choose a reason for hiding this comment

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

OK, LGTM

Copy link
Member

@tmeasday tmeasday left a comment

Choose a reason for hiding this comment

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

OK, LGTM

@ndelangen ndelangen merged commit 28f8733 into next May 22, 2023
@ndelangen ndelangen deleted the norbert/serverchannel-manager-fix branch May 22, 2023 11:34
@shilman shilman added the patch:done Patch/release PRs already cherry-picked to main/release branch label May 22, 2023
shilman pushed a commit that referenced this pull request May 22, 2023
…ger-fix

only connect to serverChannel in development mode
@shilman shilman mentioned this pull request May 22, 2023
@shilman shilman removed the patch:done Patch/release PRs already cherry-picked to main/release branch label May 22, 2023
shilman added a commit that referenced this pull request May 22, 2023
shilman pushed a commit that referenced this pull request May 23, 2023
…ger-fix

only connect to serverChannel in development mode
@shilman shilman mentioned this pull request May 23, 2023
@shilman shilman added the patch:done Patch/release PRs already cherry-picked to main/release branch label May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug builder-manager patch:done Patch/release PRs already cherry-picked to main/release branch patch:yes Bugfix & documentation PR that need to be picked to main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants