-
Notifications
You must be signed in to change notification settings - Fork 47
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
GO-4017 Set imageKind on file upload #1596
base: main
Are you sure you want to change the base?
Conversation
Coverage provided by https://github.com/seriousben/go-patch-cover-action |
) | ||
|
||
type BlockService interface { | ||
GetObject(ctx context.Context, objectID string) (sb smartblock.SmartBlock, err error) | ||
GetObjectByFullID(ctx context.Context, id domain.FullID) (sb smartblock.SmartBlock, err error) | ||
UploadFile(ctx context.Context, spaceId string, req block.FileUploadRequest) (objectId string, details *types.Struct, err error) | ||
UploadFileBlock(contextID string, req block.UploadRequest) (fileObjectId string, err error) | ||
UploadBlockFile(ctx session.Context, req block.UploadRequest, groupID string, isSync bool) (fileObjectId string, err error) |
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.
Seems like ctx is always nil, when you call UploadBlockFile. May be we should remove it? 🧐
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.
Yeah, I agree with you! Let me fix that
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.
Basically, I have decided to propagate session.ctx in couple of file uploading commands
https://linear.app/anytype/issue/GO-4017/clipboard-html-files-should-be-hidden-by-default