Add new field publishedAt to ContainerRegistry::Tag
Overview
Context: &10208 (comment 1662372558)
In frontend, we show a text for a tag: Published <X time ago>
.
Previously for this value, we were relying on the createdAt
value within the image configuration which is inaccurate (it's the build timestamp not when it was pushed).
In #411387 (closed), we integrated the new list repository tags API from the container registry which returns 3 timestamps, created_at
, updated_at
and published_at
. With this integration, we assign the created_at
and updated_at
return values of the registry to the created_at
and updated_at
attributes of the tag.
published_at
is something that we don't use nor store in ContainerRegistry::Tag
now. With this issue, we want to:
- Add a new attribute
published_at
toContainerRegistry::Tag
- Fill up this new attribute from the API endpoint (if Gitlab.com)
- Set to nil? (if not Gitlab.com)
- Add new field
published_at
toContainerRepositoryTagType
so it can be accessible via the Rails API. - Ensure that
published_at
is part of the GraphQL endpoint.
Implementation plan:
Edited by Adie (she/her)