mediasuitenz / tech-stack

Media Suite's evolving tech stack
6 stars 0 forks source link

RFC: non-crud operations: Is ember-ajax working for us? #13

Closed pnw closed 7 years ago

pnw commented 8 years ago

Questions:

Is ember-ajax working for us?

Current ember-ajax paradigm:

anotheredward commented 8 years ago

On the loopback side, I've started to tend towards hitting a CRUD endpoint with a query parameter rather than remote methods. Otherwise you end up re-implementing a whole bunch of stuff that is out of the box with CRUD methods.

pnw commented 8 years ago

On the loopback side, I've started to tend towards hitting a CRUD endpoint with a query parameter rather than remote methods. Otherwise you end up re-implementing a whole bunch of stuff that is out of the box with CRUD methods.

I don't understand. @anotheredward for some context, this mostly addresses RPC's, the inputs for which either have no corresponding data model or act on an existing record, requiring no additional inputs.

anotheredward commented 8 years ago

I have misunderstood this PR :)

anotheredward commented 7 years ago

Did we make any headway on this issue @pnw ?

pnw commented 7 years ago

I don't think so, but I've been pretty happy with ember-concurrency.

anotheredward commented 7 years ago

Is that pretty much covered by: https://www.mediasuite.co.nz/blog/day-life-ember-concurrency-task/ @pnw ? Or is that something that deserves another blog article?

pnw commented 7 years ago

Well that's a totally different topic really. That blog post is about ember-concurrency, and this issue is about ember-ajax 😛

anotheredward commented 7 years ago

Seems good, also consider: https://github.com/ember-cli/ember-fetch This can be covered in the "Commonly use Ember Plugins" blog article.