Uh oh!
There was an error while loading. Please reload this page.
Custom Model Classes - #487
Conversation
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| kind: 'hasMany'| 'belongsTo'; | ||
| type: string; | ||
| options: { [key: string]: any } ; | ||
| name: string; |
There was a problem hiding this comment.
we should validate that this is in fact what we currently expose / want to document as info concerning inversePropertyNameinverseType and isPolymorphic is typically available as well.
There was a problem hiding this comment.
Thats a very good point. isPolymorphic should be available from the options. We currently in practice expose a bunch of underscored properties for inverses, but all of that data is calculable given the exposed public data. I would prefer to keep it private, and figure out in the schema work if we need to expose it
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
959be70 to
10ade6fCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
dgeb
commented
Jun 19, 2019
I discussed this with @igorT today. One concern I've had here is that Also, some method return values on I'm fine moving this to FCP if others are. I will give it another pass over the weekend. |
47a6f8c to
c6c4e85CompareigorT
commented
Jun 19, 2019
I have implemented a slightly older version of this api(pending some cleanup) at ember-m3/ember-m3#294. It passes all the tests without any usage of |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| } | ||
| ``` | ||
| Instead of exposing the entire RecordData Class, we expose only the local facing methods and hide the server/adapter facing methods that the Model should not have access to, by giving a RecordData lookup method to `instantiateRecord` |
There was a problem hiding this comment.
Instead of exposing the entire RecordData Class
On what? Needs a slight prose tweak here
Uh oh!
There was an error while loading. Please reload this page.
| We need to make the following changes: | ||
| * expose a method on the store for instantiating a record | ||
| * add a hook to be notified when a record is being destroyed for potential cleanup |
Uh oh!
There was an error while loading. Please reload this page.
dgeb
commented
Jun 23, 2019
I've left a couple suggestions but don't consider anything blocking. In addition to the comments I left, I'd like to eventually iron out inconsistencies between usage of |
3575893 to
3a8b8b6Compare3a8b8b6 to
d8d46ddCompareImplements RFC emberjs/rfcs#487
This allows us to move away from using _internalModel and private apis, by using apis descibred at emberjs/rfcs#487
This allows us to move away from using _internalModel and private apis, by using apis descibred at emberjs/rfcs#487
This allows us to move away from using _internalModel and private apis, by using apis descibred at emberjs/rfcs#487
This allows us to move away from using _internalModel and private apis, by using apis descibred at emberjs/rfcs#487
This allows us to move away from using _internalModel and private apis, by using apis descibred at emberjs/rfcs#487
* master: (56 commits) Fix code examples & add ember-cli release version in emberjs#637 Update FCP guidance to include Discord Update RFC 085421 ready-for-release PR URL Advance RFC {{ inputs.rfc-number }} to Stage ready-for-release feat: EmberData Cache v2.1 finalize lifetimes Update text/0860-ember-data-request-service.md Update RFC 496, typos, correct field name add note chore: update RequestService url with finalized design details Move emberjs#331 deprecate-globals-resolver to recommended Correct metadata for emberjs#487 custom model classes Move emberjs#625 helper-managers to recommended Add release date and version for 776 Update RFC 0776 released PR URL Advance RFC {{ inputs.rfc-number }} to Stage released Update RFC 0739 ready-for-release PR URL Advance RFC {{ inputs.rfc-number }} to Stage ready-for-release Deprecate `ember-mocha` Add title of RFC to advancement PR titles ...
Rendered