Skip to content

Conversation

@bboyHan
Copy link
Contributor

@bboyHan bboyHan commented Oct 27, 2020

#89 fixed the issue

Copy link
Member

@olivergondza olivergondza left a comment

Choose a reason for hiding this comment

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

@@ -0,0 +1,26 @@
package org.openstack4j.model.common;

import com.fasterxml.jackson.annotation.JsonProperty;
Copy link
Member

Choose a reason for hiding this comment

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

Unused import

Copy link
Contributor Author

Choose a reason for hiding this comment

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

got it

*
* @return created time
*/
String getCreatedTime();
Copy link
Member

Choose a reason for hiding this comment

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

Do not return time as String. Rest of the codebase is using Date.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

got it

@@ -0,0 +1,26 @@
package org.openstack4j.model.common;

import com.fasterxml.jackson.annotation.JsonProperty;
Copy link
Member

Choose a reason for hiding this comment

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

Unused import

Copy link
Contributor Author

Choose a reason for hiding this comment

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

got it

@olivergondza olivergondza changed the title add time field [network/subnet/port] Fix #89: Neutron: add time fields [network/subnet/port] Nov 2, 2020
protected static final String JSON_ACCESS = "/identity/v2/access.json";
protected static final String JSON_TOKEN = "/identity/v3/authv3_project.json";
protected static final String TOKEN_ID = "123456789";
protected static final Date DATE = new Date(1604096161000L);
Copy link
Member

Choose a reason for hiding this comment

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

Do not pull this into AbstractTest. It is irrelevant for most of the implementations.

private List<String> availabilityZones;
@JsonProperty("created_at")
private String createdTime;
@JsonFormat(pattern="yyyy-MM-dd'T'HH:mm:ss")
Copy link
Member

Choose a reason for hiding this comment

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

Is specifying the format really needed? A lot of date fields is not having those at all.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is not really a format that must be specified.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your suggestion. I haven't considered it comprehensively.

@olivergondza olivergondza merged commit 3332b7d into openstack4j:master Nov 2, 2020
@olivergondza
Copy link
Member

Thanks for your contribution, @bboyHan. I am merging this towards next release.

@bboyHan bboyHan deleted the add-time-field branch November 13, 2020 12:51
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.

2 participants