onyx

FYI: alternative Onyx :onyx: chat is at <https://gitter.im/onyx-platform/onyx> ; log can be found at <https://clojurians-log.clojureverse.org/onyx/index.html>
eelke 2018-02-26T10:45:06.000145Z

Sure I'll see what I can do

michaeldrogalis 2018-02-26T14:43:30.000609Z

@eelke If it's a huge pain, we can cut the release as is. Worth investigating, though.

eelke 2018-02-26T14:45:11.000629Z

Yeah I need just need one build with the kill button removed. That is why I made it a compiler option

eelke 2018-02-26T14:45:44.000583Z

I am not that familiar with om-next, so not sure how to best pass a run-time variable to clojurescript

eelke 2018-02-26T14:46:43.000596Z

But I can relate to your argument

michaeldrogalis 2018-02-26T14:47:30.000612Z

Okay, let's see what we come up with then.

eelke 2018-02-26T14:59:13.000745Z

ok thanks 🙂

eelke 2018-02-26T15:12:28.000244Z

As an alternative you can point me in the right direction and have a go. Would it be something like a get request from the client to the server for some app-state value?

michaeldrogalis 2018-02-26T16:12:18.000640Z

I'm not sure to be honest - front-end isn't my area.

michaeldrogalis 2018-02-26T16:12:45.000734Z

One thing we could to do to mitigate the pain it to factor out that build profile into a top level def in the project.clj

niamu 2018-02-26T16:20:51.000047Z

@eelke yeah, the basic idea is that you’d want the server to hold the environment variable so that the client can query it for whether or not the kill button should be displayed/enabled. I can look at it by tomorrow as well.

michaeldrogalis 2018-02-26T16:25:46.000230Z

Sounds good. If it ends up being a huge pain we can go with the original approach, but that idea sounds fine, too.

lucasbradstreet 2018-02-26T17:10:45.000312Z

@niamu and ideally you would check it on the back end when they kill-job, to prevent client side hacks allowing you to kill jobs. It isn’t really written to protect against its users though.

niamu 2018-02-26T17:11:32.000107Z

yeah, I’m sure I can do all of that by tomorrow. Assuming no one else beats me to it.

michaeldrogalis 2018-02-26T17:16:08.000294Z

The dashboard really could use a wash at some point. Our front-end-fu was as poor when we wrote it as it is now, ha.