Jibuti: i dont think that is overkill, if you do it smart. there is a balance between managing a bunch of components, when it might be easier to throw in a few bount attributes/classes instead?
StevenNunez has quit
SaladFork
Jibuti -- i think it's a good idea
StevenNunez joined the channel
StevenNunez has quit
Jibuti
Grapho SaladFork thanks, so i go for it
StevenNunez joined the channel
wenincode
If it stops code duplication then it is a plus in my books - for the most part Jibuti
:)
ChALkeR
locks: I was answering to <Grapho> are they poorly maintained is that why they are causing cli issues?
locks
oh sorry
ChALkeR
Btw, you could also add .idea to the npmignore
locks
5:02 PM <Jibuti> i thinking about to make a component out of each element (if it repeats more then 2 times)
I have plenty of components that I only use in a single place
Grapho
same
ChALkeR
.idea does not cause any issues, but it's present in 64 packages.
locks
ChALkeR: that's on you though
ChALkeR
locks: ?
edwinvdgraaf has quit
locks
ChALkeR: like, it's not ember-cli's responsibility to ignore .idea
ChALkeR
Ok then. Not my problem =).
kellysutton joined the channel
locks
you should add it to your own npmignore though
pixelhan_ joined the channel
ChALkeR
I do not use emberjs.
locks
and yeah, less junk in the repos would certainly be great
ChALkeR
I just noted that .idea dir is commonly present in ember-*** packages.
locks
I'm pretty sure it's a common pattern in non-ember packages too
that's all I'm saying
ChALkeR
And if .npmignore is created by emberjs-cli, then it could be added there by default.
momomomomo joined the channel
pixelhandler has quit
non-ember packages do not usually have a default npmignore =)
locks
like swp files and DS_Store in OS X
Jibuti
+locks are your components in separate folders like form/input, form/select, page/header, table/row, table/cell etc...? there was a discussion on the cli github page about this. has this been implemented yet? (now i use simple prefixes form-select, table-row etc...)
SaladFork
Jibuti -- you can definitely nest components today
on stable
locks
ChALkeR: does that mean that all the garbage goes into the package?
SaladFork
though a hyphen is still required
momomomomo
Morning all - is there a way to add a computed property to a Model which shows the length of an association - only counting the items which have been saved (have ids)? The only way I can think of at the moment is a this.get('myChildren').map(...) mapping for those with ids
SaladFork
aka
Bear10 joined the channel
Bear10 has quit
locks
component names need to be hyphenated
SaladFork
form/form-input or such
locks
like SaladFork mentioned
ChALkeR
locks: Why are .bowerrc and .travis.yml included by default? =)
poze has quit
Jibuti
SaladFork +locks like this: my-table/my-cell or like this: table/my-cell ?
I want to see if there are any associated models (that have already been saved) present - is there a more idiomatic way than just mapping the response from this.get('Chidlren')?
kellysutton has quit
StevenNunez joined the channel
Jibuti
SaladFork ok so one hyphen is enough ;)
SaladFork
Frozenfire_ -- bind-attr was the old way of binding to attributes (one of which may be style)
Zaxnyd joined the channel
Guest2644 is now known as InezK_away
locks
Frozenfire_: if you're bind-attr style yes
SaladFork
Frozenfire_ -- this is related to, but a separate concern than escaping style strings
akshayrawat has quit
Frozenfire_
SaladFork: we only ever bind-attr class so will that count?
SaladFork
Jibuti -- yes, and it must be in the last "segment" of the path (the component name)
InezK_away is now known as Guest52039
Jibuti
SaladFork ok thanks
SaladFork
Frozenfire_ -- Yes, though mind you bind-attr is deprecated
if you just bind-attr class you don't have to worry about escaping
ChALkeR
locks: Actually I don't care even about the `tmp` dirs in `emberjs-**` packages.
is there a tool or design pattern for this, or should i roll it myself?
SaladFork
SeanLazer -- ember-cli-buffered-proxy
SeanLazer
SaladFork: perfect, thanks!
locks
ChALkeR: thanks for filing the issue though
thankfully it's already patched
woodbeen joined the channel
Akii has quit
ChALkeR
It's sad that noone cares about those 80+ packages =).
greldo has quit
patrickod joined the channel
shinnya joined the channel
Grapho
Vaporware ™
CamonZ joined the channel
basz joined the channel
Frozenfire_
SaladFork: Thank you, sorry got caught up in reading :)
SaladFork
np :)
slindberg joined the channel
wookiehangover joined the channel
akshayrawat joined the channel
akshayrawat has quit
bmac has quit
bmac joined the channel
themouette has quit
StevenNunez joined the channel
emocakes joined the channel
roddy__ has quit
roddy_ joined the channel
shama joined the channel
andymocahey joined the channel
roddy_ has quit
ryanRT1 joined the channel
roddy_ joined the channel
codeurge joined the channel
artto_ has quit
wookiehangover joined the channel
artto joined the channel
Zaxnyd has quit
thedeeno joined the channel
komlev joined the channel
momomomomo
Hey all - one more question: When a request comes in to my API for a Parent, the API responds { id: ..., info: .. children_ids: [...] }; however, when there are no children, children_ids: is not present. When making a request in the Parent show route to `this.get('children')`, Ember sends out a request to my API's Children index endpoint, but with no 'children_ids' attribute, which would return *all* children - but I have it 400in
right now, because that's a bad request. Is there a way to have ember recognize that that's a request which should never occur unless it includes either the Parent ID or the Children IDs as expecteD?