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

Tags: Fix unsafe project-level tags lookup #27511

Merged
merged 1 commit into from
Jun 2, 2024

Conversation

shilman
Copy link
Member

@shilman shilman commented Jun 2, 2024

Closes #27510

What I did

Catch preview.js parsing errors and present a warning instead of crashing

Checklist for Contributors

Testing

The changes in this PR are covered in the following automated tests:

  • stories
  • unit tests
  • integration tests
  • end-to-end tests

Manual testing

Create a preview that has tags that can't be parsed:

const genTags = () => ['asdf'];

export default {
  tags: genTags(),
};

🦋 Canary release

This PR does not have a canary release associated. You can request a canary release of this pull request by mentioning the @storybookjs/core team here.

core team members can create a canary release here or locally with gh workflow run --repo storybookjs/storybook canary-release-pr.yml --field pr=<PR_NUMBER>

@shilman shilman added bug patch:yes Bugfix & documentation PR that need to be picked to main branch tags labels Jun 2, 2024
@shilman shilman self-assigned this Jun 2, 2024
@shilman shilman changed the title Tags: Catch project-level tags errors and warn Tags: Fix project-level tags crash Jun 2, 2024
Copy link

nx-cloud bot commented Jun 2, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit f993f25. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 2 targets

Sent with 💌 from NxCloud.

@shilman shilman changed the title Tags: Fix project-level tags crash Tags: Fix unsafe project-level tags lookup Jun 2, 2024
@shilman shilman merged commit 341904e into next Jun 2, 2024
65 of 74 checks passed
@shilman shilman deleted the shilman/27510-wrap-project-tags branch June 2, 2024 11:42
storybook-bot pushed a commit that referenced this pull request Jun 2, 2024
…-tags

Tags: Fix unsafe project-level tags lookup
(cherry picked from commit 341904e)
storybook-bot pushed a commit that referenced this pull request Jun 2, 2024
…-tags

Tags: Fix unsafe project-level tags lookup
(cherry picked from commit 341904e)
storybook-bot pushed a commit that referenced this pull request Jun 2, 2024
…-tags

Tags: Fix unsafe project-level tags lookup
(cherry picked from commit 341904e)
storybook-bot pushed a commit that referenced this pull request Jun 3, 2024
…-tags

Tags: Fix unsafe project-level tags lookup
(cherry picked from commit 341904e)
storybook-bot pushed a commit that referenced this pull request Jun 3, 2024
…-tags

Tags: Fix unsafe project-level tags lookup
(cherry picked from commit 341904e)
storybook-bot pushed a commit that referenced this pull request Jun 4, 2024
…-tags

Tags: Fix unsafe project-level tags lookup
(cherry picked from commit 341904e)
storybook-bot pushed a commit that referenced this pull request Jun 5, 2024
…-tags

Tags: Fix unsafe project-level tags lookup
(cherry picked from commit 341904e)
storybook-bot pushed a commit that referenced this pull request Jun 5, 2024
…-tags

Tags: Fix unsafe project-level tags lookup
(cherry picked from commit 341904e)
storybook-bot pushed a commit that referenced this pull request Jun 5, 2024
…-tags

Tags: Fix unsafe project-level tags lookup
(cherry picked from commit 341904e)
@github-actions github-actions bot added the patch:done Patch/release PRs already cherry-picked to main/release branch label Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ci:normal 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 tags
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tags: Project-level tags failure crashes Storybook
2 participants