Open jathanism opened 2 years ago
Hi @jathanism! This issue skipped my radar and I just noticed because of another one that was reported. If I find time in the future I will try to debug and fix this (I'm a little rusty on Python and this project in general so it can take me some time).
Python version: 3.8 Django version: 3.1.14
I am a maintainer of Nautobot and we recently implemented the optimizer in our v1.2.0 release. We just got this bug report related to trying to query a related object and filtering only the
id
field for it, which results in this error:And this server-side traceback:
This query reproduces the error:
But the following variant query works just fine:
Unfortunately it's non-trivial to try it for yourself. We have a temporary workaround that doesn't fix anything in
graphene-django-optimizer
but just wraps the calls in atry...except
block. See: https://github.com/nautobot/nautobot/pull/1230We'd be happy to try to help fix this bug, but just in case you might be able to fix it quicker, I wanted to report it here. Thanks for this great project!
Summary