spotify / cassandra-reaper

Software to run automated repairs of cassandra
235 stars 60 forks source link

Web UI #80

Closed spodkowinski closed 9 years ago

spodkowinski commented 9 years ago

I took the liberty to implement a web interface to interacting with the REST API. It can be found at https://github.com/spodkowinski/cassandra-reaper-ui

The PR will enable to copy the web parts to src/main/resources and make it part of the build so it can be served directly from the reaper server. See UI installation instructions for details.

The cross-origin settings are required to call the rest api from a different development server. For me its fine to just use a system property flag for that, so I didn't want to go the whole way to add it to the config. But it should be togglable one way or another for security reasons.

rzvoncek commented 9 years ago

Hello,

Finally got to check out the web UI. It looks very nice!

In #81, we're adding the possibility to abort repair runs. We're doing this because we concluded that we don't want to delete stuff from Reaper's DB, ever. We won't remove the DELETE endpoints, especially now when your web UI uses them. At most, we'll make their availability optional, but that's for later.

In the meantime, would it be possible to extend this UI by the abort call? It could fit quite nicely among the START and DELETE buttons. It should also be quite straightforward to implement because it works exactly like starting a run.

spodkowinski commented 9 years ago

I've now created a abort button which will alternate with the delete version. Delete will now require abort after the run has already been started and will basically serve to cleanup the overview list.