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

Issue in status equal to archived filter #8865

Closed
3 tasks done
tspvivek opened this issue Oct 17, 2021 · 3 comments
Closed
3 tasks done

Issue in status equal to archived filter #8865

tspvivek opened this issue Oct 17, 2021 · 3 comments

Comments

@tspvivek
Copy link

Preflight Checklist

Describe the Bug

When status is selected to archived in new filter layout, Status not equal to archived filter is also added to the conditions which results in empty response.

/items/gate?limit=25&fields[]=name&fields[]=status&fields[]=id&sort[]=id&page=1&filter={"_and":[{"_and":[{"status":{"_eq":"archived"}}]},{"status":{"_neq":"archived"}}]}&meta[]=filter_count&meta[]=total_count

To Reproduce

Select status equal to archived in new filter design.

Errors Shown

Status not equal to archived filter is also added.

What version of Directus are you using?

v9.0.0-rc.98

What version of Node.js are you using?

v12.20.0

What database are you using?

Postgres

What browser are you using?

Chrome

What operating system are you using?

Ubuntu 20.04

How are you deploying Directus?

running locally

@rijkvanzanten
Copy link
Member

This sounds like it's working as expected. If you have "Enable App Archive Filter" enabled, the app will always apply an extra filter to filter out the archived items. To browser / restore the archived items, right click on the collection name in the menu and select "Show Archived Items" 👍🏻

@tspvivek
Copy link
Author

My bad, didn't notice the right click option in menu. Might be better to remove the archived option from status filter to avoid confusion.

@benhaynes
Copy link
Sponsor Member

Ref: #8931

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants