-
Notifications
You must be signed in to change notification settings - Fork 531
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 for SharedTree op named idAllocation #21867
base: main
Are you sure you want to change the base?
Conversation
⯅ @fluid-example/bundle-size-tests: +245 Bytes
Baseline commit: 38edc9b |
@@ -607,8 +607,8 @@ function processOp( | |||
type: string; | |||
}; | |||
const address = envelope.address; | |||
type = `${type}/${innerContent.type}`; | |||
switch (innerContent.type) { | |||
type = `${type}/${innerContent?.type}`; |
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.
Looking this over, all this code only applies to FluidDataStoreOp
. I'd pull the other 3 to their own case chunk and have it do nothing or whatever makes sense.
You'll be able to remove several as
's (e.g. as IEnvelope
on line 600) this way too, because the types express the type of contents
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.
And revert the addition of ?
Friendly ping, @arafat-java, in case you want to come back to this :) |
Description
Fixes #21866
When fetch-tool is used to fetch all the ops it fails to fetch block of type="idAllocation" associated with SharedTree
This op usually comes with sequenceNumber=2 with Brainstorm sample app
More details around error log and reproduction steps can be found in bug/issue #21866