bolshakov / stoplight-admin

A simple administration interface for the stoplight gem.
http://bolshakov.github.io/stoplight-admin
MIT License
18 stars 18 forks source link

Green Lights don't show in the UI if there's no failures #29

Open dvdoliveira opened 4 years ago

dvdoliveira commented 4 years ago

Hello! 👋 We just implemented stoplight-admin to manage Stoplight circuit breakers and noticed that, unless the circuit gets at least one failure or is locked, the UI will not show it in the list. Once the first failure happens then it shows.

We are wondering if this is by design or any limitation of Stoplight gem.

The use case for seeing these lights in the UI is that we might want to manually trip the circuit to red as a prevention measure and currently, it's not possible. The only way we can do that is through Redis or Rails console and it would be great to be able to do it through the UI.

If this is a feature that other people can use, I'm happy to investigate and create a PR for it.

bolshakov commented 1 year ago

We use Redis to store information about failures. When an error happens, we save it into Redis, and the UI can pick it up and display it. Unfortunately, without errors, there is nothing to show.

This is quite a simple design decision that does not require fancy initialization and registering circuit breakers. Thus, this is a limitation driven by design :)

If you have ideas how to improve Stoplight, consider filing a ticket here https://github.com/bolshakov/stoplight/issues/new