Skip to content

AO3-7502 Handle invalid collection challenge types - #6142

Open
annypan wants to merge 5 commits into
otwcode:masterfrom
annypan:master
Open

annypan wants to merge 5 commits into
otwcode:masterfrom
annypan:master

Conversation

@annypan

@annypan annypan commented Nov 27, 2026

Copy link
Copy Markdown

Pull Request Checklist

Issue

https://otwarchive.atlassian.net/browse/AO3-7502

Purpose

Submitting an invalid challenge type now returns the user to the new or edit collection form with an error message before saving any changes. The controller specs cover both creation and update.

Testing Instructions

Manual QA

  1. Open the New Collection form and fill in the required fields.
  2. Select Gift Exchange, then use browser DevTools to change the selected option’s value to FooBar.
  3. Submit and verify that the New Collection form shows FooBar is not a valid challenge type. and that no collection was created.

Screenshot from manual local testing
download

Credit

Anni Pan, they/she
Jira account: username Anni Pan, email annipan233@gmail.com

@sarken

sarken commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Hi, Anni Pan!

Thank you so much for your pull request. Someone will be along to review it as soon as we have time, but it may be a while due to the ongoing security issue.

In the meantime, I've assigned the Jira issue to you and set its status to In Review, so no one mistakenly creates a duplicate pull request. I've also given your account permission to comment on, assign, and transition issues in the future.

Thanks again for contributing! If you have any questions, you can contact us at otw-coders@transformativeworks.org.

@annypan

annypan commented Nov 27, 2026

Copy link
Copy Markdown
Author

Note: 12 Cucumber groups that reached the test step in the CI also failed locally on upstream master, so I don't think they're related to my change.

  • Ten groups reported invalid argument: * is not a valid URL, the Chrome session-reset error.
  • Works failed on a missing “Chapter 1” assertion. Comments and kudos reported a failed scenario even though all executed steps passed.
  • Bookmarks, the 13th red check, failed at apt-get update before Cucumber started

@pmonfort
pmonfort self-requested a review December 1, 2026 20:59

@pmonfort pmonfort left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code looks great, good work! I left a small comment.

This branch has not been deployed

No deployments
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