graphene-django
graphene-django copied to clipboard
Associate GlobalIDFilter with BigAutoField and SmallAutoField
AutoField is set up to use GlobalIDFilter, but BigAutoField and SmallAutoField are not.
This PR adds them to GRAPHENE_FILTER_SET_OVERRIDES, associating them with the filter.
It also removes some conditional logic around SmallAutoField that was introduced in #1212 because SmallAutoField was introduced in Django 3.0 and this project now requires a minimum Django version of 3.2.
I originally added the BigAutoField support. This was definitely missed so thanks! LGTM
I realized today, that in the spirit of https://xkcd.com/1172/, this will be a breaking change for those who were relying on the old behavior. Their APIs will start requiring global IDs on ID filters instead of integers.
How should this be addressed? Maybe a note in the changelog about how to restore the old behavior would be sufficient?