<FromGitter>
<drujensen> @eliasjpr time to spin up an amber box and do the same. ;-)
wontruefree has quit [Ping timeout: 245 seconds]
_whitelogger has joined #amber
feepbot has quit [Ping timeout: 240 seconds]
feepbot has joined #amber
<FromGitter>
<eliasjpr> Definitely we have to put amber to the test
<FromGitter>
<grig191> Guys please help!
<FromGitter>
<grig191> Currently im running amber as json API and separate vue frontend, but I have troubles with CORS
<FromGitter>
<grig191> Previously, CORS pipe was disabled by me, but since browsers make OPTIONS requests, I enabled it
<FromGitter>
<grig191> But now there is another problem: in dev environment, vue is at localhost:8081 and amber is at localhost:3000, so it is different domains
<FromGitter>
<grig191> in result i have this: ⏎ `No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8081' is therefore not allowed access.`
<FromGitter>
<grig191> How can I allow specific origin domains?
<FromGitter>
<damianham> I think you are going about it arse over tit
<FromGitter>
<damianham> load the app by visiting a home page at localhost:3000 and embed vue or any other frontend DOM rendering framework into the home page
<FromGitter>
<eliasjpr> We are considering enhancing this functionality and more detail will help to shed some light for an approach. Some of the things you can please elaborate on. ⏎ ⏎ 1) Examples of nested params in request ⏎ 2) Expected parsed output for nested params ⏎ 3) How you plan to use nested params ... [https://gitter.im/amberframework/amber?at=5b992a02a2343433d13a957a]
<FromGitter>
<grig191> Nested params is great feature!
<FromGitter>
<eliasjpr> yes it is a high requested feature and in order to implement it we would have to settle into some conventions
<FromGitter>
<eliasjpr> I would like to suggest to use a format of `user.address.city=New York&user.address.address=West 28 St`
<FromGitter>
<eliasjpr> I think the `.` notation is simple and clean
<FromGitter>
<damianham> it would be a POST surely?
<FromGitter>
<damianham> key thing there is that nested array has either id for existing associated records or "" for new
<FromGitter>
<damianham> if an existing record is missing in the posted params array then delete it
<FromGitter>
<damianham> I think that is a better option than "post_attributes"=>{"0"=>{"title"=>"jshdgj","body"=>"ahsgaj","_destroy"=>""}}
wontruefree has joined #amber
<robacarp>
automagic deleting of records because they aren't present shouldn't be a default
<robacarp>
an option, sure, but that seems like it should live in the ORM
<FromGitter>
<valamorgon> I've just upgraded my crystal to 26 and upgraded my amber to latest using shards update
<FromGitter>
<valamorgon> when I make amber w I got this
<FromGitter>
<valamorgon> Unhandled exception: Couldn't parse (Array(String) | Bool | String) at line 11, column 5 (YAML::ParseException) ⏎ from /usr/lib/crystal/yaml/nodes/nodes.cr:30:9 in 'raise' ⏎ from /usr/lib/crystal/yaml/from_yaml.cr:203:3 in 'new' ⏎ from /usr/lib/crystal/yaml/from_yaml.cr:113:28 in 'new' ⏎ from lib/amber/src/amber/environment/settings.cr:49:5 in 'initialize' ...
<FromGitter>
<robacarp> yeah. does that still break?
<FromGitter>
<eliasjpr> why that skip line breaks?
<FromGitter>
<valamorgon> now I have this error:
<FromGitter>
<valamorgon> Missing yaml attribute: skip at line 5, column 3 (YAML::ParseException) ⏎ Failed to raise an exception: END_OF_STACK
<FromGitter>
<robacarp> hm, what version of amber are you on?
<FromGitter>
<valamorgon> 1) 9.0
<FromGitter>
<robacarp> hm, same here
<FromGitter>
<valamorgon> btw are you guys running 26.1?
<FromGitter>
<valamorgon> I m running 26
<FromGitter>
<valamorgon> it is the latest version from pacman
<FromGitter>
<robacarp> I am running 26.1, yeah
<FromGitter>
<robacarp> that might be causing it, but I'm not sure
<FromGitter>
<robacarp> I upgraded amber to 0.9 at the same time as crystal to 0.26.1 (skipping 0.26)
<FromGitter>
<valamorgon> okay just to make sure I will manually upgrade
<FromGitter>
<valamorgon> I ve just upgraded to 26.1 also
<FromGitter>
<valamorgon> then delete cache
<FromGitter>
<valamorgon> then shards update
<FromGitter>
<valamorgon> still have this
<FromGitter>
<valamorgon> Missing yaml attribute: skip at line 5, column 3 (YAML::ParseException) ⏎ Failed to raise an exception: END_OF_STACK
<FromGitter>
<eliasjpr> can you add the skip back
<FromGitter>
<eliasjpr> without `-`
<FromGitter>
<valamorgon> if I add skip without - I got this
<FromGitter>
<valamorgon> Expected sequence, not YAML::Nodes::Scalar at line 10, column 8 (YAML::ParseException) ⏎ Failed to raise an exception: END_OF_STACK
<FromGitter>
<eliasjpr> one sec
<FromGitter>
<eliasjpr> im going to try it
<FromGitter>
<eliasjpr> @valamorgon this app used to run in the previous version of amber?
<FromGitter>
<valamorgon> yes
<FromGitter>
<valamorgon> I was in crystal 25.1 and amber 8
<FromGitter>
<valamorgon> I install the same app on two device one of them arch linux other xubuntu
<FromGitter>
<valamorgon> both of them was working
<FromGitter>
<valamorgon> now trying to upgrade arch