faustinoaq changed the topic of #amber to: Welcome to Amber Framework community! | https://amberframework.org | Developer happiness, productivity and bare metal performance | GH: https://github.com/amberframework | Docs: https://docs.amberframework.org | Gitter: https://gitter.im/amberframework/amber | IRC Logger: https://irclog.whitequark.org/amber | Amber::Server.start
snsei has joined #amber
snsei has quit [Ping timeout: 252 seconds]
snsei has joined #amber
snsei has quit [Ping timeout: 252 seconds]
snsei has joined #amber
<FromGitter> <robacarp> @anamba strange, why use passenger at all? That sounds like a textbook application for a docker cluster — kube or ECS
snsei has quit [Remote host closed the connection]
snsei_ has joined #amber
snsei_ has quit [Remote host closed the connection]
snsei has joined #amber
<FromGitter> <anamba> @robacarp docker in production still feels kinda dicey to me, containers can kinda interact, particularly if you use the host filesystem. the apps i host together on a server generally aren't related to each other and shouldn't have to trust each other. i can isolate them very, very cleanly with my setup.
<FromGitter> <anamba> i do run docker in production when it's convenient... but i run one app per server.
snsei has quit [Remote host closed the connection]
_whitelogger has joined #amber
snsei has joined #amber
<FromGitter> <wontruefree> I am trying to save postgres json data. Is there anyway granite can do that?
snsei has quit [Remote host closed the connection]
snsei has joined #amber
snsei has quit [Remote host closed the connection]
snsei has joined #amber
snsei has quit [Remote host closed the connection]
snsei has joined #amber
snsei has quit [Remote host closed the connection]
snsei has joined #amber
snsei has quit [Remote host closed the connection]
snsei has joined #amber
snsei has quit [Remote host closed the connection]
snsei has joined #amber
snsei has quit [Remote host closed the connection]
snsei has joined #amber
snsei has quit [Remote host closed the connection]
snsei has joined #amber
snsei has quit [Ping timeout: 252 seconds]
<FromGitter> <wontruefree> also is there any way to do nested resources?
feepbot has quit [Ping timeout: 268 seconds]
feepbot has joined #amber
<FromGitter> <cpunion> Hi, how to declare a field with default value in Granite?
<FromGitter> <Blacksmoke16> @cpunion i dont think that is supported atm in the syntax like `field name : String = "Jim"`
<FromGitter> <Blacksmoke16> however you could prob use a callback hook to set them
<FromGitter> <Blacksmoke16> @wontruefree custom types is still an outstanding issue
<FromGitter> <Blacksmoke16> JSON data *should* be fine? May have to set the crystal type to String tho. Would have to try it and see how it goes. I dont remember off hand
_whitelogger has joined #amber
snsei has joined #amber
snsei has quit [Remote host closed the connection]
<FromGitter> <ilanusse> Hey guys!
<FromGitter> <ilanusse> New to Crystal here, thought I'd learn by helping out with open source
<FromGitter> <ilanusse> Are there any starter-level issues you guys need a hand with?
<FromGitter> <wontruefree> thanks @Blacksmoke16 seems like I am going to use crecto for now
<FromGitter> <wontruefree> they are missing features but they have some I need
<FromGitter> <Blacksmoke16> What's your biggest blocking reason
<FromGitter> <Blacksmoke16> ?*
<FromGitter> <Blacksmoke16> @wontruefree id be interested in hearing what those features are, both what's missing and what we offer
<FromGitter> <wontruefree> the biggest reason is json support
<FromGitter> <Blacksmoke16> what would your expected behavior of that be? set the type of a column as `JSON::Any` and it returns you `JSON::Any`?
<FromGitter> <wontruefree> that would be my expected behavior
<FromGitter> <wontruefree> it is great that amber supports crecto
<FromGitter> <wontruefree> there are some things that might need to be updated
<FromGitter> <wontruefree> I am looking into makeing a PR
<FromGitter> <wontruefree> there are things like the initializer is out of date
<FromGitter> <Blacksmoke16> really atm that would kinda work, just would return a string of the JSON and you just call `JSON.parse` on it
<FromGitter> <wontruefree> I could write wrappers for the setters and getters
<FromGitter> <wontruefree> all the scaffolds are off
<FromGitter> <wontruefree> just seems unsupported
<FromGitter> <wontruefree> I was trying and there where some errors that I was geting around but where causing pages to throw 500s
<FromGitter> <Blacksmoke16> would have to set type of column as string at least, im not sure on the amber/migration side of things
<FromGitter> <wontruefree> there is a feature set or crecto and some of them are hard to get around
<FromGitter> <wontruefree> just some unimplemented thing
<FromGitter> <wontruefree> well both crecto and granite I have to make custom migrations
<FromGitter> <wontruefree> which is also a pain
<FromGitter> <wontruefree> but understandable
<FromGitter> <Blacksmoke16> i use micrate,
<FromGitter> <Blacksmoke16> have to write the raw sql but then you get like up/down and such
<FromGitter> <wontruefree> yeah it is not bad
<FromGitter> <wontruefree> I like it
<FromGitter> <wontruefree> I have to refresh my memory of how to write constrants and stuff
<FromGitter> <wontruefree> I cannot find the list of features now
feepbot has quit [Ping timeout: 250 seconds]
feepbot has joined #amber
snsei has joined #amber
<FromGitter> <ilanusse> I was looking into this
<FromGitter> <ilanusse> Are there any JS tests? How do I know the version bump won't break anything?
<FromGitter> <Blacksmoke16> im not sure, not too familiar with the amber side of things
snsei has quit [Remote host closed the connection]
snsei has joined #amber
<FromGitter> <Blacksmoke16> @robacarp yea this works `DataPoint.where(:value1, :lt, 1000).min(:value1, Int32)`
<FromGitter> <Blacksmoke16> `SELECT MIN(value1) FROM datapoints WHERE value1 < $1 GROUP BY value1` 👌
<FromGitter> <Blacksmoke16> going to add a spec for that just because