-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue where gap between resource.stop and resource.start lead to …
…missed resource changes - changes cover create, change and remove - resource.stop events happen - we unusb - after socket errors (that rancher sends, like revision `too old`) - after resource type permissions change - there would be a gap between resource.stop (fetch latest revision, wait 5 seconds) and resource.start - this could lead to missed resource changes and stale info on screen Linking a couple of pertinent changes - forceWatch partially implemented - 14862b2#diff-42632b5ed3c30e60abade8a67748b16d45e0778091713dd71a46d4bbe9211d2c - too old originally removed https://github.com/rancher/dashboard/pull/3743/files - this was implemented before the backend fixed their spam Note - resource.stop can be forced with CATTLE_WATCH_TIMEOUT_SECONDS=300 (on v1 will resource.stop every 5 mins) Note - Too old can be forced by editing resource.stop with // const revision = type === '' ? undefined : 1; // dispatch('watch', { ...obj, revision });
- Loading branch information
1 parent
6ce6632
commit e73c55c
Showing
3 changed files
with
27 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
msg.resourceType || msg.kind msg.type