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

Feature/save test finishing time epmdj 10980 #412

Merged
merged 8 commits into from
Feb 5, 2025

Conversation

iryabov
Copy link
Contributor

@iryabov iryabov commented Feb 4, 2025

No description provided.

…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;
Copy link
Member

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

Copy link
Contributor Author

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()
Copy link
Member

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?

Copy link

sonarqubecloud bot commented Feb 5, 2025

@RomanDavlyatshin RomanDavlyatshin merged commit 9820115 into main Feb 5, 2025
2 checks passed
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