Comments (5)
I'm working on this at the moment. I'm adding an 'invite user' form to the project detail view.
The idea then is that the user can accept or decline the invitation in the memberships view. I'm adding a boolean field called 'initiated_by_user' to CustomUser to facilitate this.
Any comments?
from cogs3.
Ideally, the CustomUser model should only contain the necessary fields to represent a user. I would recommend putting any fields related to a project membership invite, either in the project membership model or even create a project membership invite model. How would the initiated_by_user
be used?
from cogs3.
I'm sorry, I meant the ProjectUserMembership, not CustomUser.
The memberships view would allow the user to accept the membership if Initiated_by_user is false and similarly the requests view would allow the tech lead to accept if initiated_by_user is true. The permissions to edit the membership status would similarly depend on the field.
The user/tech_lead could of course decline the invitation/request as well. Once the invitation/request is accepted, the only the tech lead could revoke or suspend.
from cogs3.
Sounds good to me 👍 . It's probably worth adding a help text entry to the field to clarify it's purpose.
from cogs3.
Added pull request #46 that implements inviting members.
Note that there is a weird bug that causes the integration test to fail in my setup. Updating the membership status does not work in the memberships view. The bug only applies to the integration test.
Currently the tech lead can only add existing users. We should probably add a way to instantiate users with institutional addresses automatically when invited to a project.
from cogs3.
Related Issues (20)
- Only one project can be in an awaiting approval state at a time HOT 2
- Allocation storage detail not shown in project view HOT 1
- Institution could be derived from technical lead email HOT 1
- ARCCA displayed for Swansea users HOT 2
- Restrict project applications to institutional users only. HOT 1
- PI email stored as a user
- Enable users to update personal information HOT 5
- Read email address from shib session and not registration form. HOT 1
- Refactor unit tests to use test data fixtures.
- Define Project Funding Sources
- Rename the PI in a project context to "Project Supervisor" or similar
- PI identified by email in project creation form
- Project owner permissions not revoked
- permission_required pages redirect issue
- LDAP system allocation integration.
- Removing a user from a project doesn't work
- Redirect after login not working
- Not compatible with python 3.7
- email_user function duplicated code HOT 1
- Phase 2 release to production
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cogs3.