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

HasManyThrough with Lambda #842

Open
wants to merge 5 commits into
base: 5.x
Choose a base branch
from

Conversation

tychokamphuis-aqqo
Copy link

Fixed such that HasManyThrough works properly with a lambda function.
The following query was not working for us:
127.0.0.1:8000/api/KnowledgebaseCategories?$expand=KnowledgebaseArticles($filter=knowledgebase_article_uri eq 'add-new-user')&$filter=KnowledgebaseArticles/any(s:s/knowledgebase_article_uri eq 'add-new-user')

KnowledgebaseArticles have a pivot table called 'Knowledgebase_articles_to_categories' for the many-to-many relation with KnowledgebaseCategories.

@27pchrisl
Copy link
Contributor

Hi @tychokamphuis-accommodatiehuur, apologies I missed the notification on this one - running the tests on it now.

@tychokamphuis-aqqo
Copy link
Author

Hi @tychokamphuis-accommodatiehuur, apologies I missed the notification on this one - running the tests on it now.

Hi @27pchrisl, any updates on this? I know that the code might not be according to the standards, however this is how it works for us. If you give me any hints on how to improve the code in such way that it more up to the standards that would be great!

Keep up the good work.

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

Successfully merging this pull request may close these issues.

2 participants