Closed LaurentGoderre closed 11 years ago
I recommend removing the number of websites column. It is a nice to have right now, whereas the Delete functionality is a high priority. Also, does the Delete link need to be in a separate column than the Edit link. I think they should be in the same. It keeps in more simple and that one column becomes the "Actions" column instead of a column for each action.
Need: English and French text for confirmation message, "websites exists" message, and "assessment teams exist" message
@dfait-webstandards
The number of website is essential for user to understand why some teams can be deleted while others can't. You would alreeady build that logic when checking if a team can be deleted.
I don't have a problem with grouping the edit and delete on the same column.
I already included the text for the website exists, see the original spec
I wasn't unaware of the unnecessary relationships between assessment teams, websites and assessments.
You would then need to add another column for assigned pages
The stored procedure will have to check that there is no assigned web page and return an error if it has. Requirement no 2 becomes
Add a stored procedure to delete an assessment team. The stored procedure MUST check that the team doesn't have any associated website AND associated assessment. If the team has one or many website return and error code (1), if the team has one or many assigned web page return another error code (2). Otherwise return 0
Here are the error message to display if there are assigned web pages
Essential: Delete Assessment team IF not associated to websites AND does not have any assigned web pages Nice to have: Number of assigned web pages, number of associated websites displayed on ADM Orgs page
Oh, and the relationship between assessment team, website, and assessment is not unnecessary. It tracks who performed the assessment, something you may find a lot of value in when reassessing submitted reports.
@dfait-webstandards the relationship between assessment team and website is not usefull because there could be more than one team assessing a same website. Only the assessment and assessment team relationship is useful.
@dfait-webstandards I understand that your point of view however, this is essential for us. Everything in the spec needs to be done.
There also must be a confirmation message when selecting the delete link:
Here is a recap of the spec
If the error code 1 is returned from the stored procedure, show the following error message:
If the error code 2 is returned from the stored procedure, show the following error message:
If no error is returned display the following message:
fixed
Tested and passed.
See the recap below