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

UniqueIndex / MultiIndex key consistency #532

Closed
maurolacy opened this issue Nov 4, 2021 · 1 comment · Fixed by #568
Closed

UniqueIndex / MultiIndex key consistency #532

maurolacy opened this issue Nov 4, 2021 · 1 comment · Fixed by #568
Assignees
Milestone

Comments

@maurolacy
Copy link
Contributor

maurolacy commented Nov 4, 2021

Unify the key returned by UniqueIndex and MultiIndex.

Currently, UniqueIndex returns just the pk, whereas MultiIndex returns the remaining of the key, including the pk as last element. Either make both return just the pk, or make UniqueIndex behave like MultiIndex (which is better for usability / options). (opted for the first option, for simplicity).

There are a number of FIXMEs in the code where this needs to be changed.

@maurolacy
Copy link
Contributor Author

As this is breaking, let's do it for 0.11, along with #460.

@maurolacy maurolacy added the breaking Breaking changes label Dec 1, 2021
@maurolacy maurolacy self-assigned this Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant