Skip to content
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

Closed
wants to merge 5 commits into from

Conversation

zarkone
Copy link
Contributor

@zarkone zarkone commented Oct 14, 2024

No description provided.

@zarkone zarkone changed the base branch from main to feature/chat October 14, 2024 09:41
@zarkone zarkone changed the base branch from feature/chat to main October 14, 2024 09:41
@zarkone zarkone requested a review from a team October 14, 2024 10:27
@fat-fellow fat-fellow changed the title initial page web-publishing GO-4179 initial page web-publishing Oct 14, 2024
Copy link

Previous Coverage 48.9% of statements
New Coverage 48.8% of statements
Patch Coverage 17.5% of changed statements (11/63)

Coverage provided by https://github.com/seriousben/go-patch-cover-action

@@ -0,0 +1,146 @@
package publish
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe publisher?

return CName
}

func (s *service) publishById(ctx context.Context, spaceId, pageObjId string) (res PublishResult, err error) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused

Copy link
Contributor Author

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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check and handle error

@zarkone zarkone changed the base branch from main to feature/chat October 14, 2024 11:52
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.
@zarkone
Copy link
Contributor Author

zarkone commented Oct 14, 2024

addressed comments and closing this PR in favor of #1684 -- will serve as an epic for feature

@zarkone zarkone closed this Oct 14, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Oct 14, 2024
@zarkone zarkone deleted the go-4179-prepare-page-export branch October 24, 2024 19:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants