You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 23, 2018. It is now read-only.
@ksnyde I'm going to use this as a spot to jot down some notes as I go through code. I'm probably about to have a few days where I won't be able to act on these things, so I'd like to get my thoughts down so you can comment and decide if you want to keep contributing or if the approach I want is too at odds for you.
Some high level notes before I get into specifics:
I want there to be two distinct adapters, fetch and watch. Mixing them together makes things weird and I believe there is a reason they are separated in Horizons API. Somethings don't need to be real-time so it shouldn't be forced. But it should be easy enough that just swapping adapters will make it automatically just work.
The adapter should handle the connecting of Horizon and the store, this is the intent of the adapter and right now I feel like too much of this logic is being pulled into the service.
Following with this, I think the service should also stay relatively lightweight and not try to do too much. Part of the reason that this is not called ember-cli-horizon-adapter is that I would like this to be useful to people who just want to open a connection and not include any of the ember-data pieces. Having the service do too much bookeeping and cleanup of its own is going to lead to restricting the usage of that service.
@ksnyde I'm going to use this as a spot to jot down some notes as I go through code. I'm probably about to have a few days where I won't be able to act on these things, so I'd like to get my thoughts down so you can comment and decide if you want to keep contributing or if the approach I want is too at odds for you.
Some high level notes before I get into specifics:
ember-cli-horizon-adapteris that I would like this to be useful to people who just want to open a connection and not include any of the ember-data pieces. Having the service do too much bookeeping and cleanup of its own is going to lead to restricting the usage of that service.