Skip to content

fix(web): improve handling of message_expiry#2888

Merged
spetz merged 2 commits into
apache:masterfrom
piotrziolko:fix/expiry-parsing
Mar 7, 2026
Merged

fix(web): improve handling of message_expiry#2888
spetz merged 2 commits into
apache:masterfrom
piotrziolko:fix/expiry-parsing

Conversation

@piotrziolko
Copy link
Copy Markdown
Contributor

Closes #2812

Rationale

The server changed message_expiry from seconds to microseconds The web UI was interpreting µs values as seconds, causing wildly incorrect display (e.g., 10 minutes shown as ~19 years).

What changed?

The domain mapper, duration formatter, and form modals previously assumed message_expiry was in seconds. They now correctly handle microsecond values from the server, with appropriate conversions where needed.

A new DurationInput component replaces the raw number input with text mode (e.g. "1h 30m"), numeric fields mode (d/h/min/s), a "Never" checkbox, and validation (min 1s, max 10 years)

@piotrziolko piotrziolko force-pushed the fix/expiry-parsing branch 2 times, most recently from 8a8b40b to 9834aca Compare March 7, 2026 16:42
@spetz spetz merged commit 33bee3d into apache:master Mar 7, 2026
27 checks passed
@piotrziolko piotrziolko deleted the fix/expiry-parsing branch March 7, 2026 20:31
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.

Web UI parse topic expiry from seconds instead of microseconds

3 participants