-
Notifications
You must be signed in to change notification settings - Fork 356
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
Clean out cache of MiqProductFeature at CUD tenant actions in UI process #5108
Clean out cache of MiqProductFeature at CUD tenant actions in UI process #5108
Conversation
as well at at many PRs this is example of great teamwork! Thank you! 👏 👏 |
773cd1a
to
6806dc7
Compare
@lpichler it's definitely not due to different processes as I was able to reproduce the issue using @miq-bot add_reviewer @martinpovolny |
6806dc7
to
c5057e5
Compare
Checked commit lpichler@c5057e5 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
I was not able to reproduce it with
We know about it. It is not about how fix is ugly but what is the best solution at this moment, whether it is possible to cover it by specs and if it includes features of ideal solution. |
Delegating this one. I do not feel strong enough to review the Angular changes. |
@martinpovolny my problem here is not with angular, but with the principle of adding a route for having something that is clearly just a workaround, i.e. creating techdebt. |
@skateman : I agree. However we need a fix for a blocker BZ. I would consider making this a fix for hammer and carrying on with investigating the issue. However I do not understand the problem well enough to have a strong opinion here. |
@lpichler can you please at least mark the route/implementation with a FIXME and explain in a comment that this should be revisited? |
@martinpovolny Angular LGTM 👍 |
@miq-bot add_label hammer/yes |
…re_in_UI_process_at_CUD_tenant_actions Clean out cache of MiqProductFeature at CUD tenant actions in UI process (cherry picked from commit a385b30) https://bugzilla.redhat.com/show_bug.cgi?id=1468795 https://bugzilla.redhat.com/show_bug.cgi?id=1655012
Hammer backport details:
|
CUD - create, update, delete
Issue
MiqProductFeature is using cache for some queries. MiqProductFeatures are tied to Tenants. Where we are adding/updating/delete tenant we need update this cache to reflect changes in UI.
But it doesn't work when cache is cleaned out at model's callbacks because UI is different process.
Reproducer
https://user-images.githubusercontent.com/14937244/50166079-8c3c3380-02e6-11e9-8a53-a39dddcb9cab.gif
Thanks to the @gtanzillo's idea and @skateman's research we confirmed that if you clean the cache from the API(on instantiated classes), it doesn't reflects the changes in the UI probably because of different processes. We found with @himdel obviously better solution how to tie cleaning of cache to CUD of tenants. (then it was presented here #5101 and #5100)
Fix tested on appliance.
@miq-bot assign @himdel
@miq-bot add_label bug, blocker
Links
https://bugzilla.redhat.com/show_bug.cgi?id=1468795
https://bugzilla.redhat.com/show_bug.cgi?id=1655012