etsy / 411

An Alert Management Web Application
https://demo.fouroneone.io
MIT License
969 stars 112 forks source link

Configurable resolutions and states #68

Closed elvarb closed 7 years ago

elvarb commented 7 years ago

The options are hard coded into Alert.php

To have these options stored in the sqlite database and customizable would be very valuable.

kiwiz commented 7 years ago

@elvarb I don't plan on adding custom workflows at this time (though I'm happy to discuss the feature).

You can customize resolutions by modifying the Alert::$RESOLUTIONS. I'd recommend doing this via a runtime hook.

Hook::register('init.post', function() {
    Alert::$RESOLUTIONS = [
        // Custom resolutions here.
    ];
});

Doing this for states isn't possible because it's hardcoded all over the place.

elvarb commented 7 years ago

Having custom resolutions is more important I think so its fantastic that there is a workaround.

Want me to close this issue or keep it open for future reference?

kiwiz commented 7 years ago

Closing for now, may revisit for v2.