Skip to content
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

[WIP] Return unique JS objects if they have a primary key #118

Closed
wants to merge 1 commit into from

Conversation

appden
Copy link
Contributor

@appden appden commented Nov 3, 2015

This implementation does not yet handle the case where the primary key is changed on an object. This would mostly resolve #19, since we can't completely resolve it without having unique object ids.

@@ -60,6 +60,9 @@ ObjectSchema::ObjectSchema(const Group *group, const std::string &name) : name(n
}

Property *ObjectSchema::property_for_name(StringData name) {
if (!name.size()) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this happen?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, when primary_key_property() method is called on a schema without a primary key.

@appden
Copy link
Contributor Author

appden commented Nov 5, 2015

retest this please

This implementation does not yet handle the case where the primary key is changed on an object.
@alazier alazier closed this Sep 14, 2016
@fealebenpae fealebenpae deleted the sk-unique-objects branch June 20, 2017 11:09
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better handle object property comparison/equality/identity
3 participants