librariesio / libraries.io

:books: The Open Source Discovery Service
https://libraries.io
GNU Affero General Public License v3.0
1.11k stars 203 forks source link

Bump updated_ats when updating versions to Removed status #3170

Closed jhan217 closed 1 year ago

jhan217 commented 1 year ago

Follow up to https://github.com/librariesio/libraries.io/pull/3169#discussion_r1275050493

This should bump the updated_at timestamps on a version only when the version's status changes to 'Removed'.

I only updated the Go spec since it was representative of the other package managers in that block; the method should probably be either overwritten by their respective package managers or spex should exist for the base.deprecate_versions method, but I didn't want to get into a big refactor on this.