-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature/save test finishing time epmdj 10980 #412
Feature/save test finishing time epmdj 10980 #412
Conversation
…adata-key-value-EPMDJ-10972' into feature/save-test-finishing-time-EPMDJ-10980
…ishing-time-EPMDJ-10980 # Conflicts: # admin-writer/src/main/kotlin/com/epam/drill/admin/writer/rawdata/table/TestLaunchTable.kt
@@ -0,0 +1,2 @@ | |||
ALTER TABLE raw_data.test_launches | |||
ADD COLUMN IF NOT EXISTS duration BIGINT DEFAULT NULL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BIGINT is an overkill, integer is sufficient
https://www.postgresql.org/docs/current/datatype-numeric.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that for milliseconds integer will be enough for a test execution time. It's just that the duration of time is usually measured in a long type in Java and a cast to int type will be required
@@ -192,7 +191,7 @@ class RawDataServiceImpl( | |||
id = sessionPayload.id, | |||
groupId = sessionPayload.groupId, | |||
testTaskId = sessionPayload.testTaskId, | |||
startedAt = sessionPayload.startedAt.toLocalDateTime(TimeZone.UTC).toJavaLocalDateTime() | |||
startedAt = sessionPayload.startedAt.toLocalDateTime(TimeZone.currentSystemDefault()).toJavaLocalDateTime() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the motivation for this change?
refactor: return back UTC timezone for startedAt field
|
No description provided.