Skip to content

Schedule a Go package refresh when packages are viewed/queried

Followup, to reduce the scope of !29642 (closed).

Consider scheduling a refresh when the user navigates to /my/project/-/packages or queries /api/v4/projects/:id/packages. This should only be done if project.packages.go.pluck_distinct_version does not match project.repository.tags. This may improve the user experience, reduce the work done by Packages::Go::RefreshPackagesService, and reduce the frequency with which the user schedules a refresh.

/cc @trizzi @10io