x/pkgsite: UpsertSearchDocuments should not store synopsis for non-redistributable packages #40971
Labels
Documentation
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
pkgsite/search
Issues related to pkg.go.dev search functionality
pkgsite
Milestone
If a package is not redistributable, we can't store its doc synopsis. That decision should happen at the DataSource (that is, DB) level, in UpsertSearchDocuments.
It's not quite a trivial change because we also have to consider the flag for bypassing license checks, which UpsertSearchDocuments currently can't see because it's on the
postgres.DB
struct.The text was updated successfully, but these errors were encountered: