These are chat archives for orbitjs/orbit.js

6th
Jan 2016
Oliver Searle-Barnes
@opsb
Jan 06 2016 00:47
@dgeb I’ve created a 0.8.x milestone for ember-orbit https://github.com/orbitjs/ember-orbit/milestones/0.8.x
seems like converting to an ember-cli addon is next on the list
Dan Gebhardt
@dgeb
Jan 06 2016 14:53
@opsb great - thanks for creating that milestone and for getting started on the addon conversion
also, I'll consider the query builder options today
Oliver Searle-Barnes
@opsb
Jan 06 2016 19:34
@dgeb I’m wading into the dependency quagmire :) I’ve got this error in ember-orbit
Error: Could not find module 'orbit-common/oql/expressions' imported fromember-orbit/model`
Do you remember how modules get packaged up into orbit-common.amd.js ?
I see https://github.com/orbitjs/orbit.js/blob/master/Brocfile.js#L22 which I’d expect to include orbit-common/oql/expressions
actually it looks like the module is exported correctly, will dig into what’s going on in ember-orbit
Dan Gebhardt
@dgeb
Jan 06 2016 19:41
@opsb ok, keep me posted
Oliver Searle-Barnes
@opsb
Jan 06 2016 20:52
@dgeb so that came together fairly well, tests are green locally.
Dan Gebhardt
@dgeb
Jan 06 2016 20:52
@opsb you're on a roll :D
Oliver Searle-Barnes
@opsb
Jan 06 2016 20:53
FYI, I used $ ember addon ember-orbit and then did a manual merge of the generated files into ember-orbit so our conventions should be pretty much spot on.
Dan Gebhardt
@dgeb
Jan 06 2016 20:53
sounds good :+1:
seems like the query builder interface is our last big TBD for this release
unless you want to punt until the next release, and just support query and liveQuery
Oliver Searle-Barnes
@opsb
Jan 06 2016 20:56
I think it makes sense to get a release together first, just to pull things together.
Dan Gebhardt
@dgeb
Jan 06 2016 20:56
sounds good to me
alright - I'll get things in order and finish my tasks in the next couple days
then merge to master and release
Oliver Searle-Barnes
@opsb
Jan 06 2016 20:57
yeah, great
I’ll add an issue for the query builder and add it to the next milestone
Dan Gebhardt
@dgeb
Jan 06 2016 20:57
perfect - thanks
Oliver Searle-Barnes
@opsb
Jan 06 2016 20:58
the other two items that I think will round things out are optimistic ui and lazy loading handling
not sure how they’ll fit with the milestones yet though, depends how frequent our releases are now
Dan Gebhardt
@dgeb
Jan 06 2016 20:59
I'd like to release more often after this
Oliver Searle-Barnes
@opsb
Jan 06 2016 20:59
sure
Dan Gebhardt
@dgeb
Jan 06 2016 20:59
and get both those items done before 1.0
Oliver Searle-Barnes
@opsb
Jan 06 2016 20:59
yeah, definitely
Dan Gebhardt
@dgeb
Jan 06 2016 20:59
I don't really care how many minor releases it takes until then
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:00
ok, sounds good
Dan Gebhardt
@dgeb
Jan 06 2016 21:00
e.g 0.15, 0.16
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:00
yeah
would be good to get the release process automated
Dan Gebhardt
@dgeb
Jan 06 2016 21:00
no doubt
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:00
ideally travis would take care of that on every push
(the intermediate releases are handy when developing ember-orbit)
Dan Gebhardt
@dgeb
Jan 06 2016 21:01
yeah, that works for bower
we need to consider npm as well
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:02
yeah, I also noticed that ember can consume es6 modules directly via bower
I’m not sure what the deal is with npm
Dan Gebhardt
@dgeb
Jan 06 2016 21:02
yeah, and it's not a big deal to push and tag every canary build so we can fetch with bower
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:03
maybe the main repo can be be an npm package and you just import es6 directly
Dan Gebhardt
@dgeb
Jan 06 2016 21:03
I think we just need to manually push every minor/patch release to npm
hmmm
I will talk to some folks who know best practices with npm
I'm still a bit fuzzy
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:04
yeah, I’m not sure there’s a clear picture with es6 yet
ideally though we can consume the es6 modules directly in both bower and npm
Dan Gebhardt
@dgeb
Jan 06 2016 21:04
yes
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:04
then we don’t need a build step to publish
Dan Gebhardt
@dgeb
Jan 06 2016 21:05
I suppose we don't need to support other module formats
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:05
interop with es6 must be getting pretty good
Dan Gebhardt
@dgeb
Jan 06 2016 21:05
although we need to consider jsfiddle/jsbin users
kicking the tires
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:06
pretty sure they support es6 now
Dan Gebhardt
@dgeb
Jan 06 2016 21:06
cool
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:06
(not sure about the modules to be fair)
Dan Gebhardt
@dgeb
Jan 06 2016 21:06
I've been dragging my feet waiting for this :P
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:06
ha
Dan Gebhardt
@dgeb
Jan 06 2016 21:06
it's so ridiculous
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:07
yeah, it really is a torture
we had a failure on zapnito today because transient dependency had been updated
bundler.js would be so welcome
Dan Gebhardt
@dgeb
Jan 06 2016 21:07
oof
amateur hour has gone on long enough
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:07
yeah
I’m surprised the ember guys haven’t had a stab at it
they’ve got enough of an ecosystem to get some traction
Dan Gebhardt
@dgeb
Jan 06 2016 21:08
well, wycats was very close to doing so a few years back
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:08
ha
figures
just time I guess
the ember team always feels stretched a bit thin
Dan Gebhardt
@dgeb
Jan 06 2016 21:09
heh, I can relate ;)
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:09
ha
yeah, hopefully we can get a little traction this year with orbit and get some more hands
Dan Gebhardt
@dgeb
Jan 06 2016 21:10
I think we can, esp now that I'm joining the ember core team
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:10
yeah, that will help for sure
I think having a clear roadmap will be important
Dan Gebhardt
@dgeb
Jan 06 2016 21:10
yeah
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:11
a lot of orbit’s advantages are architectural at the moment, need to do some work to bring those to the end user
Dan Gebhardt
@dgeb
Jan 06 2016 21:12
I have my first ember face-to-face meeting in 10 days - hopefully I'll get a demo of ember-orbit ready by then
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:12
nice, yeah, it seems doable
Dan Gebhardt
@dgeb
Jan 06 2016 21:12
I know that many on the ember-data team are open to working with orbit, but have just been waiting for it to stabilize
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:13
right, that’s good to know
Dan Gebhardt
@dgeb
Jan 06 2016 21:13
I think the next few months will be important
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:13
I think the main grey area at the moment is how we’re going to co-ordinate multi-source queries
yeah, for sure
actually, I’ve been wondering about something like
store.query({memory: fineGrainedQuery, rethinkdb: coarseGrainedQuery})
so both would be expressed in oql
this would pave the way for a more intelligent process where the coarseGrainedQuery was derived automatically by simplifying the fineGrainedQuery.
Dan Gebhardt
@dgeb
Jan 06 2016 21:15
yeah, I think we need oql as a common query language
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:15
then you’d end up with just:
store.query(fineGrainedQuery)
Dan Gebhardt
@dgeb
Jan 06 2016 21:16
right
it is probably best for us to build some real world examples that query each source directly
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:17
chatty-web should be a good example for memory+rethinkdb
Dan Gebhardt
@dgeb
Jan 06 2016 21:17
often a query doesn't just succeed or fail binarily
sounds good
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:17
I’m waiting to see what’s happening with rethinkdb’s fusion project
Dan Gebhardt
@dgeb
Jan 06 2016 21:18
yeah? I'm getting more interested in rethinkdb the more I read about it
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:18
sounds like the api is going to be more along the lines of meteor, you have named subscriptions on the server and permissions are handled at that level
so your query logic is kept server side, and your client just chooses which streams to subscribe to
Dan Gebhardt
@dgeb
Jan 06 2016 21:19
interesting
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:19
can’t decide if I prefer it or not (as opposed to just defining queries in the client)
it does allow for more optimisation of the queries though
Dan Gebhardt
@dgeb
Jan 06 2016 21:20
it seems potentially limiting, like they're trying to control complexity
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:21
yeah, my concern is authorization scopes, a lot of the query criteria will be around what an individual user has access to
Dan Gebhardt
@dgeb
Jan 06 2016 21:21
those have to be really fine-grained to be effective
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:21
if the named queries can use the currentUser as criteria then it could work
have to wait and see, they’re opening the fusion project up in the next couple of weeks I think
Dan Gebhardt
@dgeb
Jan 06 2016 21:22
any good articles on fusion?
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:22
I’ve just had a couple of tidbits fed to me by @ha1331
Dan Gebhardt
@dgeb
Jan 06 2016 21:24
:)
well, I'm sure there will be plenty of writeups soon
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:24
yeah, it sounds like they have high hopes for the project
Dan Gebhardt
@dgeb
Jan 06 2016 21:25
I hope orbit can be promoted as a client
glad you're working on that source
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:26
yeah, I think they’re pretty keen
Dan Gebhardt
@dgeb
Jan 06 2016 21:26
nice - I'm sure it will be good for them to have first class support in ember via orbit
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:26
obviously I’ve had that use case in mind throughout so we should have good alignment
Dan Gebhardt
@dgeb
Jan 06 2016 21:27
:+1:
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:29
What do you have on your todo list at the moment? I think the main things are the hybrid evaluator and the somewhat related store.query() implementation for ember-orbit (this is related to the identity map toRecord etc.).
Dan Gebhardt
@dgeb
Jan 06 2016 21:30
sounds right
still have to catch up somewhat as well
will be starting tonight or tomorrow morning
Oliver Searle-Barnes
@opsb
Jan 06 2016 21:59
:+1: