-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
fix(ui): add null check to find overlapping blocks logic #7644
Conversation
8c5da82
to
4eb31aa
Compare
e2e GO test 8,5 and 8,7 were facing connection refused doubt this is related to the changes i committed react / React UI test on Node 14 test, didn't seems to be related to commit. any advice on this? |
@@ -156,7 +156,11 @@ export const getFilteredBlockPools = ( | |||
const poolArrayIndex = blockPools[key]; | |||
const poolArray = poolArrayIndex[Object.keys(poolArrayIndex)[0]]; | |||
for (let i = 0; i < filteredBlocks.length; i++) { | |||
if (JSON.stringify(filteredBlocks[i].thanos.labels) === JSON.stringify(poolArray[0][0].thanos.labels)) { | |||
if ( |
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.
Would it be possible to add a unit test for this? We typically add tests together with these fixes to avoid accidental regressions in the future.
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.
Signed-off-by: pureiboi <17396188+pureiboi@users.noreply.github.com>
acf18d4
to
eb9469f
Compare
fixed failure on react / React UI test |
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.
Cannot reproduce locally, good work 🥇
…7644) Signed-off-by: pureiboi <17396188+pureiboi@users.noreply.github.com>
Changes
Add null check to find overlapping blocks logic to solve #5359.
Verification
tested locally, compare result with both unchecked vs checked