MantisBT - v3.0 Release
View Issue Details
0000990v3.0 Release[All Projects] Generalpublic2011-09-30 10:162013-08-28 11:24
Reporterdananderson 
Assigned Tocaseydk 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version3.0.0 
Summary0000990: Importing tasks when source has dynamic tasks causes dependency issues.
DescriptionThis is similar to the issue that I saw in bug 0000620.

If I create a project and use dynamic tasks with child tasks and then try to clone that project by creating a new project and importing the tasks from the original project, the web page times out and I get a large number of dynamic tasks where there are no children and most of the children end up unrelated to the parent that they're supposed to be.

Create project SourceProject
Create task TaskParent1
Create task ChildTask
Make the parent for ChildTask TaskParent1
Create task TaskParent2
Create task ChildTask
Make the parent for ChildTask TaskParent2

In my case, I have 77 parent tasks, each with 3 child tasks.
TagsNo tags attached.
related to 0001064closed caseydk Adding new tasks 
Attached Files

Notes
(0002222)
dananderson   
2011-09-30 10:56   
I just realized that I left off a few steps..

Make TaskParent tasks dynamic tasks.

Create a new project DestinationProject

Select to import tasks from SourceProject

In my case, there is a lot of corruption every time I've tried this.
(0002227)
caseydk   
2011-10-01 22:38   
Could you try this with the v2.4 release, I believe this is resolved.

Thanks.
(0002241)
dananderson   
2011-10-05 03:09   
I'll have to set up a dev box to do some testing on. I haven't looked at 2.4 for production yet due to all of the LDAP issues in the forums.
(0002276)
dananderson   
2011-11-10 09:35   
This looks like it's still happening in 2.4
(0002277)
dananderson   
2011-11-10 10:29   
For some of my larger projects (300-ish tasks, 25% of which are dynamic), I get

PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/lib/adodb/adodb.inc.php on line 3283

in my logs.

I have a test box that's an 8-core box with 20GB of RAM and that seems to work ok if I bump up the max_execution_time to 120s. My one-core 3GHz box with 4 GB of RAM isn't happy with that, though. I've bumped up the Apache timeout and the PHP max_execution_time to over 300s, but the connection seems to die before it's finished processing.
(0002281)
opto   
2011-11-11 11:26   
I tried this scenario after fixing bug 993, and it seems to work for me.

Klaus
(0002282)
opto   
2011-11-11 11:50   
Title and description talk of two different things:
description says 'dynamic' was lost and importing screwed up. That is ok now
title says 'dependency issues': yes, dependencies of children of dynamic tasks don't work even in original project. I will make this a separate bug report as it seems to be independent of this
(0002293)
dananderson   
2011-11-14 03:09   
By dependencies, I mean that if you go into the database and look at the new project, the task_parent is set to the task ID of the source project's task. There seems to be something in the code that is taking too long to process all of the tasks and set the task_parent to the right task ID. Per my previous notes, this seems to be very much dependent on the number of tasks and the horsepower of the box that it's running on.
(0002713)
caseydk   
2012-11-24 22:58   
I *might* have solved this one by accident here:
https://github.com/caseysoftware/web2project/pull/171

All feedback welcome.

Regardless, I'm going to work on this more in the next day or two.
(0002740)
caseydk   
2012-11-29 12:24   
Resolved: https://github.com/caseysoftware/web2project/pull/174

Issue History
2011-09-30 10:16danandersonNew Issue
2011-09-30 10:56danandersonNote Added: 0002222
2011-10-01 22:38caseydkNote Added: 0002227
2011-10-01 22:38caseydkStatusnew => feedback
2011-10-05 03:09danandersonNote Added: 0002241
2011-10-16 13:24caseydkProjectv2.2 Release (Closed) => v3.0 Release
2011-11-10 09:35danandersonNote Added: 0002276
2011-11-10 10:29danandersonNote Added: 0002277
2011-11-11 11:26optoNote Added: 0002281
2011-11-11 11:50optoNote Added: 0002282
2011-11-14 03:09danandersonNote Added: 0002293
2012-02-19 01:07robertbasicRelationship addedrelated to 0001064
2012-11-24 22:58caseydkNote Added: 0002713
2012-11-29 12:24caseydkNote Added: 0002740
2012-11-29 12:24caseydkStatusfeedback => resolved
2012-11-29 12:24caseydkResolutionopen => fixed
2012-11-29 12:24caseydkAssigned To => caseydk
2013-08-28 11:14caseydkFixed in Version => 3.0.0
2013-08-28 11:24caseydkStatusresolved => closed