Coder Social home page Coder Social logo

mongoose-authorize's People

Contributors

andrenarchy avatar greenkeeperio-bot avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

faleij

mongoose-authorize's Issues

disable background indexes for tests

Maybe the cause for the randomly failing tests on travis is that the mongodb indexes are created in the background. Since the models+indexes are recreated for every single test, it's likely that the lookup by id fails if it's issued directly after insertion.

Possible solution: disable background indexes for the tests.

Teams in teams: avoid loops

Team members can be users (accounts) and teams. This is to allow the admin team of an article to contain the editors team for an organization, for example. However, teams in teams can create ugly loops in team structures, and we need some way to preven this.

One possibility to tackle this on a fundamental level is to discriminate between ordinary teams (with only users as members) and article teams ("roles") with ordinary teams and users as members. Article teams cannot be members of ordinary teams.

Another way would be to introduce some sort of safeguard when resolving team structures.

Detect cycles in docToJSON()

Usually, referenced documents have to be populated manually, so cycles should not be possible. To be on the safe side, cycles should nevertheless be detected. Thx @shdev for pointing this out!

This can be implemented similar to the teamPlugin cycle detection (cf. visitedTeams).

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.