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

Filter board column on more than one label #38

Open
darenwelsh opened this issue Feb 21, 2022 · 2 comments
Open

Filter board column on more than one label #38

darenwelsh opened this issue Feb 21, 2022 · 2 comments

Comments

@darenwelsh
Copy link
Collaborator

darenwelsh commented Feb 21, 2022

Some potential issues after initially thinking this through:

  • Do we assume for a column, if the user lists 2 or more labels, that their intent is to list actions with either (OR) label? Or do we assume they only want actions that have both (AND) labels? Or are we supposed to accommodate both options?
  • This seems like it'll make the optional "None of these labels" column query very difficult to specify
@darenwelsh
Copy link
Collaborator Author

For the optional "None of these labels" column, a different approach would be to

  1. query for actions that meet the criteria of each column
  2. make an array of these actions represented in defined columns
  3. make another array of actions using the filters for the whole board
  4. make a new array based on the diff of the first two arrays
  5. use that diff array to define which actions to show in the optional "None of these labels" column

@darenwelsh
Copy link
Collaborator Author

Decision: For now, only accommodate AND conditions for multiple labels defining a column. For example, if someone lists Label:In work and Label:Urgent to define a column, only show actions that have both labels.

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

No branches or pull requests

1 participant