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

enh: add filtering in views for multi selection #798

Merged
merged 3 commits into from
Jan 29, 2024

Conversation

datenangebot
Copy link
Collaborator

@datenangebot datenangebot commented Jan 24, 2024

With the new db structure it is much easier to filter for selection values inside of multi selection columns. This should make this possible to filter for contains and equal.

Not for empty for now. Needs to look into the empty filter in general...

related to: #648

Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com>
Copy link
Contributor

@enjeck enjeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, I tested it out and it works well 👍 .

Do we intentionally not have any Cypress tests for View filters?

@datenangebot
Copy link
Collaborator Author

datenangebot commented Jan 25, 2024

Do we intentionally not have any Cypress tests for View filters?

I am working on it right now. Will add general commands to insert data into the create row modal...

Florian Steffens added 2 commits January 25, 2024 10:06
- add data-cy to form sections
- add general commands to fill in data in forms for selection column
- add test cases for all selection types
- add basic combination test cases

Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com>
Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com>
@datenangebot datenangebot requested a review from enjeck January 25, 2024 09:44
Copy link
Contributor

@enjeck enjeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me in general, except that most of the selectors are based on class names that are too generic and highly prone to change. There are so many changes, making it a tedious task to replace the selections with "data-cy" attributes. I can help out with replacing them, if you think it's valuable.

@datenangebot datenangebot merged commit 452a837 into refactor/db Jan 29, 2024
41 checks passed
@datenangebot datenangebot deleted the refactor/db-addFilterForMultiSelection branch January 29, 2024 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants