Skip to content

Searching for enabled "Ruby" shows "RethinkDB ruby" #1516

Closed

Description

@evmorov

OS information

macOS, Chrome 89

Steps to reproduce

  • Enable Ruby
  • Don't enable RethinkDB
  • Write "ruby" into the search field

Actual result

DevDocs suggests not installed "RethinkDB ruby"

Expected result

DevDocs suggests installed Ruby so I can press Tab and search within.

More resources


image


image

Activity

  1. ojeytonwilliams commented on Apr 5, 2021

    @ojeytonwilliams
    Contributor

    Hi @evmorov, I see what you mean about the search order, but tab works as expected for me:
    Ruby

    In the gif I tabbed at 'rub', but everything from 'r' to 'ruby' works as expected.

    If possible could you try using a different browser and see if you encounter the issue?

  2. evmorov commented on Apr 5, 2021

    @evmorov
    Author

    Hi @ojeytonwilliams

    If possible could you try using a different browser and see if you encounter the issue?

    Initially, I saw the issue on my wife's laptop. I reproduced the problem on my laptop with no problem.

    I think when you typed ru, Ruby should have been suggested instead of not installed Rust. It makes no sense to suggest something not installed when you have something installed that matches.

    Also, you can notice that I (and my wife) have Ruby enabled not Ruby 3 like you. It can be the difference.

  3. evmorov commented on Apr 5, 2021

    @evmorov
    Author

    Also, you can notice that I (and my wife) have Ruby enabled not Ruby 3 like you. It can be the difference.

    It's not:

    ruby

  4. ojeytonwilliams commented on Apr 5, 2021

    @ojeytonwilliams
    Contributor

    I think when you typed ru, Ruby should have been suggested instead of not installed Rust. It makes no sense to suggest something not installed when you have something installed that matches.

    As I understand it, the rationale is just that until the user indicates that they're only interested in Ruby (by pressing tab) it should not make assumptions about their intent.

    That said, if tab is not selecting Ruby, that's definitely a bug. Do you have steps to reproduce that? I haven't been able to.

  5. evmorov commented on Apr 5, 2021

    @evmorov
    Author

    As I understand it, the rationale is just that until the user indicates that they're only interested in Ruby (by pressing tab) it should not make assumptions about their intent.

    Looks like a bug to me.

    That said, if tab is not selecting Ruby, that's definitely a bug.

    After pressing Tab it actually chooses Ruby. I've recorded a video in incognito mode:

    1. Disable all the languages except Ruby
    2. Type ruby
    3. See that RethinkDB ruby is shown on the top instead of only installed Ruby
    4. Press Tab
    5. Ruby is selected but RethinkDB ruby was active

    I expect on step 3 to see Ruby instead of RethinkDB ruby on the top.

    ruby2

  6. ojeytonwilliams commented on Apr 5, 2021

    @ojeytonwilliams
    Contributor

    Thanks for taking the time to record the gif, that definitely helps.

    Admittedly I'm relatively new to the project, but what you've detailed here is how I expect it to behave. If you only want to see Ruby results, you can enable only that and type r tab and then all the results will from Ruby.

    Having said all that, there's room for disagreement here, so we can leave this issue open and see if more people find this behaviour frustrating.

  7. j-f1 commented on Apr 5, 2021

    @j-f1
    Contributor

    I think it would be good to provide a hint for users — maybe there should be an indicator like Chrome has?
    Screenshot_2021-04-05 13 46 06

  8. ojeytonwilliams commented on Apr 5, 2021

    @ojeytonwilliams
    Contributor

    I rather like that idea. The initial placeholder is good, but if something like "Press tab to search Ruby 3" appeared as you typed, that would be a nice addition.

  9. MasterEnoc commented on Apr 6, 2021

    @MasterEnoc
    Contributor

    @evmorov The tab only works with the enabled docs but the search bar searchs in all the available docs. The search bar is going to show the closest match of what you are searching and the tab is going the select the closest match in the enabled docs.

    Look how this happen to me with a different doc:
    sc

    This could be improved but the enabled docs are going to have priority in the search bar and I do not if this behaviour is wanted.

  10. evmorov commented on Apr 6, 2021

    @evmorov
    Author

    Thanks! So it's a UX problem or the issue can be closed then.

  11. MasterEnoc commented on Apr 7, 2021

    @MasterEnoc
    Contributor

    What do you think @ojeytonwilliams @j-f1?

  12. ojeytonwilliams commented on Apr 7, 2021

    @ojeytonwilliams
    Contributor

    I think we can close this, since we've discussed it pretty thoroughly. What I'll do is create a new 'help wanted' issue to track Jed's idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions