Activity log for bug #1969693

Date Who What changed Old value New value Message
2022-04-21 00:19:21 Dianne Tennent bug added bug
2022-04-21 00:29:18 Dianne Tennent description This happens in both MySQL and Postgres To replicate: 1. Create an institution template collection (set to 'Current auto-copied template') with portfolio completion. 2. Create a new account and run the cron so that the portfolio is created in the new member's account. 3. As admin, try to delete the institution template collection. Result - SQL error messages on screen Expected: - Perhaps there should be a warning to institution admins that the collection has been auto-copied before deleting it. This happens in both MySQL and Postgres To replicate: 1. Create an institution template collection (set to 'Current auto-copied template') with portfolio completion. 2. Create a new account and run the cron so that the portfolio is created in the new member's account. 3. As admin, try to delete the institution template collection. Result  - SQL error messages on screen. There is a foreign key constraint with collection_template.originaltemplate = collection.id, so it won't allow you to delete from collection table until collection_template table entries are cleared. Expected:  - Perhaps there should be a warning to institution admins that the collection has been auto-copied before deleting it. - I think we need to delete from the collection_template table where originaltemplate = $this->id, rather than where collection = $this->id (htdocs/lib/collection.php:324). Then we'll be able to delete from collection table.
2022-04-21 00:31:01 Dianne Tennent description This happens in both MySQL and Postgres To replicate: 1. Create an institution template collection (set to 'Current auto-copied template') with portfolio completion. 2. Create a new account and run the cron so that the portfolio is created in the new member's account. 3. As admin, try to delete the institution template collection. Result  - SQL error messages on screen. There is a foreign key constraint with collection_template.originaltemplate = collection.id, so it won't allow you to delete from collection table until collection_template table entries are cleared. Expected:  - Perhaps there should be a warning to institution admins that the collection has been auto-copied before deleting it. - I think we need to delete from the collection_template table where originaltemplate = $this->id, rather than where collection = $this->id (htdocs/lib/collection.php:324). Then we'll be able to delete from collection table. This happens in both MySQL and Postgres To replicate: 1. Create an institution template collection (set to 'Current auto-copied template') with portfolio completion. 2. Create a new account and run the cron so that the portfolio is created in the new member's account. 3. As admin, try to delete the institution template collection. Result  - SQL error messages on screen. There is a foreign key constraint with collection_template.originaltemplate = collection.id, so it won't allow you to delete from collection table until collection_template table entries are cleared. Expected:  - Perhaps there should be a warning to institution admins that the collection has been auto-copied before deleting it. - I think we need to delete from the collection_template table where originaltemplate = $this->id, rather than where collection = $this->id (htdocs/lib/collection.php:324). Then we'll be able to delete from collection table. Kristina mentioned that a Behat test for this would be good, since we don't regularly come across this scenario.
2022-04-21 01:53:03 Kristina Hoeppner nominated for series mahara/22.04
2022-04-21 01:53:03 Kristina Hoeppner bug task added mahara/22.04
2022-04-21 01:53:11 Kristina Hoeppner mahara/22.04: milestone 22.04rc2
2022-04-21 01:53:17 Kristina Hoeppner mahara/22.04: importance Undecided Medium
2022-04-21 01:53:19 Kristina Hoeppner mahara/22.04: status New Confirmed
2022-04-22 01:43:53 Kristina Hoeppner mahara/22.04: milestone 22.04rc2 22.10.0
2022-04-22 01:44:19 Kristina Hoeppner nominated for series mahara/22.10
2022-04-22 01:44:19 Kristina Hoeppner bug task added mahara/22.10
2022-04-22 01:44:28 Kristina Hoeppner mahara/22.04: milestone 22.10.0 22.04.1
2022-04-22 01:44:30 Kristina Hoeppner mahara/22.10: milestone 22.10.0
2022-04-22 01:44:37 Kristina Hoeppner mahara/22.10: status New Confirmed
2022-04-22 01:44:40 Kristina Hoeppner mahara/22.10: importance Undecided Medium
2022-04-28 02:05:37 Kristina Hoeppner mahara/22.04: milestone 22.04.1 22.04.2
2022-06-14 03:37:16 Kristina Hoeppner mahara/22.04: milestone 22.04.2 22.04.3
2022-08-15 03:31:34 Kristina Hoeppner bug task deleted mahara/22.04
2022-08-15 03:31:48 Kristina Hoeppner mahara/22.10: milestone 22.10.0 23.04.0
2023-01-26 07:31:11 Kristina Hoeppner bug task deleted mahara/22.10
2023-01-26 07:32:30 Kristina Hoeppner mahara: milestone 23.04.0 23.10.0
2023-01-26 07:33:09 Kristina Hoeppner mahara: milestone 23.10.0