Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance UX for last_status_change as a datetime #104

Open
viniarck opened this issue Jul 29, 2022 · 0 comments
Open

Enhance UX for last_status_change as a datetime #104

viniarck opened this issue Jul 29, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@viniarck
Copy link
Member

This capture this discussion:

Enhance UX for last_status_change as a datetime. last_status_change currently stores a epoch value:

❯ http localhost:8181/api/kytos/topology/v3/links | jq -r '.links["cf0f4071be426b3f745027f5d22bc61f8312ae86293c9b28e7e66015607a9260"].metadata'
{
  "last_status_change": 1659109957.997244,
  "last_status_is_active": true
}

Which works great, however since this is a metadata value and exposed in the API, it's not as UX friendly as a formated datetime str for operators, so currently you'd have o keep converting the value from the API, if it were a datetime in the runtime and stored on Mongo as ISODate then it'd be serialized as %Y-%m-%dT%H:%M:%S str in the API response. This breaks compatibility of this field since it's changing its type, but as far as I know and could search in the code base, it doesn't look like it would break any feature, and then we can give a heads up in the changelog for operators in case anyone using the platform that could have been using this field.

@viniarck viniarck added enhancement New feature or request future_release Planned for the next release labels Jul 29, 2022
@viniarck viniarck removed the future_release Planned for the next release label Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant