ember-data-hal-adapter icon indicating copy to clipboard operation
ember-data-hal-adapter copied to clipboard

Fix embedded records transformation

Open locks opened this issue 11 years ago • 5 comments

The hack of making all the embedded records into arrays breaks belongsTo relationships in models.

Ideas:

  • Check how JSON/RESTAdapter deal with records
  • Use metadata to only parse attributes defined in the model
    • [ ] Parse metadata
    • [ ] Change extractSingle

locks avatar Oct 30 '13 12:10 locks

@locks is this still an issue?

chadhietala avatar Sep 25 '14 04:09 chadhietala

@chadhietala I think so, I haven't touched this library in a while unfortunately.

locks avatar Sep 25 '14 10:09 locks

@locks any chance you'll be getting back to it soon?

timbunce avatar Nov 03 '14 11:11 timbunce

@timbunce I was kind of waiting for the new draft to come out, which I thought would be out by now. I'm using the adapter in a project, so I'll have some fixes to push.

locks avatar Nov 03 '14 12:11 locks

That's good to hear, thanks. Could you push what you have soonish?

timbunce avatar Nov 03 '14 13:11 timbunce