griffithchaffee / wormstorysearch-rails

Rails application for tracking Worm fanfiction updates
http://wormstorysearch.com
24 stars 5 forks source link

Renamed stories only appear by their old name #21

Open Daniferrito opened 1 year ago

Daniferrito commented 1 year ago

So it appears that when a story that has already been indexed is renamed, the story only appears by its old name.

Example: Mom Militia (AO3), https://archiveofourown.org/works/40798566/navigate When searching for "placeholder", it appears as "Placeholder Do Not Click: D". The link is correct When searching for "Mom", "Militia" or "Mom Militia", it does not appear

Renamed stories should appear by their current name, and be searchable by their current name It would be prefered if old names are still searchable, though. It would be even better if old names still appear somewhere in the entry, maybe as a mouseover.

This is probably best fixed by adding a job that periodically (but could be quite sparse) scans all stories and updates the names if they have changed. Some plataforms might not allow to change names, so those can be ignored in the scan.

A potential problem might be handling stories in multiple places where one changes name to something else, but not the rest, as then multiple names are the "current" one. Probably showint the latest changed one is better.

Daniferrito commented 1 year ago

I was looking around and it seems that the latest name is already loaded in the page, as clicking the "details" button does show the current name.

It does also show it as having 0 words, which is a problem that might be related to the name, or it might be a completely new one