-
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-4179 initial page web-publishing #1681
Conversation
9b54396
to
3414043
Compare
Coverage provided by https://github.com/seriousben/go-patch-cover-action |
@@ -0,0 +1,146 @@ | |||
package publish |
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.
maybe publisher
?
core/publish/service.go
Outdated
return CName | ||
} | ||
|
||
func (s *service) publishById(ctx context.Context, spaceId, pageObjId string) (res PublishResult, 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.
unused
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.
right, this one supposed to use id but not string from client. Removed for now in b5105a6
core/publish.go
Outdated
func (mw *Middleware) ObjectPublish(ctx context.Context, req *pb.RpcObjectPublishRequest) *pb.RpcObjectPublishResponse { | ||
publishService := getService[publish.Service](mw) | ||
|
||
res, _ := publishService.Publish(ctx, req.SpaceId, req.ObjectId) |
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.
check and handle error
json was generated by castom code from mapping, I don't know how to do the same in easy way in middleware yet. So for now I'm just sending the whole object instead of id.
3414043
to
a5be0a3
Compare
addressed comments and closing this PR in favor of #1684 -- will serve as an epic for feature |
No description provided.