-
Notifications
You must be signed in to change notification settings - Fork 67
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
[Bug]: Filter by tag is not working as intended #341
Comments
Thank you for creating this issue! 🎉 We'll look into it as soon as possible. In the meantime, please make sure to provide all the necessary details and context. If you have any questions or additional information, feel free to add them here. Your contributions are highly appreciated! 😊 You can also check our CONTRIBUTING.md for guidelines on contributing to this project. |
an API request is sent with tags in the usePosts hook which filters posts with at least one of the passed tags. I think this is the logic and keyword searching is done for the search text written by the user. if I am wrong, please correct me. |
Yes you're right but shouldn't we just search the keyword in the tags associated to the posts instead of a search across all of its details. |
we can search the text in tags as well with the description and the title, just modify the Prisma query for this |
Hey there, I believe that someone has fixed the bug I tried to describe above. Now, the filter by tags works as intended, filtering by tags associated with the posts and nothing else (name, description). So you could check and test to see if it still exists, and if it doesn't, then you could close it. |
Sure, I can do it. Thanks. Could you confirm the tag filter inputted by you to get these results? |
actually, that allPosts.addTag was already present by default |
What does it mean? It doesn't make sense to be displayed, right? |
yes, that's the issue. we need to remove it and if possible below selected tags in filter we can show some options for users to select tags from |
Can't we modify the placeholder to show some sample keywords that the users could use to filter by tag? |
Got it |
I noticed that some bugs discussed here have already been resolved. So, I will be working on the following things over here:
Could you please confirm if you want to keep the filter by tags case insensitive? Currently, we are storing the input tags in lowercase, which will skip over the posts that contain the same tags but with different characters capitalized. For example, a post with the tag 'Form' won't show currently if we filter by 'form' or even 'Form' tag. |
Sure go ahead. Just one question, which dark blue/white strip? |
Understood, thanks for your response. Sorry for the delay in my response. |
Hello @Parth18Shah! Your issue #341 has been closed. Thank you for your contribution! |
Is there an existing issue for this?
Describe the bug
Currently, adding a tag as a search filter is filtering posts by that tag as a keyword within the entire data. Instead, it should filter posts based solely on the tags assigned to them.
Expected behavior
Added tag will filter the posts with that tag assigned to it.
Add ScreenShots
No response
On which device are you experiencing this bug?
Windows
Record
The text was updated successfully, but these errors were encountered: