Skip to content

feat: manage service timestamps #236

Closed

Description

@uniqueg

Why?

createdAt and updatedAt are taken from the request as they are, and only checked to be RFC 3339 date-times (check_date_times). Any user who may write a service can set them to any value. Clients can't rely on them, and UIs can't sort or show "last updated" in a trustworthy way.

What?

  • The registry manages both timestamps.
    • createdAt is set when a service is created and kept on every update.
    • updatedAt is set on creation and on every change.
    • Values sent by non-admins are ignored (not an error, so existing clients that send the fields back keep working).
  • Admins may still set them explicitly, e.g., to keep the original dates when importing services from another registry.
  • In the registry, the fields then mean "registered" and "last changed in the registry". Document this deviation from the GA4GH wording (which describes the service's deployment) in the API description and docs.

Acceptance criteria

  • Timestamps sent by non-admins have no effect; the registry sets them on create and update.
  • Admins can set them explicitly.

Requested by the maintainer for the Cloud Registry UI (elixir-cloud-aai/cloud-registry-ui#19).

Activity

  1. added
    priority: medium
    status: in progress
    type: feature
    workload: hours
    on Oct 25, 2026
  2. removed
    status: in progress
    on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumtype: featureworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions