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

Respond with domain CreatedAt time #72

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chuyeow
Copy link
Contributor

@chuyeow chuyeow commented Aug 26, 2016

So that we can display when the domain was added in the web dashboard.


This change is Reviewable

@chuyeow
Copy link
Contributor Author

chuyeow commented Aug 26, 2016

Oh wait hang on - we also need to return created_at in GET /projects/{projectName}/domains. It's currently e.g. ["foo.pubstorm.site", "www.foo.com"] and changing it would break the CLI.

@@ -110,6 +110,12 @@ func Create(c *gin.Context) {
return
}

// Re-fetch fromm db to get correct timestamps.
Copy link
Contributor

Choose a reason for hiding this comment

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

mm

@chuyeow chuyeow force-pushed the domain-created-at-json branch from 741557a to 8cbd5bb Compare August 26, 2016 06:49
@@ -38,6 +38,8 @@ func Index(c *gin.Context) {
return
}

domainsAsJSON := []interface{}{}
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah PR is half done because of this: #72 (comment)

I wanted to return domains as "objects" but the CLI depends on them being just strings.

@styner32
Copy link
Contributor

LGTM

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.

3 participants