Implement a new feature (Issue #54) to duplicate events within a conference#60
Merged
Ethan-Stone1 merged 16 commits intomainfrom Mar 18, 2026
Merged
Implement a new feature (Issue #54) to duplicate events within a conference#60Ethan-Stone1 merged 16 commits intomainfrom
Ethan-Stone1 merged 16 commits intomainfrom
Conversation
sikesbc
reviewed
Mar 13, 2026
| end | ||
| redirect_to admin_conference_program_events_path(@conference.short_title) | ||
| rescue StandardError => e | ||
| flash[:alert] = "Could not duplicate event: #{e.message}" |
There was a problem hiding this comment.
Passes e.message to the user here, could leak DB errors or internal stuff. Generic message would be safer.
| @@ -1,5 +1,11 @@ | |||
| # frozen_string_literal: true | |||
|
|
|||
| begin | |||
There was a problem hiding this comment.
Is this related to the duplicate feature or something unrelated?
Author
There was a problem hiding this comment.
unrelated, but was making the tests not run properly iirc
li-xinwei
pushed a commit
that referenced
this pull request
Mar 29, 2026
Implement a new feature (Issue #54) to duplicate events within a conference
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 Issue #54 to allow for the duplication of events.
Include screenshots, videos, etc.
On the event page there is now a "Duplicate" button
Pressing the button opens a popup where you can select how many different duplicates of the event you would like
The duplicated events have all the same data as the original (minus the ID and the creator is the person who clicked duplicate)
Who authored this PR?
Ethan Stone
How should this PR be tested?
There are a ton of tests (in fact most of the lines of code I added are tests. To run them type
bundle exec rspec spec/features/event_duplication_spec.rb spec/controllers/admin/events_controller_spec.rb
in the terminal.
Are there any complications to deploying this?
No data migrations or anything complicated about deploying.
Checklist: