Firehose - store firehoses in state to trigger rerender when changed - #2822
Conversation
|
another solution would be to use |
|
I don't think it's a good practice for /hold |
|
Yes I see the specific problem. I debugged it and here's the flow which leads to problem: Imagine you have two components - Specific scenario: |
|
Ok, i agree that shouldComponentUpdate is not a best place to do clear/start. Should I go with |
4054b51 to
4a09039
Compare
|
PR updated, i've put |
|
Thanks, this seems like a much better approach, although it looks like it's broken something. e2e-aws-console and e2e-aws-console-olm both failed with the same error. |
4a09039 to
b5ed403
Compare
34babfa to
d785b2b
Compare
|
/retest |
|
/test e2e-aws-console |
d785b2b to
c060cf7
Compare
c060cf7 to
bd0bd43
Compare
|
Are we sure it's safe to remove @TheRealJon If you remember the scenario that required |
|
not sure yet, but it would be nice. A test case would be great, but if you wont remember any, maybe we could try it out and revert if anything goes wrong ? |
|
@spadgett @rawagner I tested this branch out and the project overview workloads page seems to be working fine. I remember adding the |
Oh, so in this example... If a prop like |
|
@spadgett Yes, that's a good example. I did manually test that specific prop, and changing the selected item does work as expected. |
|
Thanks @TheRealJon . I will add a test to this PR too |
108305a to
d98657b
Compare
6798bca to
ef8925c
Compare
ef8925c to
f474858
Compare
|
/test e2e-aws-console-olm |
|
@spadgett added a few tests, can you take a look ? |
|
/hold cancel |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rawagner, spadgett The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
|
/skip |
|
/retest |
1 similar comment
|
/retest |
|
@rawagner: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
When we change resources to fetch, Firehose will restart the watch in
componentDidUpdatewhich is incorrect lifecycle method -this.firehosesare updated after the rerender but we want them to update before.I've moved the whole logic from
componentDidUpdatetoshouldComponentUpdateto restart the watch before rerendering.@spadgett