Skip to content

bug: Settings search doesn't index descriptions in their entirety #22917

Closed

Description

@chadwhitacre

Reticketing from #22888 (comment).

Environment

SaaS

Steps

  1. Be a superuser (or hurry up before either bug: Settings search does not filter out inaccessible settings #22915 is fixed or dark mode is rolled out GA).
  2. https://sentry.io/settings/
  3. Search > "dark"

Expected

The "Theme" setting shows up in the search results, because it has the word "dark" (case-insensitive) in its description.

Actual

The "Theme" setting does not show up in the search results. Adding to my confusion, search terms are highlighted in the description, leading me to believe that they should match there as well.

Demo

y-u-no-match-description.mov

Activity

  1. markstory commented on Jan 5, 2021

    @markstory
    Member

    I wonder if it something specific to that form field. I was able to search other form fields by description.

    Screen Shot 2021-01-05 at 5 10 57 PM

  2. chadwhitacre commented on Jan 5, 2021

    @chadwhitacre
    ContributorAuthor

    Interesting. I thought it might be entangled with #22915, but I tried on a local install where I am superuser and see the same unexpected behavior.

    Furthermore, some strings match the description for "Theme," but not others:

    Screen Shot 2021-01-05 at 5 16 15 PM

    Screen Shot 2021-01-05 at 5 17 34 PM

    Screen Shot 2021-01-05 at 5 17 07 PM

    🤔

    Oooh! The second "theme" is not highlighted! 😲

    Screen Shot 2021-01-05 at 5 18 10 PM

  3. chadwhitacre commented on Jan 5, 2021

    @chadwhitacre
    ContributorAuthor

    The search dropdown disappears when I try to inspect it in Chrome dev tools.

  4. chadwhitacre commented on Jan 5, 2021

    @chadwhitacre
    ContributorAuthor

    Maybe we only index the first n characters?

  5. markstory commented on Jan 5, 2021

    @markstory
    Member

    Maybe we only index the first n characters?

    I'm thinking this is the issue as well. This search component does all the 'indexing' client side via FuseJS. I found a tip in the docs that mentions only the first 60 characters are searched. Dark and Light are after that 60 character threshold.

  6. changed the title [-]bug: Settings search does not query description[/-] [+]bug: Settings search doesn't index descriptions in their entirety[/+] on Jan 5, 2021
  7. chadwhitacre commented on Jan 5, 2021

    @chadwhitacre
    ContributorAuthor

    Sounds about right. Probably easy to tune, though I won't stand in the way of someone more qualified than I closing this issue as wont-fix. :)

  8. github-actions commented on Jan 27, 2021

    @github-actions
    Contributor

    This issue has gone three weeks without activity. In another week, I will close it.

    But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Accepted, I will leave it alone ... forever!


    "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

  9. chadwhitacre commented on Jan 27, 2021

    @chadwhitacre
    ContributorAuthor

    someone more qualified

    E.g. @github-actions. Eminently qualified. :)

  10. locked and limited conversation to collaborators on Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions