Skip to content

x/pkgsite: UpsertSearchDocuments should not store synopsis for non-redistributable packages #40971

@jba

Description

@jba

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues describing a change to documentation.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.pkgsitepkgsite/searchIssues related to pkg.go.dev search functionality

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions