Giter VIP home page Giter VIP logo

graphene-permissions's People

Contributors

fel-o avatar jmp avatar r3stm4n avatar redzej avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar

graphene-permissions's Issues

ImportError: cannot import name 'get_default_backend'

Current build is failing all tests with this error message.
It seems to be a version error coming from graphene.
All tests pass with these requirements:

  • django-filter-2.1.0
  • graphene-2.1.8
  • graphene-django-2.3.2

no module found 'packagin'

Now I install graphene-permission and then import mixin file but get an error that says "no module found 'packaging' ".
Should I install the packaging module?

Django integration

How do you feel about permission classes which are not static like AllowAuthenticated or AllowSuperuser but which need to be instantiated.
I can imagine some scenarios where the option to only customize permission classes with class variables is not enough.
In my project I had some problems integrating this module with djangos integrated permissions feature. So I wrote a permission class like: AllowDjangoPermission("app_name.create_model"). Or something like AllowObjectOwner(related_object_path).
Is this a feature you would be interested in? I could create a new PullRequest after the feature to combine classes with operators is merged.

Permissions per object like in DRF and django-guardian

Like, for example, you implement a project management software where each user can participate in different projects and have a different role in each project, like SCRUM Master, Product Owner, and Developer. One user can be in different projects and have a different role for each project that will allow him to do different kinds of queries and mutations in each project. Is it possible to achieve something like this with graphene-permissions and how?

Importing ResolveInfo from 'graphql' fails with latest versions of Graphene

In the latest version of graphene-core (a dependency of Graphene), ResolveInfo can no longer be imported from the graphql package:

from graphql import ResolveInfo

The reason is that ResolveInfo has been renamed to GraphQLResolveInfo.

For best compatibility, it seems best to import ResolveInfo from the graphene package:

from graphene import ResolveInfo

This works with Graphene 2.x as well as Graphene 3.x.

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.