-
Notifications
You must be signed in to change notification settings - Fork 523
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-3207 Fix incorrect work blurbs and meta when series is updated #4558
Conversation
* Expire cache of works when series is updated * Use right format for serialized JQuery data * Add tests
Sorry, I forgot about this earlier: could you bump the work blurb version cache key so we don't keep displaying the wrong thing for blurbs that are already cached? |
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.
Thank you!
@@ -29,3 +29,31 @@ Feature: Rearrange works within a series | |||
And I should see "1. A Bad, Bad Night" | |||
And I should see "2. Things Get Worse" | |||
And I should see "3. A Bad, Bad Day" | |||
|
|||
@javascript | |||
Scenario: Reordering series by drag and drop updates work blurbs correctly. |
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.
Support was asking about this issue and I'm a little confused -- is the issue with the blurb (the thing that appears on work index pages) or the meta (the thing that appears on the top of individual works)? The issue and pull request say the blurb, but the test appears to be checking the meta.
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.
This PR fixes both issues, I have edited the test to make sure the blurb is checked.
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.
Thanks for clarifying! I'll update the issue to make sure everything gets tested.
(Note: I've added
.vscode/
to.gitignore
. Hope it's alright?)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-3207
Purpose
Fix an issue when reordering series positions by drag and drop — this is caused by an incorrect datatype used in the AJAX request. Secondly, make the cache of works expire when a series is updated (especially when a new work is added to series).
Testing Instructions
See Jira issue and the past comment by Lady Oscar.
Credit
weeklies (she/her)
Huge thank you to ticking_instant and Bilka for answering my (beginner) questions on automated testing!