-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[www/starters] filter out invalid entries and set max number to show #8763
[www/starters] filter out invalid entries and set max number to show #8763
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Left a few comments.=
9db2ed0
to
9bc8690
Compare
@pieh review?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I wonder if aborting the entire build because an HTTP request failed is a good idea. Instinctively, I'd guess not, but I don't have enough context to put any weight behind my instincts! I guess if GitHub is down, or the request simply fails for some reason, the current logic of setting some default data makes sense. Why that logic sometimes fails, well that's a whole different story... :-) |
let starters = data.allStartersYaml.edges | ||
// stopgap for missing gh data (#8763) | ||
let starters = data.allStartersYaml.edges.filter(({ node: starter }) => { | ||
return starter.fields && starter.fields.starterShowcase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like an ingeniously hacky solution to me. ❤️ It's an ugly fix, but should solve the current issues we're seeing with the UI breaking because this field is sometimes missing.
…atsbyjs#8763) * [www/starters] filter out invalid entries and set max number to show * [www/starters] move load more onclick method * [www] panic on build if error fetching starter repo data
Closes #8757