@@ -268,13 +268,6 @@ func (h *ProjectsHandler) UpgradeFromTemplate(req api.Context) error {
268268		return  types .NewErrHTTP (http .StatusTooEarly , "project upgrade already in progress" )
269269	}
270270
271- 	if  ! thread .Status .UpgradeAvailable  {
272- 		// Project is ineligable for an upgrade due to one of the following reasons: 
273- 		// - the project is already at the latest revision of the project snapshot 
274- 		// - the user has manually modified the project 
275- 		return  types .NewErrBadRequest ("project not eligible for an upgrade" )
276- 	}
277- 
278271	if  thread .Spec .UpgradeApproved  {
279272		// Project is already approved for an upgrade, nothing to do 
280273		return  nil 
@@ -518,15 +511,16 @@ func convertProject(thread *v1.Thread, parentThread *v1.Thread) types.Project {
518511			Models :               thread .Spec .Models ,
519512			Capabilities :         convertProjectCapabilities (thread .Spec .Capabilities ),
520513		},
521- 		ParentID :                     strings .Replace (thread .Spec .ParentThreadName , system .ThreadPrefix , system .ProjectPrefix , 1 ),
522- 		SourceProjectID :              strings .Replace (thread .Spec .SourceThreadName , system .ThreadPrefix , system .ProjectPrefix , 1 ),
523- 		AssistantID :                  thread .Spec .AgentName ,
524- 		Editor :                       thread .IsEditor (),
525- 		UserID :                       thread .Spec .UserID ,
526- 		WorkflowNamesFromIntegration : thread .Status .WorkflowNamesFromIntegration ,
527- 		TemplateUpgradeAvailable :     (thread .Status .UpgradeAvailable  &&  ! thread .Spec .UpgradeApproved ),
528- 		TemplateUpgradeInProgress :    thread .Status .UpgradeInProgress ,
529- 		TemplatePublicID :             thread .Status .UpgradePublicID ,
514+ 		ParentID :                      strings .Replace (thread .Spec .ParentThreadName , system .ThreadPrefix , system .ProjectPrefix , 1 ),
515+ 		SourceProjectID :               strings .Replace (thread .Spec .SourceThreadName , system .ThreadPrefix , system .ProjectPrefix , 1 ),
516+ 		AssistantID :                   thread .Spec .AgentName ,
517+ 		Editor :                        thread .IsEditor (),
518+ 		UserID :                        thread .Spec .UserID ,
519+ 		WorkflowNamesFromIntegration :  thread .Status .WorkflowNamesFromIntegration ,
520+ 		TemplateUpgradeAvailable :      (thread .Status .UpgradeAvailable  &&  ! thread .Spec .UpgradeApproved ),
521+ 		TemplateForceUpgradeAvailable : thread .Status .ForceUpgradeAvailable ,
522+ 		TemplateUpgradeInProgress :     thread .Status .UpgradeInProgress ,
523+ 		TemplatePublicID :              thread .Status .UpgradePublicID ,
530524	}
531525
532526	if  ! thread .Status .LastUpgraded .IsZero () {
0 commit comments