Add migration to mark images as inactive#952
Conversation
|
For prod-dump markerte dette 50000 av 77000 bilder som inaktive. |
There was a problem hiding this comment.
Kanskje vi skulle gitt denne et navn som gjør at vi ikke er redde for å slette den i fremtiden
There was a problem hiding this comment.
migration-27-temp-image-ids.txt eller nokke sånt.
| val matchesTitleFilter = titlesOpt.exists { titles => | ||
| titles.exists { titleJson => | ||
| titleJson.hcursor.downField("title").as[String].toOption match { | ||
| case Some(title) => title.toLowerCase().contains("ikke bruk") |
There was a problem hiding this comment.
Har vi sjekket om dette matcher på noen bilder vi vil ha egentlig?
Ser for meg "Ikke bruk snus, det er farlig" feks 😅
There was a problem hiding this comment.
Det kan det sjølvsagt treffe på. Kan sjekke litt
There was a problem hiding this comment.
Falske positiver: https://ed.ndla.no/media/image-upload/71367/edit/nb, https://ed.ndla.no/media/image-upload/47749/edit/nb, https://ed.ndla.no/media/image-upload/47750/edit/nb, https://ed.ndla.no/media/image-upload/47751/edit/nb, https://ed.ndla.no/media/image-upload/47752/edit/nb, https://ed.ndla.no/media/image-upload/47753/edit/nb, https://ed.ndla.no/media/image-upload/48539/edit/nb, https://ed.ndla.no/media/image-upload/48540/edit/nb
There was a problem hiding this comment.
Konstruert falsk positiv https://ed.test.ndla.no/media/image-upload/70091/edit/nb
Fixes NDLANO/Issues#4538