@Undo I think i've refactored apigetpost to return a Post object, but i have to check...
this'll be interesting heh
@Undo github.com/Charcoal-SE/SmokeDetector/tree/postdata_refactor may like your attention. Basically, replaces PostData objects with a Post object, since they have mostly the same fields. Also gets rid of a heck of a lot of your assignment statements by creating a dict to struct the post object for the return xD.
this needs testing though 'cause it goes and pokes things elsewhere. Including in the metasmoke handlers.
@Undo that removes the PostData class and having to recreate a dict for an api_response from post_data objects. Up to you for review and consideration since it needs checked either way
OK. I don't want to mess with it just now, but I'm making a Refactor: Objects project on the repository, and then adding issue items to it. We can track refactoring efforts there :P
At least this way we can start tracking what we do or don't want to refactor
@quartata: It seems this is your first time sending feedback to SmokeDetector. Make sure you've read the guidance on your privileges, the available commands, and what feedback to use in different situations. NOOB
although it'd be good if some people who aren't using it could close any metasmoke tabs they have open, otherwise the log is just gonna be full of websocket logs
@Undo Since currently only parts of the post are passed in to the rule I was going to add a 'whole_post' key that just gives the post object to the rule, is that OK?
I'm not proposing removing functionality from MS, @angus. I'm proposing pinging Redunda in addition to metasmoke; we need to keep pinging metasmoke anyway for a couple other reasons.
@ArtOfCode so in other words, if we go ahead with this, MS will still show the status, you can still initiate a failover via MS, MS will still initiate failovers automatically, etc? Just Redunda will also do those things
@YvetteColomb I don't know if it's on-topic either, but I'm pretty sure it's not spam. The title looks sort of spammy, but the body does not, and neither do the OP's edits to the tags.
@Art I've submitted a Redunda PR for data storage.