Coder Social home page Coder Social logo

Comments (6)

leogr avatar leogr commented on August 17, 2024

The readOnly mutability for users indicates that RCF is assuming that the membership information belongs to Group, but RFC does not mandate how to implement that.
However, this implies some scalability issues (how could we return a Group's JSON representation that has millions of users?).

Furthermore, do not forget "redundancy". We're using a non-relation DB so both ways could co-exist.

from scimd.

alelb avatar alelb commented on August 17, 2024

@leogr My idea is to use listener to assign a group to the user (or an organization to a department, etc) and, in general, to assign a reference to a resource with a specific readOnly attribute when you're creating (or updating, or deleting) a resource with the referenced readWrite attribute (the members in Group).

from scimd.

leodido avatar leodido commented on August 17, 2024

Sorry @alelb remind me. When you are talking about listeners you are referring to hooks, right?

from scimd.

alelb avatar alelb commented on August 17, 2024

@leodido Yes, I am referring to hooks.

from scimd.

leogr avatar leogr commented on August 17, 2024

Assuming hooks are used in order to sync the $ref within the User's document and membership will be stored within the Group's document, isn't it?
If so, Group's document could grow indefinitely, that's a scalability issue.
However, temporarily we may go on this way, but we shall fix it later.
What do you think about that?

from scimd.

alelb avatar alelb commented on August 17, 2024

@leogr you are right.
Notice that both in the User's groups attribute and in the Group's members attribute the $ref attribute is and remains an identifier. There is no incapsulation of one document into another.

from scimd.

Related Issues (20)

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.