{"comment":{"created_at":"2011-10-24T19:13:14Z","body":"I don't completely understand the proposed schema. Maybe you could list some of the use cases.\r\n\r\nIt sounds like the \"slots\" aren't actually concrete objects in the model and will be defined implicitly by 'persistent' being true. If these roles are defined on organizations, isn't this already achieved with the association of roles to organizations in UserOrgRole (and the addition of the roles you listed)?\r\n\r\nShould the roles be added to precor_org_roles.json?","updated_at":"2011-10-24T19:13:14Z","url":"https://api.github.com/repos/TireSwingSoftware/openassign-server/issues/comments/2507917","id":2507917,"user":{"avatar_url":"https://secure.gravatar.com/avatar/c257c0d93e4e2f23e71f624083dc7978?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"c257c0d93e4e2f23e71f624083dc7978","url":"https://api.github.com/users/jc0n","id":438552,"login":"jc0n"}},"action":"created","issue":{"number":17,"created_at":"2011-10-07T17:55:39Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"When an organization is defined, it can be given \"slots\".  Each slot has a title (free text field) and role (selected from pre-defined choices).\r\n\r\nRoles will include:\r\n\r\n* Administrator\r\n* Owner Manager\r\n* Precor Admin Asst\r\n* Serv Dealer Admin\r\n* Learner\r\n\r\nOnce a slot is defined on an organization, a user can be associated with it.  Users can also still be associated with an organization and a role irrespective of a slot.\r\n\r\nI think this can be accomplished with a slight modification to the [UserOrgRole] (https://github.com/TireSwingSoftware/openassign-server/blob/b2e1f8e542cf5e25facf57b2e4a06b448f7b6144/pr_services/pr_models.py#L520) model.  We will need to add two attributes to it:\r\n\r\n* 'title' : the title of the slot, such as \"President\", \"Owner\", \"Secretary\", \"Master of the Universe\", etc.\r\n* 'persistent' : boolean indicating that the position should persist even without a user defined.\r\n\r\nAs such, any UserOrgRole with the \"persistent\" boolean set to True will be called a \"Slot\" and can exist without a user defined.  This is most helpful when a user is removed from an organization and we need to know if their UserOrgRole should persist without them.","comments":2,"title":"Organization Slots","updated_at":"2011-10-24T19:13:14Z","url":"https://api.github.com/repos/TireSwingSoftware/openassign-server/issues/17","id":1846191,"assignee":{"avatar_url":"https://secure.gravatar.com/avatar/c257c0d93e4e2f23e71f624083dc7978?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"c257c0d93e4e2f23e71f624083dc7978","url":"https://api.github.com/users/jc0n","id":438552,"login":"jc0n"},"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/06b29370cfbe838c3ed487118738d24e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"06b29370cfbe838c3ed487118738d24e","url":"https://api.github.com/users/mhrivnak","id":53091,"login":"mhrivnak"},"html_url":"https://github.com/TireSwingSoftware/openassign-server/issues/17","labels":[],"state":"open"},"legacy":{"issue_id":1846191,"comment_id":2507917}}