Skip to content

Implement event duplication feature and improve registration error handling#407

Closed
Ethan-Stone1 wants to merge 79 commits intosnap-cloud:mainfrom
cs169:main
Closed

Implement event duplication feature and improve registration error handling#407
Ethan-Stone1 wants to merge 79 commits intosnap-cloud:mainfrom
cs169:main

Conversation

@Ethan-Stone1
Copy link
Copy Markdown
Contributor

This pull request implements Issue cs169#54 to allow for the duplication of events. Additionally implements a small fix to registration form not displaying validation errors

Event Duplication:
Screenshot 2026-03-18 at 10 10 47 AM
On the event page there is now a "Duplicate" button
Screenshot 2026-03-18 at 10 11 01 AM
Pressing the button opens a popup where you can select how many different duplicates of the event you would like
Screenshot 2026-03-18 at 10 11 13 AM
The duplicated events have all the same data as the original (minus the ID and the creator is the person who clicked duplicate)

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.

sikesbc and others added 25 commits March 4, 2026 09:01
Tests exercise icalendar_proposals with nil event_type, nil time,
and nil room — all of which currently raise NoMethodError.
Skip events with nil time or event_type in icalendar_proposals,
and use safe navigation for room name to avoid NoMethodError
when generating .ics calendar exports.
The sign-up form silently fails when validation errors occur (e.g.,
duplicate username, password too short, password mismatch) because
the Devise registration views never render resource.errors.

Add error message rendering to the _form_fields partial so users
see clear feedback when registration fails.

Fixes #61
Fix registration form not displaying validation errors
Implement a new feature (Issue #54) to duplicate events within a conference
@Ethan-Stone1
Copy link
Copy Markdown
Contributor Author

@cycomachead

@cycomachead cycomachead self-requested a review March 18, 2026 17:21
sikesbc and others added 28 commits April 16, 2026 01:36
…ment-notification-toggle

Made-with: Cursor

# Conflicts:
#	db/schema.rb
…ion-toggle

Feature/organizer comment notification toggle
Add dynamic variable substitution to conference descriptions
Hide code of conduct link when none is set
Remove organization grouping from conference menu
Move conference dates to 2026-10-14/16 so before_end_of_conference passes.
Expand all abstracts past 100 words to satisfy abstract_limit.
Confirm tracks via update_column after create since the AASM confirm
transition requires a submitter; valid_track checks track.confirmed?.
Replace exists? skip with destroy! so re-runs always produce a fresh seed.
* Force SSO for new sign-ups via environment variable

Add PREVENT_NEW_LOCAL_PASSWORDS env var that hides the local
registration form and shows only Google and Snap! SSO buttons.
Existing users can still sign in with username/password below
the SSO buttons. Local auth code is preserved to avoid upstream
merge conflicts.

* Use button_to for SSO buttons to ensure POST without JS dependency
@cycomachead
Copy link
Copy Markdown
Member

This is from main to main -- going to close this so we can merge smaller PRs.

@cycomachead cycomachead closed this May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants