coala / gh-board

:octocat: Kanban for GitHub Issues
https://coala-gh-board.netlify.com/
GNU Affero General Public License v3.0
21 stars 25 forks source link

issue-store.js: Resolve promise directly at first time #174

Closed li-boxuan closed 6 years ago

li-boxuan commented 6 years ago

This resolves _fetchAllIssues promise directly before polling starts. The benefit is that users don't need to wait until they see pre-fetched cards.

Closes https://github.com/coala/gh-board/issues/173

li-boxuan commented 6 years ago

It has a problem. If the user visits a repo which doesn't have pre-fetched issues, gh-board will remind sth like 'this repo doesn't have issues'.

Also, this strategy wouldn't work if the user redirects to another repo from the dashboard because it uses an instance variable to determine if it is the first fetch. That variable is initialized when the webpage is opened the first time.

blazeu commented 6 years ago

ack c0fa1af1ed152615d7019be30d6e40fb6833ec30

li-boxuan commented 6 years ago

@gitmate-bot rebase

gitmate-bot commented 6 years ago

Hey! I'm GitMate.io! This pull request is being rebased automatically. Please DO NOT push while rebase is in progress or your changes would be lost permanently :warning:

gitmate-bot commented 6 years ago

Automated rebase with GitMate.io was successful! :tada:

TravisBuddy commented 6 years ago

Travis tests have failed

Hey @li-boxuan, Please read the following log in order to understand the failure reason. It'll be awesome if you fix what's wrong and commit the changes.

TravisBuddy Request Identifier: 9b596670-da01-11e8-8964-ad637cdcaaf8
ashwini0529 commented 6 years ago

LGTM 💯

haeungun commented 6 years ago

LGTM

jayvdb commented 6 years ago

ack https://github.com/coala/gh-board/pull/174/commits/b81a1b2cb99ac325a1b6c9456f4111607c54af35 https://github.com/coala/gh-board/pull/174/commits/90f7322d06d32e8f3c8771d2544127bab3b4d3bb

jayvdb commented 6 years ago

@gitmate-bot ff

gitmate-bot commented 6 years ago

Hey! I'm GitMate.io! This pull request is being fastforwarded automatically. Please DO NOT push while fastforward is in progress or your changes would be lost permanently :warning:

gitmate-bot commented 6 years ago

Automated fastforward with GitMate.io was successful! :tada: