Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add UpdatedAt to ports.Port #2445

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

Merged
merged 2 commits into from
Aug 25, 2022
Merged

Add UpdatedAt to ports.Port #2445

merged 2 commits into from
Aug 25, 2022

Conversation

boyvinall
Copy link
Contributor

Fixes #2444

Links to the line numbers/files in the OpenStack source code that support the
code in this PR:

All neutron core resources have created_at and updated_at, see [class Timestamp](https://github.com/openstack/neutron/blob/b7fad3dd35ad23303a5f52ec64478860a137775e/neutron/extensions/timestamp.py#L33).

Signed-off-by: Matt Vinall <boyvinall@gmail.com>
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for submitting your first PR! Be sure that we will be looking at it but keep in mind
this sometimes takes a while.
Please let the maintainers know if your PR has not got enough attention after a few days.
If any doubt, please consult our PR tutorial.

@coveralls
Copy link

coveralls commented Aug 2, 2022

Coverage Status

Coverage remained the same at 79.976% when pulling 5e6cb9e on boyvinall:port-updated-at into 0721d75 on gophercloud:master.

Copy link
Contributor

@mandre mandre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good.
While looking at the Network resource, it looks like neutron used to use a different time format and we extra steps when unmarshalling the JSON response, as seen in #1670. However, the linked PR from Aug 2019 mentions "older" openstack version. At the time, Train was still the development version (released on 2019-10-16), and is now the oldest version we support in gophercloud. We should be fine with your change.

However, while you're at it, updated_at comes in pair with created_at, would you mind adding it also?

Signed-off-by: Matt Vinall <boyvinall@gmail.com>
@boyvinall
Copy link
Contributor Author

Sure, added that now, thanks.

Copy link
Contributor

@mandre mandre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ports.Port missing UpdatedAt field
3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.