This introduces ember-concurrency for managing concurrent tasks, as well as task queues, etc.. The new changes improve the fetching of data in several ways:
If data has been loaded from cache, fetch new contributions and update unconfirmed ones (to see if they were vetoed e.g.)
Never fetch contributions again if they are confirmed and cached
After syncing new and unconfirmed contributions, fetch/cache all missing past contributions
After merging this one, we should soon improve the dashboard further by not showing all contributions in the list by default, and also asking the user before fetching the entire history. When we have UI for that, we can then also show sync progress somewhere.
This introduces [ember-concurrency](http://ember-concurrency.com/docs/introduction) for managing concurrent tasks, as well as task queues, etc.. The new changes improve the fetching of data in several ways:
* If data has been loaded from cache, fetch new contributions and update unconfirmed ones (to see if they were vetoed e.g.)
* Never fetch contributions again if they are confirmed and cached
* After syncing new and unconfirmed contributions, fetch/cache all missing past contributions
After merging this one, we should soon improve the dashboard further by not showing all contributions in the list by default, and also asking the user before fetching the entire history. When we have UI for that, we can then also show sync progress somewhere.
galfert
(Migrated from github.com)
approved these changes 2020-06-01 23:47:37 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This introduces ember-concurrency for managing concurrent tasks, as well as task queues, etc.. The new changes improve the fetching of data in several ways:
After merging this one, we should soon improve the dashboard further by not showing all contributions in the list by default, and also asking the user before fetching the entire history. When we have UI for that, we can then also show sync progress somewhere.
Code looks good. Just had some super minor comment.
Tests worked also as promised.
Great work! 👍
@@ -2,12 +2,10 @@ import Component from '@ember/component';import { inject as service } from '@ember/service';export default Component.extend({tagName: '',Since Octane, components don't have a tag like
divby default anymore. So this is not necessary.@@ -2,12 +2,10 @@ import Component from '@ember/component';import { inject as service } from '@ember/service';export default Component.extend({tagName: '',You mean Glimmer components. But this one hasn't been converted yet.
@galfert Thanks!
👍