Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Unique value count may be larger than number of values shown for Lexicon fields #750

Open
murphyke opened this issue Dec 3, 2014 · 4 comments

Comments

@murphyke
Copy link
Member

murphyke commented Dec 3, 2014

It appears that the "unique values" count for a Lexicon field is based on the number of values in the lexicon table itself, so if the referencing field doesn't contain all of the possible values, the user may think something is broken if, for example, five values are shown but the "unique values" count claims eight values.

@bruth
Copy link
Contributor

bruth commented Dec 3, 2014

I presume you are referring to the infobar control?

@murphyke
Copy link
Member Author

murphyke commented Dec 3, 2014

The infobar and (I believe) the search control behave this way. Those are the only ones that I checked.

@bruth
Copy link
Contributor

bruth commented Dec 3, 2014

Hmm, this should not be the case. The count method is passed the tree-based queryset so it should not include non-related values. Do running the bare instance.count method in the shell and passing in the tree-based queryset?

@murphyke
Copy link
Member Author

murphyke commented Dec 3, 2014

Will check later today; thanks.

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

No branches or pull requests

2 participants