fix: move testSuite summary state update to preDelete (#13180)

Co-authored-by: Sriharsha Chintalapani <harshach@users.noreply.github.com>
This commit is contained in:
Teddy 2023-09-14 07:58:08 +02:00 committed by GitHub
parent ffa5248ef2
commit a9ce04c129
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -405,7 +405,7 @@ public class TestCaseRepository extends EntityRepository<TestCase> {
}
@Override
protected void postDelete(TestCase entity) {
protected void preDelete(TestCase entity, String deletedBy) {
// delete test case from test suite summary when test case is deleted
// from an executable test suite
List<TestSuite> testSuites = getTestSuites(entity);