fedora-infra / anitya

A cross-distribution upstream release monitoring project
https://release-monitoring.org
GNU General Public License v2.0
250 stars 105 forks source link

Expose version retrieval timestamp on HTTP API #1082

Open gasinvein opened 3 years ago

gasinvein commented 3 years ago

The "Retrieved on (UTC)" field could be useful for HTTP API users, who may want to know when the version was released without further crawling the upstream project, if Anytia provides this information.

Zlopez commented 3 years ago

It should be easy to add this field to API.

gasinvein commented 3 years ago

versions and stable_version are plain string lists - I guess timestamps can't be added there, so we'll need a new field to contain a list of (version, retrieved_on) pairs?

Zlopez commented 3 years ago

You are right, this would be probably a backwards incompatible change, because you need to change the type to object from list.