-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Debug]: improved debug msg instead of [object Object] #7337
Conversation
Performance Report for 2ade689 Relationship Analysis
|
Asset Size Report for 2ade689 IE11 Builds EmberData increased by 2.0 B (-35.0 B compressed) which is within the allowed tolerance of 15 bytes uncompressedWarningsThe uncompressed size of the package @ember-data/store has increased by 2.0 B. Changeset
Full Asset Analysis (IE11)
Modern Builds EmberData increased by 2.0 B (-35.0 B compressed) which is within the allowed tolerance of 15 bytes uncompressedWarningsThe uncompressed size of the package @ember-data/store has increased by 2.0 B. Changeset
Full Asset Analysis (Modern)
Modern Builds (No Rollup) EmberData increased by 2.0 B (-16.0 B compressed) which is within the allowed tolerance of 15 bytes uncompressedWarningsThe uncompressed size of the package @ember-data/store has increased by 2.0 B. Changeset
Full Asset Analysis (Modern)
|
throw new Error( | ||
`Failed to update the 'id' for the RecordIdentifier '${identifier}' to '${resourceData.id}', because that id is already in use by '${matchedIdentifier}'` | ||
`Failed to update the 'id' for the RecordIdentifier '${identifier}' to '${resourceData.id}', because that id is already in use by ${type}:${id} (${lid})` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we do this for the '${identifier}' as well?
@@ -79,4 +79,71 @@ module('Integration | Identifiers - cache', function(hooks) { | |||
); | |||
}); | |||
}); | |||
|
|||
module('createIdentifierForNewRecord()', function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general it would be great so split modules into new files
let existingIdentifier = detectMerge(this._cache.types, identifier, data, newId, this._cache.lids); | ||
|
||
if (existingIdentifier) { | ||
const keyOptions = getTypeIndex(this._cache.types, identifier.type); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While you are cleaning up, it would be great to not have this const here, as we do a let keyOptions on line 357
I cherry-picked the debug message commits into #7342 to not block merging on the other cleanup review |
662bb8d
to
f184cc7
Compare
@snewcomer wanna rebase against master, and I'll merge |
update identifier as well Add tests for cache methods add moar tests cannot assert debug errors in prod tests address feedback
0efbde8
to
2ade689
Compare
close #7193