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

x/pkgsite: add GetDocumentation function #41017

Closed
julieqiu opened this issue Aug 24, 2020 · 1 comment
Closed

x/pkgsite: add GetDocumentation function #41017

julieqiu opened this issue Aug 24, 2020 · 1 comment

Comments

@julieqiu
Copy link
Contributor

@julieqiu julieqiu commented Aug 24, 2020

As part of the new data model migration (#39629), we need to add a function to fetch documentation for a given path_id.

The function signature will be:

GetDocumentation(ctx context.Context, pathID int)(*internal.Documentation, error)

The function will execute the query below:

SELECT
  goos
  goarch
  synopsis
  html
FROM
  documentation 
WHERE
  path_id = $1
@gopherbot
Copy link

@gopherbot gopherbot commented Aug 25, 2020

Change https://golang.org/cl/250540 mentions this issue: internal/postgres: split GetDirectory into multiple functions

gopherbot pushed a commit to golang/pkgsite that referenced this issue Aug 26, 2020
GetDirectory is split into several functions. These functions are
intended to be exported in future CLs.

For golang/go#39629
For golang/go#41017
For golang/go#41018

Change-Id: I78edfc2ab47e9947d8a8a6400460413ce0e64180
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/250540
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
@julieqiu julieqiu closed this Aug 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants