mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
fix(electron): isolate refresh performance correlation
This commit is contained in:
1 parent
e3ce60a35e
commit
f9e71a6d8d
25 files changed
+728
-402
No files matched your search
@@ -630,6 +630,7 @@ describe('PlaylistRefreshActionService', () => {
|
||||
playlist: refreshedPlaylist,
|
||||
playlistId: item._id,
|
||||
refreshEpg: true,
|
||||
operationId: 'playlist-refresh-op',
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
@@ -205,12 +205,11 @@ export class PlaylistRefreshActionService {
|
||||
}
|
||||
|
||||
try {
|
||||
const operationId =
|
||||
this.databaseService.createOperationId('playlist-refresh');
|
||||
const refreshedPlaylist =
|
||||
await this.playlistRefreshService.refreshPlaylist({
|
||||
operationId:
|
||||
this.databaseService.createOperationId(
|
||||
'playlist-refresh'
|
||||
),
|
||||
operationId,
|
||||
playlistId: item._id,
|
||||
title: item.title,
|
||||
url: item.url,
|
||||
@@ -228,6 +227,7 @@ export class PlaylistRefreshActionService {
|
||||
},
|
||||
playlistId: item._id,
|
||||
refreshEpg: true,
|
||||
operationId,
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
@@ -549,5 +549,15 @@ describe('RecentPlaylistsComponent busy state', () => {
|
||||
expect(dataService.sendIpcEvent).not.toHaveBeenCalled();
|
||||
|
||||
await Promise.resolve();
|
||||
expect(store.dispatch).toHaveBeenCalledWith(
|
||||
PlaylistActions.updatePlaylist({
|
||||
playlist: expect.objectContaining({
|
||||
_id: item._id,
|
||||
}),
|
||||
playlistId: item._id,
|
||||
refreshEpg: true,
|
||||
operationId: 'playlist-refresh-op',
|
||||
})
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -463,6 +463,7 @@ export class RecentPlaylistsComponent {
|
||||
},
|
||||
playlistId: item._id,
|
||||
refreshEpg: true,
|
||||
operationId,
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user