rabbitmq / rabbitmq-management

RabbitMQ Management UI and HTTP API
https://www.rabbitmq.com/management.html
Other
370 stars 165 forks source link

fix zero time formatted as empty string #837

Closed luos closed 4 years ago

luos commented 4 years ago

Proposed Changes

Previously the check was using non-strict equality, which meant that empty string was displayed instead of 0. This can mislead users to think that no value is set while actually, for example, the federation message expiry is set to 0.

I checked other repos as well, and it always seems to be used the same way by the connection page and the shovel plugin. No other usages found.

Here is a picture of the changes on the federation page:

image

Types of Changes

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask on the mailing list. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

michaelklishin commented 4 years ago

Thank you!

michaelklishin commented 4 years ago

Backported to v3.8.x.