When using "Create project from template" , the "Packages" project feature is not set based on the template project

Summary

When creating a project from a project template, all project feature toggles are copied over except Packages.

Steps to reproduce

  • Create a subgroup with a template project, disable all the project features except Issues, Merge Requests;
  • Set that subgroup as a templates group;
  • Create a new project from the template;
  • Packages will be enabled in the project features, everything else is copied over.

What is the current bug behavior?

The Packages project feature does not get set based on the project template a project is created from.

What is the expected correct behavior?

The Packages project feature toggle should be set based on the project template.

Possible fixes

I did some digging, and I think it might have something to do with either the serialization of the Project record during the export. I could be entirely wrong though, since I don't have much experience with RoR.

  • Projects::ImportExport::ExportService#execute