You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since one project team member can have multiple roles, we no longer need to support the ability to add multiple of the same team member per project. We are making front end changes to limit options presented in a project's team table to only people who are not already added to the project, but we should add a constraint in the database to prevent it from happening through other mechanisms in the future.
There are a handful of projects that will need data cleanup to unblock the new constraint that can be observed with the SQL below.
In Scope
Update the moped_proj_personnel table with a new constraint to make sure only unique combinations of project and user IDs can exist in the table
Clean up existing duplicate records so that the remaining personnel have all roles captured in duplicates
SELECT
project_id,
user_id,
COUNT(*) as duplicate_count
FROM
moped_proj_personnel
WHERE is_deleted = FALSE
GROUP BY
project_id,
user_id
HAVINGCOUNT(*) >1;
The text was updated successfully, but these errors were encountered:
Since one project team member can have multiple roles, we no longer need to support the ability to add multiple of the same team member per project. We are making front end changes to limit options presented in a project's team table to only people who are not already added to the project, but we should add a constraint in the database to prevent it from happening through other mechanisms in the future.
There are a handful of projects that will need data cleanup to unblock the new constraint that can be observed with the SQL below.
In Scope
moped_proj_personnel
table with a new constraint to make sure only unique combinations of project and user IDs can exist in the tableThe text was updated successfully, but these errors were encountered: