Skip to content

Feature/3999 zip template from project #4097

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

euler-room
Copy link
Contributor

This PR:

  • Creates the ProjectTemplate model
  • ProjectTemplates can be created Project id and an array of file paths
  • Allows for a ProjectTemplate to archived to a tar.gz file

@euler-room euler-room force-pushed the feature/3999-zip-template-from-project#show branch from 372b36d to aa8f44d Compare April 21, 2025 15:45
Comment on lines +385 to +389
def create_template_manifest(file_names)
template_manifest = File.open("#{project_dataroot}/template_manifest.yml", "w")
template_manifest.write({ id: id, name: name, description: description, icon: icon, files: file_names }.to_yaml)
template_manifest.close
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why have a new file here? Why not just zip the actual manifest.yml?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The manifest.yml does not include the list of files.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦‍♂️ we haven't done #3987 yet...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants