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

add created_at and updated_at fields #118

Merged

Conversation

AshGodfrey
Copy link
Contributor

Resolves SDK-252.

Added created_at and updated_at to organization, connection, and directory.

@AshGodfrey AshGodfrey requested a review from a team as a code owner August 11, 2021 16:18
@linear
Copy link

linear bot commented Aug 11, 2021

SDK-252 Add created_at and updated_at fields in Go SDK

Add these fields for the Connection, Directory, and Organization types

@@ -421,6 +421,12 @@ type Directory struct {

// Identifier for the Directory's Organization.
OrganizationID string `json:"organization_id"`

//Created At
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we make these doc comments look more like this?

  • Full sentences describing the field
  • Space between the // and the first word of the comment
Suggested change
//Created At
// The timestamp of when the Directory was created.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

@@ -68,6 +68,12 @@ type Organization struct {

// The Organization's Domains.
Domains []OrganizationDomain `json:"domains"`

//Created At
Copy link
Contributor

Choose a reason for hiding this comment

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

Similar to @maxdeviant's previous comment, we should update these comments (and the ones in pkg/sso/client.go).

After that, I think this will be good to go!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hopefully got it all :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like there's just a few more for Organization in pkg/organizations/client.go.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Brutal that I missed that but this is now updated in:

pkg/sso/client.go
pkg/organizations/client.go
pkg/directorysync/client.go

pkg/organizations/client.go Outdated Show resolved Hide resolved
pkg/organizations/client.go Outdated Show resolved Hide resolved
pkg/sso/client.go Outdated Show resolved Hide resolved
pkg/sso/client.go Outdated Show resolved Hide resolved
@mthadley
Copy link
Contributor

Just realized that some of the comments were referring to the wrong type. Left some suggestions that should fix it. Last thing, I think!

AshGodfrey and others added 4 commits September 20, 2021 17:15
Co-authored-by: Michael Hadley <ufomoe@gmail.com>
Co-authored-by: Michael Hadley <ufomoe@gmail.com>
Co-authored-by: Michael Hadley <ufomoe@gmail.com>
Copy link
Contributor

@mthadley mthadley left a comment

Choose a reason for hiding this comment

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

🎉

@AshGodfrey AshGodfrey merged commit 9e4b31f into master Sep 21, 2021
@AshGodfrey AshGodfrey deleted the feature/sdk-252-add-created_at-and-updated_at-fields-in branch September 21, 2021 15:07
@maxdeviant maxdeviant mentioned this pull request Sep 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants