Skip to content

List.nextSelectableRow and List.canSelectRow assume you have items #996

Closed

Description

@shiftkey

When you filter on some text that doesn't match with the branch or repository list, as in #993, you have the potential to put the List into an unknown state. I've worked around this in #995 but for the sake of correctness we should be using T Y P E S better here.

Some initial thoughts:

  • canSelectRow should return null if it cannot find the row specified
  • nextSelectableRow should return null to "give up" finding rows

This might have some flow-on effects, so feel free to use your own judgement and/or throw test cases at List.

Activity

  1. added
    tech-debt
    on Mar 1, 2017
  2. added a commit that references this issue on Nov 8, 2017
    ec8144a
  3. locked as resolved and limited conversation to collaborators on Jul 19, 2018
  4. unlocked this conversation on Sep 27, 2018
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

    tech-debt

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions