Skip to content

user interface fixes (WP-1001)#615

Merged
vsolovei-smartling merged 4 commits into
masterfrom
WP-1001-ui-fixes
May 13, 2026
Merged

user interface fixes (WP-1001)#615
vsolovei-smartling merged 4 commits into
masterfrom
WP-1001-ui-fixes

Conversation

@vsolovei-smartling
Copy link
Copy Markdown
Contributor

No description provided.

vsolovei-smartling and others added 4 commits May 11, 2026 18:00
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
}

public function acquireLock(ConfigurationProfileEntity $profile, string $key, int $ttlSeconds): \DateTime
public function acquireLock(ConfigurationProfileEntity $profile, string $key, float $ttlSeconds): \DateTime
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why float for seconds?

Copy link
Copy Markdown
Contributor Author

@vsolovei-smartling vsolovei-smartling May 12, 2026

Choose a reason for hiding this comment

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

Locks are short lived, but not short enough lived to be in milliseconds. The change fixes an issue no one noticed or complained about, where .001 in test lock function was silently converted to 1.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

sorry, I still do not get. lock api accepts ttl in ms. you do not need to use float to describe fraction of a second

@vsolovei-smartling vsolovei-smartling merged commit 1b042df into master May 13, 2026
3 checks passed
@vsolovei-smartling vsolovei-smartling deleted the WP-1001-ui-fixes branch May 13, 2026 07:29
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