-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Fix: stale resource in details panel after update from apis/store #7187
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
Conversation
…#7186 Updated currently for: Replication Controllers & Namespaces. Signed-off-by: Roman <ixrock@gmail.com>
Another solution would be something like |
This is more complex solution/more abstraction which is not good. |
You solution doesn't work though. If a |
didn't get what you mean.. can you record some demo? or exact set of instructions how to represent the issue.. |
Sure. I think the following will show the error.
|
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 once tests passed.
Another solution would be something like asyncSubscribableComputed which @Iku-turso says is already mostly created for computedChannel.
Current solution in this PR is enough for now in my opinion for the 6.4.0. Described one probably will be ready for upcoming versions.
@Nokel81 Followed your example by changing labels on a deployment and it works:
labelling.a.deployment.mov
…sInjectable` Signed-off-by: Roman <ixrock@gmail.com>
@aleksfront for some reasons I've been able to reproduce the bug Sebastian was described above.. @Nokel81 is this the case? If so it's not updated after sequential navigations within opened detail-view, right? Screen.Recording.2023-02-20.at.13.56.45.mov |
@lensapp/lens-maintainers any ideas how to fix tests? |
8fb890e
to
5a88444
Compare
Marking as |
…s_panel_stale_data
https://github.com/mobxjs/mobx-utils#fromresource is what I think we should use for this case. The URL seems to be something like: |
…s_panel_stale_data
Signed-off-by: Roman <ixrock@gmail.com>
…rom `packages/core` Signed-off-by: Roman <ixrock@gmail.com>
Signed-off-by: Roman <ixrock@gmail.com>
* alternative to #7187 Signed-off-by: Roman <ixrock@gmail.com> * update snapshots with `jest src -u` from `packages/core` Signed-off-by: Roman <ixrock@gmail.com> * skipping some tests cause i have no idea how to fix those and what is wrong Signed-off-by: Roman <ixrock@gmail.com> * fix tests Signed-off-by: Roman <ixrock@gmail.com> --------- Signed-off-by: Roman <ixrock@gmail.com>
* alternative to #7187 Signed-off-by: Roman <ixrock@gmail.com> * update snapshots with `jest src -u` from `packages/core` Signed-off-by: Roman <ixrock@gmail.com> * skipping some tests cause i have no idea how to fix those and what is wrong Signed-off-by: Roman <ixrock@gmail.com> * fix tests Signed-off-by: Roman <ixrock@gmail.com> --------- Signed-off-by: Roman <ixrock@gmail.com> Signed-off-by: Gabriel <gaccettola@mirantis.com>
Screen.Recording.2023-02-17.at.16.24.33.mov