GithubHelp home page GithubHelp logo

kalinka-bundle's People

Contributors

cmac1000 avatar davidmikesimon avatar evillemez avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

kalinka-bundle's Issues

Serializer plugin & annotations

Write a plugin for the JMS Serializer that will allow an authorizer to be called on a property-by-property basis during serialization/deserialization, if the object is configured for such.

Allow this property/class configuration via annotations.

implement kalinka.authorizer tags

There should be multiple configurable authorizer services.

Some needed placeholders are already there, but it's not really implemented yet.

validate bundle configuration

Bundle config isn't really being validated at all... it will also need to change a little to allow multiple authorizer service configurations.

Prefer setter functions to reflection

test this case:

  • a class uses a custom setter function
  • serializer should use the custom setter, not reflection.

Ideally, the serializer metadata stack, and (in the case of deserialization) maybe something like the resolveMetadata method from serializer graphNavigator should give us this information. Does that work, though? In my tests the 'setter' field in propertyMetadata is always blank - this might only work if we use the @Accessor annotation:

http://jmsyst.com/libs/serializer/master/reference/annotations#accessor

Hypothetical permission checks

We should be able to hypothetically run any controller action; that is, determine if we would be allowed to do it, but not actually mutate anything. To do this, action methods should have a point right before they actually do any potentially destructive act where they check if the request is hypothetical and, if so, immediately return. This requires:

  • That we allow hypothetical sub-requests, which will involve creating a subtype of Request
  • That all controller actions check for hypothetical requests. We should do this in a method, rather than using instanceof, because...
  • If an action does not check for hypothetical requests, that should be a detectable bug, that we catch in a late listener.

Test Inheritance

Test this case:

  • extend an abstract class
  • both abstract class and extending class have annotations
  • make sure both are enforced

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.