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

id/key semantics is not clear #103

Open
chbm opened this issue Aug 22, 2012 · 1 comment
Open

id/key semantics is not clear #103

chbm opened this issue Aug 22, 2012 · 1 comment

Comments

@chbm
Copy link
Contributor

chbm commented Aug 22, 2012

The semantics of the id property are not clear. As far as I can tell the current behavior is engine dependent and I couldn't find documentation or tests regarding the correct behavior of duplicate ids.
Some clarification would be good.

@Marak
Copy link
Contributor

Marak commented Aug 23, 2012

Good catch.

The intended semantic is:

id should be the unique identifier of the document, relative to it's resource.

key should be a unique identifier across the entire database.

We've just implemented this in resourceful v0.3.0, so I would not be surprised if you there are still inconsistencies from previous versions.

Any pull requests to help fix this or improve test coverage around this area would be much appreciated.

Thanks for the feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants