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

GO-4406: creation date of object type is 0 #1833

Merged

Conversation

AnastasiaShemyakinskaya
Copy link
Member

Set original created date of derived objects in case it is provided in details in function CreateObject

Signed-off-by: AnastasiaShemyakinskaya <shem98a@mail.ru>
@@ -43,6 +43,9 @@ func (s *service) createObjectType(ctx context.Context, space clientspace.Space,

createState := state.NewDocWithUniqueKey("", nil, uniqueKey).(*state.State)
createState.SetDetails(object)
Copy link
Contributor

@fat-fellow fat-fellow Nov 19, 2024

Choose a reason for hiding this comment

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

DRY - you've repeated the code 3 times

Copy link

github-actions bot commented Nov 20, 2024

Previous Coverage 50.6% of statements
New Coverage 50.6% of statements
Patch Coverage 19.0% of changed statements (8/42)

Coverage provided by /~https://github.com/seriousben/go-patch-cover-action

Copy link
Contributor

@requilence requilence left a comment

Choose a reason for hiding this comment

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

please add clarifying comment to the state.originalCreatedTimestamp. Right now it only mentions imported objects.

@AnastasiaShemyakinskaya AnastasiaShemyakinskaya merged commit 1f34986 into main Jan 20, 2025
5 checks passed
@AnastasiaShemyakinskaya AnastasiaShemyakinskaya deleted the go-4406-creation-date-of-object-type-is-0 branch January 20, 2025 16:10
@github-actions github-actions bot locked and limited conversation to collaborators Jan 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants