-
Notifications
You must be signed in to change notification settings - Fork 110
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
Expand on tag filters #803
Conversation
@abrenoch, thanks for submitting a PR to data-hub 🥳 I tested your implementation, and I still have some questions. You correctly pointed out that filtering tags based on their name could be improved since there can be tags with an identical name. I checked out your code and tried the Please have another look at this PR and fix this issue 👍 I'm looking forward to your improved PR 💯 🥇 |
@abrenoch friendly reminder ⏰. I would love to see this PR merged 🎉. |
@abrenoch ⏰ please have another look at this PR 🍭 |
@Corepex Hey must have missed your pings - I'll try to take a look at this in the next couple days |
Hey updated so this path search should work now - not sure how I overlooked that. Using a pattern like |
@abrenoch, thanks for updating your PR. The problem with the I guess the Besides that, it looks quite promising :) |
@Corepex Whoops how silly of me - was too focused on the other problem to notice I lost it in the merge 😅 . Will fix that shortly! |
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
@abrenoch, somehow, it still doesn't work. I created a dummy event and assigned three according tags to it Please check your setup and try to recreate this usecase. Query: query
{
getEventListing(tags: "2, 3, /3/4/", hasAllTags: true, useTagIdPath: true)
{
edges {
node {
id
}
}
}
} |
Quality Gate passedIssues Measures |
Gotcha @Corepex . Sorry but it may take me a while to get back to this; we have moved past pimcore since I originally opened this PR and I'm not sure how much time I would have to continue contributing (or, er, trying to I guess). But if someone else wanted to whip it into shape in the meantime I would certainly welcome it. |
I noticed the
tags
filter was a bit rigid so I have some proposed changes:useTagIdPath
as a query variable. This will allow searching for tags by their nested location (such as/7/11/15/
) rather than just the name. If 2 tags with the same name existed within 2 different parents, there was no way to differentiate which one was returned. This will allow targeting specific tags within the scope of the parents.hasAllTags
as a query variable. Currently the tag filter matches any of the tags provided in the query, setting this variable totrue
will require results match all the tags provided.