Git Product home page Git Product logo

jsonapi's People

Contributors

7kfpun avatar gitter-badger avatar joshk avatar pavlov99 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

jsonapi's Issues

Update tests and is_auth_user property of resource.Meta

Currently is_auth_user is defined on the fly from settings. Sinse this settings suppose to not be changed, define it during resource creation.
Think about tests, how is it possible to mock it. Mock settings.AUTH_USER_MODEL?

support filtering

After jsonapi update, new argument "filter" was introduced. Update current library to support it.

Fix auto doc for modules using django import.

/home/vagrant/git/jsonapi/docs/jsonapi.rst:37: WARNING: autodoc: failed to import module u'jsonapi.resource'; the following exception was raised:
Traceback (most recent call last):
File "/home/vagrant/git/jsonapi/.env/lib/python2.7/site-packages/sphinx/ext/autodoc.py", line 335, in import_object
import(self.modname)
File "/home/vagrant/git/jsonapi/jsonapi/resource.py", line 7, in
from django.db import models
File "/home/vagrant/git/jsonapi/.env/lib/python2.7/site-packages/django/db/models/init.py", line 5, in
from django.db.models.query import Q
File "/home/vagrant/git/jsonapi/.env/lib/python2.7/site-packages/django/db/models/query.py", line 17, in
from django.db.models.deletion import Collector
File "/home/vagrant/git/jsonapi/.env/lib/python2.7/site-packages/django/db/models/deletion.py", line 4, in
from django.db.models import signals, sql
File "/home/vagrant/git/jsonapi/.env/lib/python2.7/site-packages/django/db/models/sql/init.py", line 4, in
from django.db.models.sql.subqueries import *
File "/home/vagrant/git/jsonapi/.env/lib/python2.7/site-packages/django/db/models/sql/subqueries.py", line 12, in
from django.db.models.sql.query import Query
File "/home/vagrant/git/jsonapi/.env/lib/python2.7/site-packages/django/db/models/sql/query.py", line 22, in
from django.db.models.sql import aggregates as base_aggregates_module
File "/home/vagrant/git/jsonapi/.env/lib/python2.7/site-packages/django/db/models/sql/aggregates.py", line 9, in
ordinal_aggregate_field = IntegerField()
File "/home/vagrant/git/jsonapi/.env/lib/python2.7/site-packages/django/db/models/fields/init.py", line 116, in init
self.db_tablespace = db_tablespace or settings.DEFAULT_INDEX_TABLESPACE
File "/home/vagrant/git/jsonapi/.env/lib/python2.7/site-packages/django/conf/init.py", line 54, in getattr
self._setup(name)
File "/home/vagrant/git/jsonapi/.env/lib/python2.7/site-packages/django/conf/init.py", line 47, in _setup
% (desc, ENVIRONMENT_VARIABLE))
ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.

unique linked objects

If there is the same object links to several documents, it would be duplicated in linked attribute.

Fix partial form field generation.

Now if client sends existing field which is not in Resource.Meta.form, it is injected there with partial form.
Filter partial form fields with form fields if exist.

Inherit authenticators from parent resource if exists.

If there are two resources Parent and Child, and Parent model is parent for Child model, make sure that ChildResource has ParentResourceAuthenticators authenticators by default.

It prevents security issues when it is possible to access some of Parent models through parent resource.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.