x/pkgsite: add a function to get the version history for a path #40150
As part of the new data model migration (#39629), we will be deprecating these functions:
We want fetch version history from the paths table instead.
The query to execute is:
If we know about release or pre-release versions for path, return them all. Don't return an pseudoversions.
If we only know about pseudoversions, return the 10 most recent.
The text was updated successfully, but these errors were encountered:
Adds a db method to get version history for a given path. It will return pre-release and release versions of a package if tagged versions exist or the first 10 pseudo versions. In supporting getting version history based on path, this method will replace the following legacy methods: - LegacyGetTaggedVersionsForPackageSeries - LegacyGetPsuedoVersionsForPackageSeries - LegacyGetTaggedVersionsForModule - LegacyGetPsuedoVersionsForModule For golang/go#39629 For golang/go#40150 Change-Id: I251e80e5327e422579fd8c0854f1e93d1865d48d Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/242881 Reviewed-by: Julie Qiu <email@example.com>