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

Core: Fix default story sort #9482

Merged
merged 1 commit into from Jan 16, 2020
Merged

Core: Fix default story sort #9482

merged 1 commit into from Jan 16, 2020

Conversation

shilman
Copy link
Member

@shilman shilman commented Jan 16, 2020

Issue: #9477

What I did

Fix the story sorting logic, which I broke in #9424

How to test

See updated test cases.

@tmeasday NOTE: there were no other dumpStorybook() tests in story_store.test.ts. there are a bunch of getStorybook() tests in client_api.test.ts but it's pretty messy to update those tests. i propose we add tests to story_store if needed.

@vercel
Copy link

vercel bot commented Jan 16, 2020

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/storybook/monorepo/evect52u8
✅ Preview: https://monorepo-git-9477-fix-story-sort.storybook.now.sh

@shilman shilman added bug core patch:yes Bugfix & documentation PR that need to be picked to main branch labels Jan 16, 2020
@shilman shilman requested a review from tmeasday January 16, 2020 03:59
@shilman shilman added this to the 5.3.x milestone Jan 16, 2020
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 -- were there no other points where we used dumpStoryBook in this test file?

@shilman
Copy link
Member Author

shilman commented Jan 16, 2020

@tmeasday correct. see my comment above in the PR description.

@shilman shilman merged commit 3325552 into next Jan 16, 2020
@shilman shilman deleted the 9477-fix-story-sort branch January 16, 2020 04:51
@benmvp
Copy link

benmvp commented Jan 16, 2020

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug core 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.

None yet

3 participants