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

Migrate webcomics/webcomic series to articles/series #11488

Open
5 tasks
rcantin-w opened this issue Jan 8, 2025 · 4 comments
Open
5 tasks

Migrate webcomics/webcomic series to articles/series #11488

rcantin-w opened this issue Jan 8, 2025 · 4 comments
Assignees

Comments

@rcantin-w
Copy link
Contributor

See #11127 for details. This is for Webcomics and Webcomic Series.

Definition of done

  • All webcomics are now articles with the same uid/url as they had before
  • A new Series has been created off the back of the Webcomic series with the same uid/url as before
  • The ordering still makes sense
  • Webcomic/Webcomic series are all archived.
  • Code/conditions/transformers/types have all been cleaned up and there's no trace of the deprecated webcomic/webcomic series types.
@rcantin-w rcantin-w converted this from a draft issue Jan 8, 2025
@rcantin-w rcantin-w changed the title Migrate webcomics to articles (and series) Migrate webcomics/webcomic series to articles/series Jan 8, 2025
@rcantin-w rcantin-w self-assigned this Jan 13, 2025
@rcantin-w rcantin-w moved this from Next to In progress in Digital experience Jan 21, 2025
@rcantin-w
Copy link
Contributor Author

rcantin-w commented Jan 21, 2025

To be done first;

  • Confirm no UIDs are duplicates
  • Plan for publishDate to be publishDate || old publication date
  • Plan for format to be comic
  • Plan for webcomic series -> series
  • Plan for how to link documents to new series

@rcantin-w
Copy link
Contributor Author

rcantin-w commented Jan 21, 2025

PLAN

  • Add publishDate to series**
  • Create new series for Body Squabble with the publishDate filled in.
  • Stop Body Squabble from showing up on /stories by specifying it by ID/UID
  • Confirm no UIDs will be duplicates
  • Rewrite migration script (Gareth's got it in a branch), modifying the linked series to be the new Body Squabbles one EXCEPT for the 3 that belong to Worry Lines.
  • Run script on staging
  • QA
  • Run script on prod
  • QA

At this point, both articles and webcomics will exist and so will visually be duplicates, but they will be far in the pagination/list as they were published ages ago. If we wanted, we could do the next three BEFORE we run the script on prod instead. This would fully hide the Body Squabbles webcomics until we run the script on prod.

  • Remove fetches for webcomics from the wc.org code base (especially in graphqueries)
  • Remove fetches for webcomics from the Content API code base (especially in graphqueries)
  • Reindex??? How do we remove things from the index? Unpublish them all manually and rely on the unpublisher? Do it as an Elasticsearch query?

Then

  • Delete webcomics and webcomics series from Prismic (again, manually?)
  • Tidy up the code properly

** The idea of adding publishDate now being not to forget what the date should be since the webcomic series will have been deleted when we get to using it. publishDate is a field we use in the Content API to override Prismic's publication date, which we can't modify. It's also used on the page's FE to display the desired date.

@rcantin-w
Copy link
Contributor Author

Four webcomics had the same UID as an article (blood, nature, empathy and water). That currently impacts users as webcomics and articles have the same URL, meaning that users couldn't actually see the webcomics (the article "winning" the URL). I've gone in and manually changed their UIDs so they'd be unique (prefixing them with "body-squabbles-").

@rcantin-w
Copy link
Contributor Author

Audit: 3 webcomics are NOT body squabbles', but worry lines'.
They cannot be added to the Worry Lines series as they are webcomics and that series is NOT a webcomic series.
We'll have to consider them separately when we do the migration.

https://wellcomecollection.org/stories/you-re-doing-well
https://wellcomecollection.org/stories/right-now-on-earth
https://wellcomecollection.org/stories/being-human

@pollecuttn pollecuttn moved this from In progress to Backlog in Digital experience Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

1 participant