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
<FromGitter> <robacarp> Nice! That’s a good syntax
<FromGitter> <cpunion> @Blacksmoke16 Thanks!
<FromGitter> <Blacksmoke16> np
<FromGitter> <Blacksmoke16> doesnt seem to be returning the correct value tho... that group by is messing it up,
<FromGitter> <Blacksmoke16> i just removed order by/group by from query
<FromGitter> <Blacksmoke16> dont need that for scalar value
<FromGitter> <Blacksmoke16> how does the `:in` operator work?
<FromGitter> <Blacksmoke16> do you give it an array i assume?
<FromGitter> <Blacksmoke16> we need to add more specs for that stuff
<FromGitter> <Blacksmoke16> https://github.com/amberframework/granite/pull/308 is ready for review now
snsei has quit [Remote host closed the connection]
_whitelogger has joined #amber
feepbot has quit [Ping timeout: 246 seconds]
feepbot has joined #amber
<FromGitter> <proyb6> Team, what do you think about Codacy for a code quality badge for your web framework? ⏎ https://www.codacy.com/product
<FromGitter> <proyb6> It's also free for Open Source project
<FromGitter> <proyb6> Right now, I wish if there are chance for some of the authors could come together and discuss if they are interested.
<FromGitter> <Blacksmoke16> whats it do?
snsei has joined #amber
<FromGitter> <valamorgon> for the first time I upgraded my crystal and amber without a single problem
<FromGitter> <valamorgon> amazing
<robacarp> \o/
<FromGitter> <Blacksmoke16> do we have any idea on how we would like fixtures to work?
<FromGitter> <Blacksmoke16> atm im just going off ActiveRecord functionality
<FromGitter> <Blacksmoke16> tl;dr, adds a class method on models to load/save that model's fixtures
<FromGitter> <Blacksmoke16> adds a class method to Granite to load *all* fixtures
<FromGitter> <Blacksmoke16> and adds a class method to granite to load a specific obj from a fixture
<FromGitter> <Blacksmoke16> i.e. ⏎ ⏎ ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5c058d2de8274925259310a8]
<FromGitter> <Blacksmoke16> ```code paste, see link``` [https://gitter.im/amberframework/amber?at=5c058d4099ad1556dbff7e2b]
<robacarp> here's my question: why not have a class and static generator methods which a user defines and then calls to generate test data
<robacarp> the activerecord fixtures use yaml and it's fine for the first 30% of your test objects. But after that it becomes quite limiting
<FromGitter> <Blacksmoke16> hmm
<FromGitter> <Blacksmoke16> could do both?
<FromGitter> <Blacksmoke16> have like a class `generate` method included into the models that can be ran in addition to fixtures
<FromGitter> <Blacksmoke16> like fixtures being easy setup and usage, but can use generate for more custom/complex stuff?
<robacarp> I don't think I'd want the generate method to be in the model itself, but in a generate namespace: `Generate.user(username: rob); Generate.job(title: world commander)` etc
<FromGitter> <ilanusse> Sth like FactoryBot?
<robacarp> factorybot is a neat DSL, but it is almost as limiting as vanilla fixtures
<FromGitter> <ilanusse> 👌
<FromGitter> <Blacksmoke16> hmm