Closed crejb closed 7 years ago
It does what it suppose to do which is acceptable.
But for the future, this isn't a good pattern to follow when adding new features and could set a bad precedent for future contributors. The home screen shouldn't be a list of if statements. Ideally, any reusable parts should be a shared directive.
Indeed, can be tempting to just modify the existing file.
I'm thinking we should remove the ability to remove all queues and topics from the dead letter screen as you would be removing stuff you can't see. What do you think @crejb and @jonyeezs ?
@jonyeezs understood about SRP and componentising, was going for a more YAGNI approach. As per @drewfreyling 's suggestion, I've removed the action buttons so it makes more sense now to separate the page as there is not much shared code now. Still sharing the same controller though.
@crejb fair enough. Just something to keep in mind.
LGTM
An alternative to https://github.com/GlobalX/SbManager/pull/79 is to add a new route '/deadletters' to show only the queues/topics containing deadletters. The home screen is not changed. (Good suggestion from @drewfreyling )