-
Notifications
You must be signed in to change notification settings - Fork 26
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 getNullBucket crash and remove dead code #6603
Conversation
if (this.boundingBox.containsBucket(address, this.resolutionInfo)) { | ||
return NULL_BUCKET; | ||
} else { | ||
return NULL_BUCKET_OUT_OF_BB; | ||
} |
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.
As far as I see, this distinction was only used in the ArbitraryCubeAdapter
. However, that wasn't used at all, anymore. So, I unified the two NullBuckets
.
@@ -11613,7 +11613,7 @@ rc-table@~7.26.0: | |||
rc-util "^5.22.5" | |||
shallowequal "^1.1.0" | |||
|
|||
rc-tabs@^12.2.2, rc-tabs@~12.2.0: | |||
rc-tabs@~12.2.0: |
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.
yarn install
produced this change (not for the first time). I think, it needs to be there.
/* Checks whether a bucket is contained in the active bounding box. | ||
* If the passed resolutionInfo does not contain the passed zoomStep, this method | ||
* returns false. | ||
*/ |
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.
This method is only used by DataCube.isWithinBounds
which itself also checks for this.cubes[zoomStep] == null
. So, the new behavior here is in line with the existing behavior on the call site.
The other usage of containsBucket
was removed due to the NullBucket
consolidation.
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.
Nice fix and cleanup 👍 I'll do a quick test once the CI is ready.
Do you follow why this suddenly was an issue after the quick select PR?
The CI currently has some problems. I hope it resolves itself:
Yes, the quick-select PR changed the bounding box method to accept the resolution info. The old code simply accessed the |
Thank you for clarifying, makes sense :) |
…cing * 'master' of github.com:scalableminds/webknossos: Fix getNullBucket crash and remove dead code (#6603) Hotfix Dataset View Mode
URL of deployed dev instance (used for testing):
Steps to test:
Issues:
(Please delete unneeded items, merge only when none are left open)