clojure

New to Clojure? Try the #beginners channel. Official docs: https://clojure.org/ Searchable message archives: https://clojurians-log.clojureverse.org/
Eugene Koontz 2020-11-08T14:45:38.232800Z

I had the same problem (doing something slow and expensive that should only be done once per process) and came up with the following solution: https://github.com/ekoontz/menard/blob/master/src/menard/nederlands.cljc#L242

Eugene Koontz 2020-11-08T14:48:58.233200Z

and then every usage of the model calls (load-model) , although the actual loading is only done once : subsequent calls to load-model simply deferences the ref

piyer 2020-11-08T16:29:43.233900Z

I am trying to setup database migration, any pointers on what to use?

borkdude 2020-11-08T16:31:23.234500Z

@munichlinux Migratus is pretty great. https://github.com/yogthos/migratus. There's even a binary version of it here: https://github.com/leafclick/pgmig

piyer 2020-11-08T16:33:17.234900Z

Nice! Thank you

2020-11-08T16:44:46.236800Z

Is JIRA ok at the moment? Specifically I was looking at https://clojure.atlassian.net/browse/DXML - when I click on any of the listed issues it does a couple of cycles of reloading the webpage and lands back on the top issue again. This is on Firefox/Mac.

2020-11-08T16:45:04.237400Z

If it is a bug, who should I report it to? Is it Atlassian?

alexmiller 2020-11-08T16:45:12.237700Z

It’s a jira bug and I filed it

alexmiller 2020-11-08T16:45:32.238300Z

If you click on an issue number that should work

2020-11-08T16:45:52.238600Z

OK, great, thanks.

alexmiller 2020-11-08T16:46:16.239200Z

It’s clicking on issues in a filter list while not logged in that doesn’t work

2020-11-08T16:48:46.240400Z

Actually, the reason I was looking at data.xml's info was to see if it's heading towards a 1.0 release like other libs. It looks a bit forlorn sitting at 0.0.8

1☝️
2020-11-08T16:56:11.241Z

@borkdude OK, 31st October, I see it! Thanks.

borkdude 2020-11-08T17:00:51.241100Z

I actually meant: yeah, I thought the same

alexmiller 2020-11-08T17:51:02.241900Z

You should really use the latest alphas

2👍
afhammad 2020-11-08T18:55:25.242Z

Might not be what you're looking for, but i've recently used https://github.com/amacneil/dbmate on a project as migrations tend to run outside the application and didn't need it to integrate with my Clojure service.

afhammad 2020-11-08T18:56:45.242300Z

all you need is to set is DATABASE_URL env var if you're ok with the defaults.

Louis Kottmann 2020-11-08T19:00:29.242600Z

The big advantages of gitlab for me is the easy self hosting, and the built-in CI

Louis Kottmann 2020-11-08T19:00:59.242800Z

You just give it a runner docker image to run as the CI worker, and off you go

Louis Kottmann 2020-11-08T19:02:00.243Z

I have used many other alternatives (I am a DevOps and a clojurist) and this is it for me

2020-11-08T20:26:39.243400Z

Heh. I thought, "Look up and you will be enlightened" 😀

jmckitrick 2020-11-08T23:57:03.243800Z

Another +1 for migratus and luminus