-
Notifications
You must be signed in to change notification settings - Fork 112
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
Unable to sort and filter JSON fields #247
Comments
thoughts? @ryochiji |
Hi @AltSchool team, I'm working with @dalenhughes on this feature. @dalenhughes has this up and running on a branch and we've opened a pull request. The branch is able to do deep filtering and sorting on jsonb field types. As @dalenhughes mentioned above, the primary outstanding element with this change is figuring out how to test this feature since it depends on JSON field types. JSON fields, however, aren't supported with sqlite which is the database implementation used in the dynamic-rest types. Our best ideas for testing so far are:
Do you guys have a preference of approach? Can you think of an easier way to test this feature? Is this a feature you'd be interested in supporting in dynamic-rest in the first place? Please let us know. (PS: Thanks again for your continued support of this repo!!) |
Ping @ryochiji, @atzannes, @DeviateFish - would someone mind reviewing our request? We'd like to get this merged so that we aren't maintaining a separate fork. Thanks for your time and support! |
Hey @joshvillbrandt and @dalenhughes, thank you for your interest in the project. Unfortunately, I'm not very knowledgeable and will defer to Ryo. I contacted him and it's on his radar to reply to you as soon as he finds some time. Apologies for the slow turn-around. |
Awesome. Thanks for the update! :) |
@aleontiev @suavesav and @chdastolfo I have a draft PR up for fixing this issue- I'm having some issues running tests locally so I'd like to utilize the workflows that are automatically run on PRs. Could one of you approve running the workflow on this PR? Thanks! |
allow for sorting/filtering of JSON objects when using PostgreSQL AltSchool#247
I'm looking to expand the functionality to handle sorting and filtering for JSON field data.
Would like this to work using PostgresSQL database's built-in jsonb object which allows indexing. Would involve augmenting one of the models to include nested JSON. Here are the options I came up with:
https://docs.djangoproject.com/en/2.1/ref/contrib/postgres/fields/
The text was updated successfully, but these errors were encountered: