-
Notifications
You must be signed in to change notification settings - Fork 497
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
AO3-2722 Allow parent skins to be added in wizard #4555
Conversation
* Fix bug where error 500 is thrown when non-existent parent skin is added
That should be fine! Do you have step-by-step instructions for reproducing it that we can add to the issue, just to make sure it gets tested? |
Error 500 when adding non-existent parent skin
|
If it is more convenient, I can leave a comment on Jira. |
Thank you! And you're fine, I copied it right over and into the issue body to make sure it won't be missed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need some tests for these changes.
Can you add a test for the bug you've fixed in the skin parent model to spec/models/skin_parent_spec.rb?
It looks like we don't have any feature tests for adding parent skins via the interface (everything I saw at a glance looked like it relied on factories) in features/other_b/skin.feature, which I suspect might be because it's excessively difficult due to the JavaScript involved. However, even if it's not feasible to test the entire process of adding a parent skin, I think it would be a good idea to at least add a test to features/other_b/skin_wizard.feature to confirm the parent skin section is there.
While testing this again, I also found that this PR also fixes another Error 500. Steps to reproduce on production:
This PR causes the |
Pull Request Checklist
as the first thing in your pull request title (e.g.
AO3-1234 Fix thing
)until they are reviewed and merged before creating new pull requests.
Issue
https://otwarchive.atlassian.net/browse/AO3-2722
Purpose
Add a Parent Skin section to the Skin Wizard, as shown in the default editor.
Also, I've fixed a small bug where Error 500 is thrown for non-existent parent skins. I ran into this during testing and didn't find an open Jira issue, so I hope including it in here is OK.
Testing Instructions
See Jira issue.
References
There are open issues regarding Error 500s when editing skins, but this PR doesn't resolve them.
https://otwarchive.atlassian.net/browse/AO3-4820
https://otwarchive.atlassian.net/browse/AO3-3810
Credit
weeklies (she/her)