Feature - conference duplication#404
Closed
zhouyijun111 wants to merge 10 commits intosnap-cloud:mainfrom
Closed
Conversation
add new feature for counting the total sales for each currency
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does:
This pull request implements the Conference Duplication feature (Iteration 2): a Duplicate button on the conference dashboard that takes the user to the “new conference” form pre-filled from the selected conference, with title, short title, and dates left for manual input. On create, it copies registration settings, email settings, event types, tracks, rooms, tickets, venue, sponsors, and custom CSS from the source conference, and excludes user-submitted events and attendee data.
Files changed and purpose
app/views/admin/conferences/show.html.hamlduplicate_fromset to the current conference.app/controllers/admin/conferences_controller.rbnew: Whenduplicate_fromis present, build@conferencefrom the source (description, timezone, limits, etc.) and set@duplicate_from_source.create: When duplicating, merge source attributes (description, custom_css, etc.) before save, then call@conference.copy_associations_from(source)after save to copy related data.app/views/admin/conferences/new.html.hamlduplicate_fromso the form posts the source conference identifier back tocreate.app/models/conference.rbcopy_associations_from(source)to copy registration_period, email_settings, venue+rooms, tickets, event_types, tracks, difficulty_levels, sponsorship_levels, and sponsors; no copying of events or registrations/ticket_purchases.Include screenshots, videos, etc.