#196 Remove user from project

v1.0.0
closed
nobody
None
General
nobody
2015-08-20
2010-07-07
Anonymous
No

Originally created by: sf-overlords

Created by: mramm
Created date: 2010-04-07 15:28:50.381000
Assigned to:jsteele

Remove the user from the project (so they don't show up in the drop down lists, and don't have permissions any more).

We should change the logic from any user who's ever visited to any user with developer or admin permissions.

Ideally this would be encapsulated in some is_project_member function.

Related

Tickets: #195

Discussion

  • Anonymous - 2010-07-07

    Originally by: sf-overlords

    Post by mramm:

     
  • Anonymous - 2010-07-07

    Originally by: sf-overlords

    Post by jsteele:

     
  • Anonymous - 2010-07-07

    Originally by: sf-overlords

    Post by rluckey:
    1. A patch to prevent the creation of new empty project roles has been pushed to branch rl/196.

    1. I'm going to wait for completion of #217, then make sure that old empty user roles do not clutter the UI. Should be a simple fix, or perhaps no work at all will be required.

    2. This work is ongoing, ETA Monday afternoon. Current plan is to update the admin controller such that when the last role is removed from a user, we remove the user as well.

     
  • Anonymous - 2010-07-07

    Originally by: sf-overlords

    Post by mramm:

    • assigned_to: Robin Luckey --> nobody
     
  • Anonymous - 2010-07-07

    Originally by: sf-overlords

    Post by max:
    How do I add a user to the project? On my local db I have user test_user with contain 4 references to other project yet the user does not show up on the project's home page.

     
  • Anonymous - 2010-07-07

    Originally by: sf-overlords

    Post by max:
    test incoming email

     
  • Anonymous - 2010-07-07

    Originally by: sf-overlords

    Post by rcopeland:
    Give them 'read' access to the project and they will appear on all the other drop-downs (you can give them 'read' access by username)

     
  • Anonymous - 2010-07-07

    Originally by: sf-overlords

    Post by rluckey:
    This is related to #217.

    My understanding of the desired behavior is that the project users collection should contain only users that have roles currently assigned to them. A user without any current roles should not be displayed in user selection UI widgets, and should probably be deleted from the project users collection.

    From a data perspective, it looks like there are three work items:

    1. Currently, visiting a project page while logged in causes your name to be added to the list of project users (albeit without any roles). We should stop doing this.

    2. When displaying lists of project users in the UI, our queries should usually omit users that do not have any roles. The exception is the admin UI, which needs to show all users, otherwise we have a chicken-and-egg problem of how to initially assign roles to new users. This task has much overlap with #217.

    3. After the last role is removed from a user by an admin, the user should probably be completely removed from the project users collection.

    I am currently working on the first issue -- stop putting users in the collection simply for viewing the project page.

     
  • Anonymous - 2010-07-07

    Originally by: sf-overlords

    Post by rluckey:

    • assigned_to: Robin Luckey
     
  • Anonymous - 2010-07-07

    Originally by: sf-overlords

    Post by jsteele:
    - assigned_to: Jenny Steele

    This ticket has been simplified to mean "only show users with admin/dev role in the drop down" so it'll be ready in time.

     

Log in to post a comment.