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

[BUG] Categorical filter in the App sidebar showing erroneous entry #1915

Open
brimoor opened this issue Jun 30, 2022 · 0 comments
Open

[BUG] Categorical filter in the App sidebar showing erroneous entry #1915

brimoor opened this issue Jun 30, 2022 · 0 comments
Labels
app Issues related to App features bug Bug fixes

Comments

@brimoor
Copy link
Contributor

brimoor commented Jun 30, 2022

A user running fiftyone==0.16.5 reports that, when using the filter sidebar in the App on categorical field, an extra erroneous entries appear at the top of the dropdown list.

For example, below we see unknown:

Screen Shot 2022-06-30 at 2 47 52 PM

Screen Shot 2022-06-30 at 2 49 46 PM

And in the below example, the user states that "100115" means there are 115 results containing 100:

Screen Shot 2022-06-30 at 11 17 53 AM

Here's some code I wrote to attempt to reproduce the issue, but I'm not seeing it:

import fiftyone as fo
from fiftyone import ViewExpression as E
from fiftyone import ViewField as F

from bson import ObjectId

# Create 3328 samples with a `group` field
dataset = fo.Dataset()
dataset.add_samples(
    [
        fo.Sample(filepath="/path/to/image.png", group=str(ObjectId()))
        for i in range(3328)
    ]
)

# Ensure at least 115 group values contain "100"
dataset.shuffle().limit(115).set_field("group", E("100").concat(F("group"))).save()

session = fo.launch_app(dataset)
@brimoor brimoor added bug Bug fixes app Issues related to App features labels Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app Issues related to App features bug Bug fixes
Projects
None yet
Development

No branches or pull requests

1 participant