Skip to content
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

Project Copier: tweaks to initialization #4270

Merged
merged 8 commits into from
Mar 12, 2024
Next Next commit
Add more fields to EXCLUDE_ATTRIBUTES
lcjohnso authored Dec 6, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 4e09e3fe1b82a49224d97e453e6f7615855e1e9b
12 changes: 11 additions & 1 deletion lib/project_copier.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
class ProjectCopier
attr_reader :project_to_copy, :user

EXCLUDE_ATTRIBUTES = %i[classifications_count launched_row_order beta_row_order].freeze
EXCLUDE_ATTRIBUTES = %i[
classifications_count
classifiers_count
launch_date
completeness
activity
lock_version
launched_row_order
beta_row_order
].freeze

INCLUDE_ASSOCIATIONS = [
:tutorials,
:pages,