Skip to content
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

Merged
merged 8 commits into from
Feb 17, 2024

Conversation

weeklies
Copy link
Contributor

@weeklies weeklies commented Jun 29, 2023

(Note: I've added .vscode/ to .gitignore. Hope it's alright?)

Pull Request Checklist

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!

weeklies added 2 commits June 29, 2023 15:40
* Expire cache of works when series is updated
* Use right format for serialized JQuery data
* Add tests
@weeklies weeklies changed the title AO3 3207 Fix incorrect work blurbs when series is updated AO3-3207 Fix incorrect work blurbs when series is updated Jul 2, 2023
features/step_definitions/series_steps.rb Outdated Show resolved Hide resolved
app/models/work.rb Show resolved Hide resolved
@brianjaustin
Copy link
Member

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?

Copy link
Member

@brianjaustin brianjaustin left a 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.
Copy link
Collaborator

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.

Copy link
Contributor Author

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.

Copy link
Collaborator

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.

@sarken sarken changed the title AO3-3207 Fix incorrect work blurbs when series is updated AO3-3207 Fix incorrect work blurbs and meta when series is updated Nov 29, 2023
@brianjaustin brianjaustin merged commit 3cfd48a into otwcode:master Feb 17, 2024
25 checks passed
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