news: keep popular stories whole in the feed cache and file topics by headline
- Commit
41e54d3c8938250c2b9dcb2b195cc80e5779aa37- Author
- Vayun Mathur <[email protected]>
- When
- 2026-12-05 13:40 UTC (22 hours ago)
- Parents
24a1997
Owner saw random singletons (largest groupings 7, 4, 3, 3, 2), one California story, empty Science and a Spanish Chelsea-Liverpool story under US. Reproduced exactly from the live feed: the app capped the 2500-article server feed with a flat newest-first FeedMerger take(500) and pruned Room to the newest 500, cutting older members of the most-covered stories first. Simulated old pipeline on the live feed gives top groupings 7, 4, 3, 3, 2, California 1, Science 0 - the reported numbers. - domain/StoryFeedCap: the server feed now enters Room at its full 2500 size, whole stories in FeedRanking order with newest fill; the on-device crawl keeps its 500 cap. Same live feed through the new cap: top groupings 13, 11, 7, 6, 5, California 3 stories (plus a bogus GQ-as-California story removed, below), Science 5 by source alone. - Headline topics: server news.json topics (science/technology) are parsed into FeedArticle.topics, persisted in Room v3 (topics column + migration), and Story.matchesFeedFilter files Science/Technology by source tag OR headline topic, so a generalist science/tech story is visible there (only 21 Science sources exist in the catalog). Search-in-category accepts topics the same way. - Geographic tabs follow the story representative source instead of any-member union, which filed the Spanish World-source Chelsea-Liverpool live blog under US via one US-tagged member. Local semantics are unchanged (any-member region match, no location = empty). - Catalog data: gq was The Fresno Bee name on gq.com tagged Local/California - it is GQ, US, no region; 28 harvested sources tagged US on non-US country domains or plainly non-US wires (EFE Spain, El Tribuno Argentina, Loksatta India, ...) retagged to World. Asset regenerated; frozen count tests updated to the corrected totals (World 9581, US 1302, Local 354). Verified: ./gradlew :news:testDevUnitTest :news:lint :news:lintVitalRelease green (106 tests). Local commit only, not pushed or merged.
Diff
news/AGENTS.md
diff --git a/news/AGENTS.md b/news/AGENTS.mdindex f2aa5e19bc..1a545c5f86 100644--- a/news/AGENTS.md+++ b/news/AGENTS.md@@ -28,6 +28,14 @@ story grouping over the Room cache runs off the main thread. Every source is alw corpus (no per-source toggle); category + search are the filters, and `domain/FeedRanking` orders the story feed client-side by descending source count, then newest first (search keeps its relevance order).+The server feed enters Room through `domain/StoryFeedCap` at the+feed's full 2,500 size (whole stories in feed-rank order, newest+fill) — never a flat newest-first cap, which cut popular stories'+older members; the on-device crawl keeps its 500-article cache cap.+Science/Technology filing uses the source tag OR the server's+headline `topics` classification (`FeedArticle.topics`, Room v3);+geographic tabs (World/US) follow the story representative's+source, while Local keeps any-member region matching. Every feed item is a story (`domain/Story`, mechanical grouping by exact server `storyId` only — singletons included), shown as a card labelled only with its source count ("1 source" / "N sources", no
news/catalog/source_catalog.tsv
diff --git a/news/catalog/source_catalog.tsv b/news/catalog/source_catalog.tsvindex 6384c769a5..53a78cb60c 100644--- a/news/catalog/source_catalog.tsv+++ b/news/catalog/source_catalog.tsv@@ -120,7 +120,7 @@ aif AIF https://aif.ru/sitemap.xml S ru W ;; oaoa AIM Media Texas http://www.oao aip AIP https://www.aip.ci/sitemap.xml S W ;; airforcetimes Air Force Times http://www.airforcetimes.com/sitemap.xml S U ;; airelibre Aire Libre FM https://www.airelibre.com.ar/sitemap.xml S es W ajkerpatrika Ajkerpatrika https://www.ajkerpatrika.com/news-sitemap.xml S W ;; ajwnews Ajwnews http://ajwnews.com/sitemap.xml S W ak-chin-nsn AK Chin Nsn http://www.ak-chin.nsn.us/sitemap.xml S W ;; akersbergakanalen Akersbergakanalen https://www.akersbergakanalen.se/sitemap.xml S sv W-juancole Akhbar Al Khaleej http://www.juancole.com/sitemap.xml S W ;; akhbar-elbadil Akhbar Elbadil https://akhbar.elbadil.com/news-sitemap.xml S U+juancole Akhbar Al Khaleej http://www.juancole.com/sitemap.xml S W ;; akhbar-elbadil Akhbar Elbadil https://akhbar.elbadil.com/news-sitemap.xml S W akhbarelyoum Akhbarelyoum https://www.akhbarelyoum.dz/sitemap.xml S W ;; akhbarlibya24 Akhbarlibya24 http://www.akhbarlibya24.net/sitemap_index.xml S W esefarad Aki Yerushalayim https://esefarad.com/sitemap.xml S W ;; aksam-com Aksam https://www.aksam.com.tr/sitemap.xml S tr W ;; aksiyon-com Aksiyon https://www.aksiyon.com.tr/sitemap.xml S tr W luno Aktuality https://www.luno.hu/index.php?format=feed&type=rss R sk W ;; aktuality-3 Aktuality.sk - aktuálne spravodajstvo https://www.aktuality.sk/rss/ R sk W@@ -215,7 +215,7 @@ asere Asere https://www.asere.com/sitemap-news.xml S W ashevilledailyplanet Asheville Daily Planet https://www.ashevilledailyplanet.com/index.php?format=feed&type=rss R L North Carolina, United States infoshop Asheville Global Report http://www.infoshop.org/sitemap.xml S U ;; asiestamaulipas Asi es Tamaulipas https://www.asiestamaulipas.com/feed/ R W asianpacificpost Asian Pacific Post https://asianpacificpost.com/rss.xml R W ;; asianmirror Asianmirror https://www.asianmirror.lk/news-sitemap.xml S W-asiaone Asiaone https://www.asiaone.com/sitemap.xml S W ;; asiaplus Asiaplus https://asiaplus.news/news-sitemap.xml S U ;; asiasentinel Asiasentinel https://www.asiasentinel.com/sitemap.xml S W+asiaone Asiaone https://www.asiaone.com/sitemap.xml S W ;; asiaplus Asiaplus https://asiaplus.news/news-sitemap.xml S W ;; asiasentinel Asiasentinel https://www.asiasentinel.com/sitemap.xml S W asiatoday-co Asiatoday https://www.asiatoday.co.kr/sitemap.xml S ko W ;; asiesmargarita Asiesmargarita https://asiesmargarita.com/sitemap.xml S W asportsnews Asportsnews https://asportsnews.com/sitemap.xml S W ;; middleeastexplorer Asr-e Maa http://www.middleeastexplorer.com/sitemap.xml S W assabahnews Assabahnews https://www.assabahnews.tn/sitemap.xml S W ;; en-assahifa Assahifa English https://en.assahifa.com/sitemap.xml S W@@ -408,7 +408,7 @@ chacosintesis Chaco Sintesis https://chacosintesis.com.ar/index.php/feed/ R W ; chaconoticias Chaconoticias http://www.chaconoticias.net/sitemap.xml S W ;; chacoprensa Chacoprensa http://www.chacoprensa.com/sitemap.xml S W ;; chad Chad http://www.chad.co.uk/sitemap.xml S W chale Chale https://chale.news/sitemap.xml S W ;; champion-com Champion https://champion.com.ua/ukr/rss/ R uk W ;; championnews-com Champion (EN) http://www.championnews.com.ng/sitemap_index.xml S W channelstv Channels Television https://www.channelstv.com/news-sitemap.xml S W ;; chapintv Chapintv http://www.chapintv.com/sitemap-news.xml S W-charata Charata http://www.charata.com/sitemap.xml S W ;; charentelibre Charentelibre https://www.charentelibre.fr:443/sitemap-news.xml S U+charata Charata http://www.charata.com/sitemap.xml S W ;; charentelibre Charentelibre https://www.charentelibre.fr:443/sitemap-news.xml S W charitonleader Charitonleader https://www.charitonleader.com/sitemap.xml S U ;; charkoosta Charkoosta https://www.charkoosta.com/sitemap.xml S W charlottejewishnews Charlotte Jewish News https://charlottejewishnews.org/feed/ R L North Carolina, United States thecharlotteweekly Charlotte Weekly https://thecharlotteweekly.com/sitemap.xml S L North Carolina, United States@@ -621,7 +621,7 @@ diarioleiria Diarioleiria https://www.diarioleiria.pt/news-sitemap.xml S pt W ;; diariomardeajo Diariomardeajo http://www.diariomardeajo.com.ar/sitemap.xml S es W ;; diarionecochea Diarionecochea https://diarionecochea.com/sitemap.xml S W diarionorte Diarionorte https://www.diarionorte.com/sitemap-news.xml S W ;; diarioonline Diarioonline https://www.diarioonline.com.br/news-sitemap.xml S pt W diariopalentino Diariopalentino https://www.diariopalentino.es/sitemap-news.xml S es W ;; diariopopular Diariopopular https://www.diariopopular.com.ar/sitemap-news.xml S es W-diariopyme Diariopyme http://www.diariopyme.cl/sitemap.xml S es W ;; diarioriouruguay Diarioriouruguay http://diarioriouruguay.com/sitemap-news.xml S U+diariopyme Diariopyme http://www.diariopyme.cl/sitemap.xml S es W ;; diarioriouruguay Diarioriouruguay http://diarioriouruguay.com/sitemap-news.xml S W dib Diarios Bonaerenses https://dib.com.ar/sitemap-news.xml S es W ;; diariosanrafael Diariosanrafael http://www.diariosanrafael.com.ar/sitemap.xml S es W diariosigloxxi Diariosigloxxi http://www.diariosigloxxi.com/sitemap.xml S W ;; diariosomos Diariosomos http://diariosomos.com.ar/sitemap.xml S es W diariosur Diariosur https://www.diariosur.es/sitemap.xml S es W ;; diariotamaulipas Diariotamaulipas https://diariotamaulipas.com.mx/sitemap.xml S es W@@ -650,7 +650,7 @@ doisongphapluat-com Doisongphapluat Com https://doisongphapluat.com.vn/news-site dominica-weekly Dominica Weekly — The Nature Island, Every Week https://www.dominica-weekly.com/feed/ R C ;; dominicanodigital Dominicanodigital https://dominicanodigital.com/news-sitemap.xml/ S W dominicanrepublicpost Dominicanrepublicpost http://www.dominicanrepublicpost.com/sitemap.xml S W ;; donegallive Donegallive https://www.donegallive.ie/sitemap.xml S W donegalnews Donegalnews https://donegalnews.com/sitemap.xml S W ;; dynews-co Dongyang Ilbo http://www.dynews.co.kr/sitemap.xml S ko W-dooralroundup Dooralroundup https://dooralroundup.com.au/news-sitemap.xml S W ;; dordognelibre Dordognelibre https://www.dordognelibre.fr:443/sitemap-news.xml S U+dooralroundup Dooralroundup https://dooralroundup.com.au/news-sitemap.xml S W ;; dordognelibre Dordognelibre https://www.dordognelibre.fr:443/sitemap-news.xml S W dorgio Dorgio https://dorgio.mn/rss R W ;; dorsetecho Dorsetecho https://www.dorsetecho.co.uk/news-sitemap.xml/ S W ;; dosflorines Dosflorines http://dosflorines.com.ar/news-sitemap.xml S es W drd DRD https://drd.com.br/sitemap.xml S pt W ;; droghedaleader Drogheda Leader Newspaper http://droghedaleader.ie/?feed=rss2 R W ;; droni Droni https://droni.al/sitemap-news.xml S W druzina Družina https://www.druzina.si/news-sitemap.xml S W ;; dsnews Dsnews https://www.dsnews.ua/news-sitemap.xml S uk W ;; dubaieye1038 Dubaieye1038 https://www.dubaieye1038.com/sitemap.xml S W@@ -684,13 +684,13 @@ ecosfueguinos Ecosfueguinos http://ecosfueguinos.com/sitemap.xml S W ;; ecuador edgenews Edge http://www.edgenews.co.za/sitemap.xml S W ;; edinburghnews-scotsman Edinburgh Evening News http://edinburghnews.scotsman.com/sitemap.xml S W marmiton Edito content Marmiton https://www.marmiton.org/feed R fr W ;; prensalatina Edição Portuguesa Prensa Latina https://www.prensalatina.com.br/feed/ R pt W edmontonjournal Edmontonjournal https://edmontonjournal.com/sitemap-news.xml S W M ;; edmontonsun Edmontonsun https://edmontonsun.com/sitemap-news.xml S W M-edp24 Edp24 https://www.edp24.co.uk/news-sitemap.xml/ S W ;; puri Eesti Purjetamise Liit https://puri.ee/feed/ R W ;; efe EFE https://efe.com/news-sitemap.xml S U+edp24 Edp24 https://www.edp24.co.uk/news-sitemap.xml/ S W ;; puri Eesti Purjetamise Liit https://puri.ee/feed/ R W ;; efe EFE https://efe.com/news-sitemap.xml S W effinghamdailynews Effinghamdailynews http://www.effinghamdailynews.com/sitemap.xml S W ;; eftekharnews Eftekharnews https://www.eftekharnews.com/sitemap.xml S W egemen Egemen https://egemen.kz/news-sitemap.xml S W ;; aboutkazakhstan Egemen Qazaqstan https://aboutkazakhstan.com/sitemap.xml S W egyptdailynews Egypt Daily News – Egypt News https://egyptdailynews.com/feed/ R W ;; egyptian-gazette Egyptian Gazette https://egyptian-gazette.com/feed/ R W egyptianstreets Egyptian Streets https://egyptianstreets.com/feed/ R W ;; eikernytt Eikernytt http://www.eikernytt.no/sitemap.xml S nb W torsdagsavisen Ejby Tordagsavisen http://www.torsdagsavisen.dk/sitemap.xml S da W ;; ejc EJC http://ejc.net/sitemap.xml S W ;; eju EJU https://eju.tv/feed/ R es W-el1digital El 1 http://www.el1digital.com.ar/sitemap.xml S es T ;; diarioelargentino El Argentino https://diarioelargentino.com/sitemap-news.xml S U+el1digital El 1 http://www.el1digital.com.ar/sitemap.xml S es T ;; diarioelargentino El Argentino https://diarioelargentino.com/sitemap-news.xml S W elboletin El Boletin https://www.elboletin.com/feed/ R es W ;; elcactus El Cactus https://elcactus.com.ar/feed/ R es W elcensordeloeste El Censor del Oeste Bonaerense http://elcensordeloeste.com/sitemap.xml S W ;; diarioelcentinela El Centinela http://diarioelcentinela.com/sitemap.xml S W noticieroelcirco El Circo https://www.noticieroelcirco.mx/sitemap.xml S es W ;; elciudadano-2 El Ciudadano https://www.elciudadano.com/feed/ R es W@@ -769,7 +769,7 @@ eljadidaexpress Eljadidaexpress https://www.eljadidaexpress.ma/sitemap.xml S W ellatinodehoy Ellatinodehoy http://www.ellatinodehoy.com/sitemap.xml S U ;; elmarplatense Elmarplatense https://www.elmarplatense.com/sitemap-news.xml S W elmercurio-com Elmercurio https://elmercurio.com.ec/news-sitemap.xml S W ;; elmon Elmon https://www.elmon.cat/sitemap-news.xml S W elmonterizo Elmonterizo https://elmonterizo.com/sitemap-news.xml S W ;; elmostrador Elmostrador https://www.elmostrador.cl/sitemap.xml S es W-elmundo-com Elmundo https://elmundo.com.bo/sitemap.xml S W ;; elnacional Elnacional https://www.elnacional.com/news-sitemap.xml S U+elmundo-com Elmundo https://elmundo.com.bo/sitemap.xml S W ;; elnacional Elnacional https://www.elnacional.com/news-sitemap.xml S W elnacionaldematanza Elnacionaldematanza http://elnacionaldematanza.com.ar/sitemap.xml S es W ;; elnortedecastilla Elnortedecastilla https://www.elnortedecastilla.es/sitemap.xml S es W elnuevodia-com Elnuevodia https://www.elnuevodia.com.co/googlenews.xml S es W ;; elnuevodiario-com Elnuevodiario https://elnuevodiario.com.do/news-sitemap.xml S W elobservador-com Elobservador https://www.elobservador.com.uy/sitemap-news.xml S W ;; elobservadordelsur Elobservadordelsur https://elobservadordelsur.com/sitemap.xml S W@@ -783,7 +783,7 @@ elsol Elsol https://www.elsol.com.ar/news-sitemap.xml S es W ;; elsoldenayarit E elsoldesanjuan Elsoldesanjuan https://elsoldesanjuan.com.ar/sitemap-news.xml S es W ;; elsoldesantelmo Elsoldesantelmo http://www.elsoldesantelmo.com.ar/sitemap.xml S es W elsuplente Elsuplente http://www.elsuplente.com/sitemap.xml S W ;; eltemps Eltemps https://www.eltemps.cat/sitemap-news.xml S W elterritorio Elterritorio http://www.elterritorio.com.ar/sitemap-news.xml S es W ;; eltiempo-com Eltiempo http://www.eltiempo.com.ve/feed/ R es W-eltribuno Eltribuno https://www.eltribuno.com/sitemap-news.xml S U ;; eltucumano Eltucumano https://www.eltucumano.com/sitemap.xml S W+eltribuno Eltribuno https://www.eltribuno.com/sitemap-news.xml S W ;; eltucumano Eltucumano https://www.eltucumano.com/sitemap.xml S W eluniversal Eluniversal https://www.eluniversal.com/sitemap.xml S W ;; elvigia Elvigia http://www.elvigia.com.mx/news-sitemap.xml S es W ;; elvocero Elvocero https://www.elvocero.com/sitemap.xml S W elvocerodigital Elvocerodigital http://www.elvocerodigital.com/sitemap.xml S W ;; em EM https://www.em.com.br/sitemap-news.xml S pt W emaratalyoum Emaratalyoum https://emaratalyoum.com/news-sitemap.xml S W ;; emisorasunidas Emisorasunidas https://emisorasunidas.com/sitemap.xml S W@@ -970,7 +970,7 @@ guatemala Guatemala https://www.guatemala.com/sitemap-news.xml S W ;; guelphmer guerrillero Guerrillero http://www.guerrillero.cu/sitemap_index.xml S W ;; guineainfomarket Guineainfomarket https://www.guineainfomarket.com/sitemap.xml S W guinee24 Guinee24 https://guinee24.com/sitemap.xml S W ;; guinee7 Guinee7 https://www.guinee7.com/news-sitemap.xml S W ;; guineeconakry Guineeconakry https://www.guineeconakry.info/sitemap.xml S W guineenews Guineenews https://guineenews.org/sitemap.xml S W ;; guineetime Guineetime https://www.guineetime.com/sitemap-news.xml S W-gujaratmitra Gujaratmitra http://www.gujaratmitra.in/sitemap.xml S hi W ;; gujaratsamachar Gujaratsamachar https://www.gujaratsamachar.com/news-sitemap.xml S U+gujaratmitra Gujaratmitra http://www.gujaratmitra.in/sitemap.xml S hi W ;; gujaratsamachar Gujaratsamachar https://www.gujaratsamachar.com/news-sitemap.xml S W gulfnews Gulfnews https://gulfnews.com/sitemap.xml S W ;; gulfweekly Gulfweekly https://www.gulfweekly.com:443/sitemap.xml S U gundemkibris Gundemkibris https://www.gundemkibris.com/sitemap-news.xml S W ;; guneyege Guneyege https://www.guneyege.net/sitemap-news.xml S W guruguay Guruguay https://www.guruguay.com/sitemap.xml S W ;; guyanainquirer Guyanainquirer https://guyanainquirer.com/sitemap.xml S W ;; gyonlineng GY Online https://gyonlineng.com/sitemap.xml S W@@ -994,7 +994,7 @@ harlemcommunitynews Harlemcommunitynews https://harlemcommunitynews.com/news-sit hartfordcitynewstimes Hartfordcitynewstimes http://www.hartfordcitynewstimes.com/sitemap.xml S W ;; hartlepool-mail Hartlepool Mail http://www.hartlepool-mail.co.uk/sitemap.xml S W hartvannederland Hartvannederland https://www.hartvannederland.nl/sitemap-news.xml S nl W ;; hlrecord Harvard Law Record https://www.hlrecord.org/sitemap.xml S L Massachusetts, United States haschcon Haschcon http://www.haschcon.com/sitemap_index.xml S W ;; 8am Hasht-e Subh / 8AM Media https://8am.media/sitemap.xml S W ;; haskovo Haskovo https://www.haskovo.net/sitemap-news.xml S W-hatawtabloid Hataw http://www.hatawtabloid.com/sitemap_index.xml S W ;; sondakikahatay Hatay Gazetesi https://www.sondakikahatay.com/news-sitemap.xml S U+hatawtabloid Hataw http://www.hatawtabloid.com/sitemap_index.xml S W ;; sondakikahatay Hatay Gazetesi https://www.sondakikahatay.com/news-sitemap.xml S W havanatimes Havanatimes https://havanatimes.org/sitemap.xml S W ;; hazyviewherald Hazyviewherald https://hazyviewherald.co.za/sitemap_index.xml S W haiti-observateur Haïti Observateur http://haiti-observateur.net/sitemap.xml S U ;; hbl HBL https://www.hbl.fi/sitemap-news.xml S fi W hcpress Hcpress http://www.hcpress.com/sitemap.xml S L North Carolina, United States ;; hd HD https://www.hd.se/sitemap-news.xml S sv W@@ -1037,7 +1037,7 @@ hpd hpd - Humanistischer Pressedienst - Der säkulare Blick auf die Welt https:/ hromadske Hromadske https://hromadske.tv/sitemap.xml S W ;; hrvatskarijec Hrvatskarijec http://www.hrvatskarijec.rs/sitemap.xml S W ;; baohatinh HTTV https://baohatinh.vn/tv/sitemap-news.xml S vi W huastecahoy Huastecahoy http://www.huastecahoy.com.mx/sitemap.xml S es W ;; hubcityspokes Hubcityspokes https://www.hubcityspokes.com/rss.xml R U huellas Huellas de Mexico https://huellas.mx/sitemap.xml S es W ;; huelvainformacion Huelva Información https://www.huelvainformacion.es/rss/ R es W-huffingtonpost-2 Huffingtonpost https://www.huffingtonpost.kr:443/sitemap.xml S U ;; huhuonline Huhuonline https://huhuonline.com/index.php?format=feed&type=rss R W+huffingtonpost-2 Huffingtonpost https://www.huffingtonpost.kr:443/sitemap.xml S W ;; huhuonline Huhuonline https://huhuonline.com/index.php?format=feed&type=rss R W humortimes Humortimes https://www.humortimes.com/sitemap.xml S U ;; hungarianconservative Hungarianconservative https://www.hungarianconservative.com/sitemap.xml S W huntnewsnu Huntnewsnu https://huntnewsnu.com/sitemap.xml S U ;; hvg HVG https://hvg.hu/rss R hu W ;; hameensanomat Hämeen Sanomat https://www.hameensanomat.fi/sitemap.xml S fi W iafrica Iafrica https://iafrica.com/sitemap.xml S W ;; iamexpat Iamexpat https://www.iamexpat.nl/sitemap-news.xml S nl W ;; ibtimes-3 IBTimes India : Top News https://www.ibtimes.co.in/rss/feed R W@@ -1141,7 +1141,7 @@ jamaicainquirer Jamaicainquirer http://www.jamaicainquirer.com/sitemap.xml S W davidpietrusza James M. Cox http://www.davidpietrusza.com/sitemap_index.xml S W ;; jrsinclair James Sinclair https://jrsinclair.com/index.rss R U jameshfisher Jameshfisher https://jameshfisher.com/feed.xml R U yesweekly Jamestown News https://www.yesweekly.com/search/?f=rss&t=article&c=news/jamestown_news&l=50&s=start_time&sd=desc R L North Carolina, United States-jamhurimedia-co Jamhuri http://www.jamhurimedia.co.tz/sitemap.xml S W ;; jansatta Jansatta https://www.jansatta.com/news-sitemap.xml S U+jamhurimedia-co Jamhuri http://www.jamhurimedia.co.tz/sitemap.xml S W ;; jansatta Jansatta https://www.jansatta.com/news-sitemap.xml S W japanmediareview Japan Media Review https://www.japanmediareview.com/feed/ R W ;; japanindustrynews Japanindustrynews https://www.japanindustrynews.com/sitemap.xml S W javanews Javanews https://javanews.al/sitemap.xml S W ;; javascriptweekly JavaScript Weekly https://javascriptweekly.com/rss R U ;; javeanews Javeanews http://www.javeanews.co.uk/sitemap.xml S W jawapos Jawapos https://www.jawapos.com/sitemap-news.xml S W ;; jb JB https://www.jb.com.br/sitemap-news.xml S pt W@@ -1157,7 +1157,7 @@ jp Jnytt https://www.jp.se/sitemap-news.xml S sv W ;; jobstoday-com Jobstoday ht joburgeastexpress Joburgeastexpress https://joburgeastexpress.co.za/sitemap_index.xml S W ;; thenational John Pring https://www.thenational.scot/news-sitemap.xml/ S W join Join http://www.join.ua/sitemap.xml S uk W ;; jonesborosun Jonesborosun https://www.jonesborosun.com/search/?f=rss&t=article&c=newport&l=50&s=start_time&sd=desc R U destroytoday Jonnie Hallman (@destroytoday) https://destroytoday.com/feeds/all R U ;; koreajoongangdaily Joongang Ilbo https://www.koreajoongangdaily.com/sitemap.xml S W-jbnews Joongbu Ilbo http://www.jbnews.com/sitemap.xml S W ;; diariojornada-com Jornada https://www.diariojornada.com.ar:443/sitemap.xml S U ;; jornal Jornal https://www.jornal.cat/sindica R ca W+jbnews Joongbu Ilbo http://www.jbnews.com/sitemap.xml S W ;; diariojornada-com Jornada https://www.diariojornada.com.ar:443/sitemap.xml S W ;; jornal Jornal https://www.jornal.cat/sindica R ca W jornaldascaldas Jornal das Caldas https://jornaldascaldas.pt/feed/ R pt W ;; jornaldebrasilia Jornal de Brasília https://jornaldebrasilia.com.br/feed/ R pt-BR W jornaldenegocios Jornal de Negocios https://www.jornaldenegocios.pt/rss R pt W ;; jtm-com Jornal Tribuna de Macau https://jtm.com.mo/feed/ R W jornalcruzeiro Jornalcruzeiro https://www.jornalcruzeiro.com.br/sitemap-news.xml S pt W ;; jornalggn Jornalggn https://jornalggn.com.br/sitemap-news.xml S pt W@@ -1229,7 +1229,7 @@ kristinehamnsaktuellt Kristinehamnsaktuellt http://www.kristinehamnsaktuellt.se/ krone Krone http://www.krone.at/sitemap.xml S de W ;; kruger2canyon Kruger2canyon https://kruger2canyon.co.za/sitemap.xml S W krugersdorpnews Krugersdorpnews https://krugersdorpnews.co.za/sitemap_index.xml S W ;; time4news Krymskoe Vremya http://www.time4news.org/sitemap.xml S W ksml Ksml https://www.ksml.fi/sitemap.xml S fi W ;; ksnmedia Ksnmedia https://ksnmedia.com/sitemap_index.xml S W ;; kstati Kstati https://kstati.net/sitemap.xml S U-ktpress Ktpress https://ktpress.rw/sitemap_index.xml S W ;; kul-alarab Kul Alarab https://www.kul-alarab.com/sitemap-news.xml S U+ktpress Ktpress https://ktpress.rw/sitemap_index.xml S W ;; kul-alarab Kul Alarab https://www.kul-alarab.com/sitemap-news.xml S W kultura-portal Kultura https://kultura-portal.ru/sitemap.xml S ru W ;; kun KUN https://kun.uz/news-sitemap.xml S W ;; kurier Kurier https://kurier.at/xml/rss R de W kurierlubelski Kurier Lubelski https://kurierlubelski.pl/rss R pl W ;; poranny Kurier Poranny https://poranny.pl/rss R pl W kurierwilenski Kurier Wileński https://www.kurierwilenski.lt/news-sitemap.xml S W ;; kvirispalitra Kvirispalitra https://kvirispalitra.ge/sitemap.xml S W @@ -1315,7 +1315,7 @@ lapresse LaPresse.ca - Actualités https://www.lapresse.ca/actualites/rss R fr W laprovinciadicomo Laprovinciadicomo https://www.laprovinciadicomo.it/sitemap-news.xml S it W ;; larazon Larazon https://www.larazon.es/sitemaps/news.xml S es W larazon-2 Larazon (es) https://larazon.pe/news-sitemap.xml S es W ;; lared Lared https://www.lared.am/sitemap.xml S W ;; larednoticias Larednoticias http://www.larednoticias.info/sitemap.xml S W laregion-2 Laregion https://laregion.cr/sitemap.xml S W ;; larepublica Larepublica https://larepublica.pe/sitemap/noticias.xml S es W-larepublica-3 Larepublica (EN) https://www.larepublica.net/sitemap.xml S W ;; larepubliquedespyrenees Larepubliquedespyrenees https://www.larepubliquedespyrenees.fr:443/sitemap-news.xml S U+larepublica-3 Larepublica (EN) https://www.larepublica.net/sitemap.xml S W ;; larepubliquedespyrenees Larepubliquedespyrenees https://www.larepubliquedespyrenees.fr:443/sitemap-news.xml S W larioja Larioja https://www.larioja.com/sitemap.xml S W ;; lariojaesnoticia Lariojaesnoticia http://lariojaesnoticia.com.ar/sitemap.xml S es W larvik24 Larvik24 http://www.larvik24.no/sitemap.xml S nb W ;; reviewjournal Las Vegas Review-Journal http://www.reviewjournal.com/sitemap.xml S U las2orillas Las2orillas https://www.las2orillas.co/news-sitemap.xml S es W ;; lasamericasnews Lasamericasnews https://www.lasamericasnews.com/sitemap.xml S U@@ -1403,7 +1403,7 @@ lmneuquen Lmneuquen https://www.lmneuquen.com/news-sitemap.xml S W ;; lankanews lobosnews Lobosnews http://lobosnews.com.ar/sitemap.xml S es W ;; localnewspapers-co Localnewspapers https://localnewspapers.co.nz/sitemap.xml S W lockportjournal Lockport Union-Sun & Journal http://www.lockportjournal.com/sitemap.xml S L New York, United States ;; lodzpost Lodzpost http://lodzpost.com/sitemap.xml S W logos-pres Logos Press https://logos-pres.md/news-sitemap.xml S W ;; loimaanlehti Loimaanlehti https://www.loimaanlehti.fi/sitemap.xml S fi W ;; lokalno Lokalno https://lokalno.mk/sitemap.xml S W-lokmat Lokmat https://www.lokmat.com/sitemap.xml S W ;; loksatta Loksatta https://www.loksatta.com/news-sitemap.xml S U+lokmat Lokmat https://www.lokmat.com/sitemap.xml S W ;; loksatta Loksatta https://www.loksatta.com/news-sitemap.xml S W lompocrecord Lompocrecord http://www.lompocrecord.com/sitemap.xml S L California, United States lonestaricon Lone Star Iconoclast http://www.lonestaricon.com/sitemap.xml S L Texas, United States ;; lonepeaklookout Lonepeaklookout http://www.lonepeaklookout.com/sitemap_index.xml S U longfordleader Longford Live https://www.longfordleader.ie/sitemap.xml S W ;; lookleft Lookleft https://www.lookleft.ie/sitemap.xml S W ;; lopinion Lopinion http://www.lopinion.ma/sitemap.xml S W@@ -1648,7 +1648,7 @@ nogoyatimes Nogoyatimes http://nogoyatimes.com/sitemap.xml S W ;; noiseatunsw N noizz-2 Noizz (EN) https://noizz.rs?rss R W ;; noklapja Noklapja https://www.noklapja.hu/news-sitemap.xml S hu W nolangroupmedia Nolangroupmedia https://www.nolangroupmedia.com/sitemap.xml S L Kentucky, United States ;; oragark Nor Hayastan http://www.oragark.com/sitemap.xml S U nordrenett Nordre http://www.nordrenett.no/sitemap.xml S nb W ;; idag Norge Idag http://www.idag.no/sitemap.xml S nb W-norrteljetidning Norrteljetidning https://www.norrteljetidning.se/sitemap-news.xml S sv W ;; ntb Norsk Telegrambyra https://www.ntb.no:443/sitemap.xml S U+norrteljetidning Norrteljetidning https://www.norrteljetidning.se/sitemap-news.xml S sv W ;; ntb Norsk Telegrambyra https://www.ntb.no:443/sitemap.xml S W nortedigital Norte de Ciudad Juarez http://nortedigital.mx/sitemap_index.xml S es W ;; nortecorrientes Norte de Corrientes https://www.nortecorrientes.com/sitemap-news.xml S W nortemisionero Nortemisionero http://www.nortemisionero.com.ar/sitemap_index.xml S es W ;; hothamhistory-org North Melbourne Advertiser http://www.hothamhistory.org.au/sitemap.xml S W dailypost-2 North Wales Live https://www.dailypost.co.uk/?service=rss R W ;; northamptonchron Northampton Chronicle & Echo http://www.northamptonchron.co.uk/sitemap.xml S W@@ -1792,7 +1792,7 @@ parismatch Parismatch https://parismatch.com/sitemap.xml S W ;; parkcitiesnews parlamentario Parlamentario http://www.parlamentario.com/sitemap.xml S W ;; parlamentnilisty Parlamentnilisty http://www.parlamentnilisty.cz/export/rss.aspx R cs W paron Paron https://www.paron.gr/news-sitemap.xml S el W ;; parstoday Parstoday http://parstoday.com/sitemap.xml S W ;; parysgazette Parysgazette https://parysgazette.co.za/sitemap_index.xml S W patagonia-news Patagonia News http://patagonia-news.com.ar/sitio/feed/ R es W ;; patient Patient.info FeatureArticle https://patient.info/rss R U M-patrika Patrika https://www.patrika.com/sitemap.xml S U ;; patriotpost Patriotpost http://patriotpost.us/sitemap.xml S U+patrika Patrika https://www.patrika.com/sitemap.xml S W ;; patriotpost Patriotpost http://patriotpost.us/sitemap.xml S U patrisnews PatrisNews – Εφημερίδα Πατρίς Ηλείας https://www.patrisnews.com/feed/ R el W ;; patzcuaronoticias Patzcuaronoticias https://patzcuaronoticias.com/sitemap.xml S W pbs PBS News Hour https://www.pbs.org/sitemap.xml S U ;; pcgamesn Pcgamesn https://www.pcgamesn.com/mainrss.xml R U ;; pelop Pelop https://pelop.gr/news-sitemap.xml S el W penangstory-net Penangstory Net http://penangstory.net.my/sitemap.xml S ms W ;; penarthtimes Penarthtimes https://www.penarthtimes.co.uk/news-sitemap.xml/ S W@@ -1898,7 +1898,7 @@ pueblaonline Pueblaonline https://www.pueblaonline.com.mx/news-sitemap.xml S es pulse Pulse https://www.pulse.ng/sitemap-news.xml S W ;; pulse-co Pulse (EN) https://www.pulse.co.ke/sitemap-news.xml S W ;; pulse-com Pulse Ghana https://www.pulse.com.gh/sitemap-news.xml S W pulsetasmania Pulsetasmania https://pulsetasmania.com.au/sitemap.xml S W ;; pulzo Pulzo https://www.pulzo.com/sitemap.xml S W punchng Punch Newspapers https://rss.punchng.com/v1/category/latest_news R U ;; punjabexpress Punjabexpress http://www.punjabexpress.com.au/sitemap_index.xml S W-punjabinfoline Punjabinfoline http://www.punjabinfoline.com/sitemap.xml S W ;; punjabitribuneonline Punjabitribuneonline https://www.punjabitribuneonline.com:443/sitemap-news.xml S U+punjabinfoline Punjabinfoline http://www.punjabinfoline.com/sitemap.xml S W ;; punjabitribuneonline Punjabitribuneonline https://www.punjabitribuneonline.com:443/sitemap-news.xml S W punjabmailusa Punjabmailusa http://www.punjabmailusa.com/sitemap_index.xml S W ;; punjabnewstimes Punjabnewstimes https://www.punjabnewstimes.com/news-sitemap.xml S W puntal Puntal https://www.puntal.com.ar/news-sitemap.xml S es W ;; puntlandpost PuntlandPost http://www.puntlandpost.com/sitemap.xml S W puntlandpost-2 Puntlandpost (EN) https://www.puntlandpost.net/sitemap.xml S W ;; diariopuntual Puntual https://diariopuntual.com/news-sitemap.xml S W@@ -2274,7 +2274,7 @@ easthamptonstar The East Hampton Star - East Hampton Town's Newspaper of Record easternecho The Eastern Echo http://www.easternecho.com/sitemap.xml S L Michigan, United States ;; echolive The Echo https://www.echolive.ie/feed/395-EE_Top_news.xml R W pghistory The Enquirer-Gazette http://pghistory.org/sitemap.xml S U ;; theexaminer The Examiner https://www.theexaminer.com:443/rss.xml R U express The Express News https://www.express.pk/feed/ R W ;; nassauguardian The Freeport News https://nassauguardian.net/sitemap.xml S U-gq The Fresno Bee https://www.gq.com/sitemap.xml S L M California, United States ;; gaffneyledger The Gaffney Ledger http://www.gaffneyledger.com/sitemap.xml S U+gq GQ https://www.gq.com/sitemap.xml S U M ;; gaffneyledger The Gaffney Ledger http://www.gaffneyledger.com/sitemap.xml S U younoodle The Gateway http://younoodle.com/sitemap.xml S W ;; gaudie The Gaudie https://www.gaudie.co.uk/wpress/index.php/feed/ R W ;; gazette The Gazette https://gazette.com/news-sitemap.xml S W gettysburgtimes The Gettysburg Times http://www.gettysburgtimes.com/sitemap.xml S L Pennsylvania, United States pointparkglobe The Globe https://www.pointparkglobe.com/sitemap.xml S L Pennsylvania, United States@@ -2500,7 +2500,7 @@ tvn TVN Tucuman Vivo Noticias https://tvn.com.ar/sitemap-news.xml S es W ;; tvve twincitiesarts Twincitiesarts https://twincitiesarts.com/sitemap.xml S L Minnesota, United States ;; twocircles Twocircles https://twocircles.net/feed R W 24tp Tygodnik Podhalanski https://24tp.pl/news-sitemap.xml S pl W ;; tylerpaper Tyler Morning Telegraph https://www.tylerpaper.com/sitemap-news.xml S L Texas, United States tynpanama Tynpanama https://tynpanama.com/news-sitemap.xml S W ;; typologies Typologies https://www.typologies.gr/news-sitemap.xml S el W ;; typos-com Typos https://typos.com.cy/sitemap-news.xml S W-tyronecourier Tyronecourier https://www.tyronecourier.co.uk/sitemap.xml S W ;; booksfromfinland Työmies http://www.booksfromfinland.fi/sitemap.xml S fi U ;; tz tz http://www.tz.de/rssfeed.rdf R de W+tyronecourier Tyronecourier https://www.tyronecourier.co.uk/sitemap.xml S W ;; booksfromfinland Työmies http://www.booksfromfinland.fi/sitemap.xml S fi W ;; tz tz http://www.tz.de/rssfeed.rdf R de W taarnbybladet Tårnby Bladet http://www.taarnbybladet.dk/feed/ R da W ;; turkiyegazetesi Türkiye - Türkiye Gazetesi son dakika internet haberleri http://www.turkiyegazetesi.com/sitemap.xml S W tyzden týždeň - iný pohľad na spoločnosť https://www.tyzden.sk/feed/ R sk W ;; u71news U71news https://www.u71news.com/sitemap.xml S W ;; uai UAI https://www.uai.com.br/sitemap-news.xml S pt W ubedadigital Ubedadigital http://www.ubedadigital.es/sitemap_index.xml S es W ;; knowledgecenter-ubt-uni UBT Knowledge Center https://knowledgecenter.ubt-uni.net/recent.rss R W@@ -2824,8 +2824,8 @@ ecoute-de Écoute https://www.ecoute.de/sitemaps/news.xml S fr W hbrarabic-co هارفارد بزنس ريفيو https://hbrarabic.com/feed R ar U cleveland-co cleveland.com https://www.cleveland.com/arc/outboundfeeds/rss/?outputType=xml R en U i-d-co i-d.co https://i-d.co/feed/ R en W -businessinsider-es Business Insider - Lo último https://www.businessinsider.es/rss/ R en U -businessinsider-com-pl businessinsider.com.pl businessinsider.com.pl https://businessinsider.com.pl/.feed R en U +businessinsider-es Business Insider - Lo último https://www.businessinsider.es/rss/ R en W +businessinsider-com-pl businessinsider.com.pl businessinsider.com.pl https://businessinsider.com.pl/.feed R en W de-gegenstandpunkt-co Aktuelle frei lesbare Artikel https://de.gegenstandpunkt.com/rss.xml R de W magcomi-co マグコミ|マッグガーデン発のWEBマンガサイト https://magcomi.com/atom R ja W ananweb-jp anan https://ananweb.jp/feed R ja W @@ -2836,7 +2836,7 @@ bisweb-jp bis[ビス]| bisweb.jp https://bisweb.jp/feed R ja W nonno-hpplus-jp Non-no https://nonno.hpplus.jp/news-sitemap.xml S ja W gq-magazine-co-uk GQ UK https://www.gq-magazine.co.uk/feed/rss R en U pcworld-co PCWorld https://www.pcworld.com/feed R en U -gamez-nl Gamez https://gamez.nl/feed/ R nl U +gamez-nl Gamez https://gamez.nl/feed/ R nl W lejdd-fr Toute l'actualité du Journal du dimanche https://www.lejdd.fr/rss.xml R fr W loudersound-co Latest from Louder https://www.loudersound.com/feeds.xml R en W commonwealmagazine-or Commonweal Magazine https://www.commonwealmagazine.org/rss.xml R en U @@ -3687,7 +3687,7 @@ api-apu-fi Frontpage https://api.apu.fi/rss R fi W online-le-ee Lääne Elu https://online.le.ee/feed/ R et W focus-it Focus.it - https://www.focus.it/rss R it W focusjunior-it FocusJunior.it https://www.focusjunior.it/feed/ R it W -stuff-co-za Stuff South Africa https://stuff.co.za/feed/ R en U +stuff-co-za Stuff South Africa https://stuff.co.za/feed/ R en W elinformadorve-co El Informador Venezuela https://elinformadorve.com/feed/ R es W elmanana-com-mx El Mañana https://elmanana.com.mx/sitemaps/news.xml S es W elnuevocojo-co El Nuevo Cojo Ilustrado https://www.elnuevocojo.com/feed/ R es W @@ -4724,7 +4724,7 @@ uphere-ca Up Here Publishing - The Voice of Canada's Far North https://uphere.ca urbanacitizen-co Urbana Daily Citizen https://www.urbanacitizen.com/feed/ R en U vabaeestisona-co Free Estonian Word https://www.vabaeestisona.com/feed/ R en U vaildaily-co Vail Daily https://www.vaildaily.com/feed R en U -pcppl-in 123bet https://pcppl.in/feed/ R vi U +pcppl-in 123bet https://pcppl.in/feed/ R vi W labiblioteka-lt LAB https://labiblioteka.lt/feed/ R lt W vanmag-co Vancouver Magazine https://vanmag.com/feed/ R en W vanidades-co Vanidades https://www.vanidades.com/index.atom R es U @@ -5045,7 +5045,7 @@ ratusha-lviv-ua Газета Ратуша https://ratusha.lviv.ua/feed/ R uk W commons-com-ua Спільне Commons https://commons.com.ua/uk/feed/ R uk W uc-kr-ua "Україна-Центр" https://uc.kr.ua/feed/ R uk W litgazeta-com-ua Litgazeta.com.ua https://litgazeta.com.ua/feed/ R uk W -diasporiana-org-ua Diasporiana Електронна бібліотека https://diasporiana.org.ua/feed R uk U +diasporiana-org-ua Diasporiana Електронна бібліотека https://diasporiana.org.ua/feed R uk W chasipodii-ne chasipodii.net https://chasipodii.net/feed/ R en W shepvisnyk-com-ua Редакції газети "Шепетівський вісник" https://shepvisnyk.com.ua/feed/ R uk W up-mk-ua Південна правда https://up.mk.ua/ru/articles.rss R ru W @@ -5383,7 +5383,7 @@ mediazona-ca Медиазона Центральная Азия https://mediazon sodrasidan-se sodrasidan.se https://sodrasidan.se/feed/ R sv W telanganatoday-co Telangana Today https://telanganatoday.com/news-sitemap.xml S en W natcommag-substack-co National Communications Magazine https://natcommag.substack.com/feed R en U -valitutpalat-fi Valitut Palat https://www.valitutpalat.fi/feed R fi U +valitutpalat-fi Valitut Palat https://www.valitutpalat.fi/feed R fi W grani-lv ������� ����������� � ������. ����� ������� ��� �� �����.LV https://www.grani.lv/rss.xml R ru W classicpopmag-co Classic Pop Magazine https://www.classicpopmag.com/feed/ R en W fifetoday-co-uk Fife Today https://www.fifetoday.co.uk/rss R en W
news/schemas/com.vayunmathur.news.data.NewsDatabase/3.json
diff --git a/news/schemas/com.vayunmathur.news.data.NewsDatabase/3.json b/news/schemas/com.vayunmathur.news.data.NewsDatabase/3.jsonnew file mode 100644index 0000000000..ba0c0544a1--- /dev/null+++ b/news/schemas/com.vayunmathur.news.data.NewsDatabase/3.json@@ -0,0 +1,144 @@+{+ "formatVersion": 1,+ "database": {+ "version": 3,+ "identityHash": "b76feb1b0b399e4c9779eca8cd4c073c",+ "entities": [+ {+ "tableName": "CachedArticle",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `sourceId` TEXT NOT NULL, `title` TEXT NOT NULL, `publishedAtMillis` INTEGER NOT NULL, `imageUrl` TEXT, `keywords` TEXT NOT NULL, `fetchedAtMillis` INTEGER NOT NULL, `bookmarked` INTEGER NOT NULL, `storyId` TEXT, `storyOneLiner` TEXT, `storyTitle` TEXT, `topics` TEXT NOT NULL, PRIMARY KEY(`url`))",+ "fields": [+ {+ "fieldPath": "url",+ "columnName": "url",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "sourceId",+ "columnName": "sourceId",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "title",+ "columnName": "title",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "publishedAtMillis",+ "columnName": "publishedAtMillis",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "imageUrl",+ "columnName": "imageUrl",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "keywords",+ "columnName": "keywords",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "fetchedAtMillis",+ "columnName": "fetchedAtMillis",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "bookmarked",+ "columnName": "bookmarked",+ "affinity": "INTEGER",+ "notNull": true+ },+ {+ "fieldPath": "storyId",+ "columnName": "storyId",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "storyOneLiner",+ "columnName": "storyOneLiner",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "storyTitle",+ "columnName": "storyTitle",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "topics",+ "columnName": "topics",+ "affinity": "TEXT",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "url"+ ]+ }+ },+ {+ "tableName": "CachedBody",+ "createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`url` TEXT NOT NULL, `title` TEXT NOT NULL, `byline` TEXT, `publishedAtMillis` INTEGER, `heroImageUrl` TEXT, `blocksJson` TEXT NOT NULL, `fetchedAtMillis` INTEGER NOT NULL, PRIMARY KEY(`url`))",+ "fields": [+ {+ "fieldPath": "url",+ "columnName": "url",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "title",+ "columnName": "title",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "byline",+ "columnName": "byline",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "publishedAtMillis",+ "columnName": "publishedAtMillis",+ "affinity": "INTEGER"+ },+ {+ "fieldPath": "heroImageUrl",+ "columnName": "heroImageUrl",+ "affinity": "TEXT"+ },+ {+ "fieldPath": "blocksJson",+ "columnName": "blocksJson",+ "affinity": "TEXT",+ "notNull": true+ },+ {+ "fieldPath": "fetchedAtMillis",+ "columnName": "fetchedAtMillis",+ "affinity": "INTEGER",+ "notNull": true+ }+ ],+ "primaryKey": {+ "autoGenerate": false,+ "columnNames": [+ "url"+ ]+ }+ }+ ],+ "setupQueries": [+ "CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",+ "INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'b76feb1b0b399e4c9779eca8cd4c073c')"+ ]+ }+}\ No newline at end of file
news/src/main/java/com/vayunmathur/news/data/NewsDatabase.kt
diff --git a/news/src/main/java/com/vayunmathur/news/data/NewsDatabase.kt b/news/src/main/java/com/vayunmathur/news/data/NewsDatabase.ktindex 2d46a1589c..62eaf711ac 100644--- a/news/src/main/java/com/vayunmathur/news/data/NewsDatabase.kt+++ b/news/src/main/java/com/vayunmathur/news/data/NewsDatabase.kt@@ -31,6 +31,8 @@ data class CachedArticle( val storyOneLiner: String? = null, /** Server canonical story headline, if any. */ val storyTitle: String? = null,+ /** Server headline topics, comma-joined (`science,technology`); empty when none. */+ val topics: String = "", ) /** Cached extracted body (blocks as JSON), so read articles open offline. */@@ -104,7 +106,7 @@ interface NewsDao { suspend fun pruneArticles(keep: Int) } -@Database(entities = [CachedArticle::class, CachedBody::class], version = 2, exportSchema = true)+@Database(entities = [CachedArticle::class, CachedBody::class], version = 3, exportSchema = true) abstract class NewsDatabase : RoomDatabase() { abstract fun newsDao(): NewsDao @@ -116,6 +118,10 @@ abstract class NewsDatabase : RoomDatabase() { it.execSQL("ALTER TABLE `CachedArticle` ADD COLUMN `storyOneLiner` TEXT") it.execSQL("ALTER TABLE `CachedArticle` ADD COLUMN `storyTitle` TEXT") },+ // v3: server headline topics for Science/Technology filing.+ Migration(2, 3) {+ it.execSQL("ALTER TABLE `CachedArticle` ADD COLUMN `topics` TEXT NOT NULL DEFAULT ''")+ }, ) } }
news/src/main/java/com/vayunmathur/news/data/NewsRepository.kt
diff --git a/news/src/main/java/com/vayunmathur/news/data/NewsRepository.kt b/news/src/main/java/com/vayunmathur/news/data/NewsRepository.ktindex 71db088655..c490ffb808 100644--- a/news/src/main/java/com/vayunmathur/news/data/NewsRepository.kt+++ b/news/src/main/java/com/vayunmathur/news/data/NewsRepository.kt@@ -13,6 +13,7 @@ import com.vayunmathur.news.domain.NewsSource import com.vayunmathur.news.domain.ServerFeedParser import com.vayunmathur.news.domain.SitemapParser import com.vayunmathur.news.domain.SourceCatalog+import com.vayunmathur.news.domain.StoryFeedCap import com.vayunmathur.news.network.Networking import kotlinx.coroutines.CancellationException import kotlinx.coroutines.CoroutineDispatcher@@ -94,10 +95,13 @@ class NewsRepository internal constructor( Log.dev(TAG, "refresh server feed unchanged stamp=${serverFeed.stamp}; skipping merge") return emptyList() }- val capped = FeedMerger.merge(listOf(serverFeed.articles), limit = MAX_CACHED_ARTICLES)+ // Story-aware cap at the server feed's own size: a flat+ // newest-first cap cut popular stories' older members+ // (see StoryFeedCap). The crawl path keeps the 500 cap.+ val capped = StoryFeedCap.cap(serverFeed.articles, limit = MAX_SERVER_FEED_ARTICLES) if (capped.isNotEmpty()) { publish(capped)- dao.pruneArticles(keep = MAX_CACHED_ARTICLES)+ dao.pruneArticles(keep = MAX_SERVER_FEED_ARTICLES) } if (capped.isNotEmpty()) rememberFeedStamp(serverFeed.stamp) Log.dev(TAG, "refresh server feed landed articles=${capped.size}")@@ -247,6 +251,7 @@ class NewsRepository internal constructor( fetchedAtMillis = now, bookmarked = article.url in bookmarked, storyId = article.serverStoryId, storyOneLiner = article.storyOneLiner, storyTitle = article.serverStoryTitle,+ topics = article.topics.joinToString(","), ) } val existingByUrl = dao.allArticles().associateBy { it.url }@@ -301,6 +306,9 @@ class NewsRepository internal constructor( private const val MAX_ARTICLES_PER_SOURCE = 200 private const val MAX_CACHED_ARTICLES = 500 + /** Server-feed cache size: the published feed's full 2,500, story-capped. */+ private const val MAX_SERVER_FEED_ARTICLES = 2500+ @Volatile private var instance: NewsRepository? = null @@ -317,6 +325,7 @@ internal fun CachedArticle.toFeedArticle(): FeedArticle = FeedArticle( keywords = keywords.split(",").map { it.trim() }.filter { it.isNotEmpty() }, language = SourceCatalog.byId(sourceId)?.language, serverStoryId = storyId, storyOneLiner = storyOneLiner, serverStoryTitle = storyTitle,+ topics = topics.split(",").map { it.trim() }.filter { it.isNotEmpty() }, ) internal fun ExtractedArticle.toCached(json: Json): CachedBody = CachedBody(
news/src/main/java/com/vayunmathur/news/domain/FeedModels.kt
diff --git a/news/src/main/java/com/vayunmathur/news/domain/FeedModels.kt b/news/src/main/java/com/vayunmathur/news/domain/FeedModels.ktindex f109d3d91f..ebbf85ca8b 100644--- a/news/src/main/java/com/vayunmathur/news/domain/FeedModels.kt+++ b/news/src/main/java/com/vayunmathur/news/domain/FeedModels.kt@@ -34,6 +34,14 @@ data class FeedArticle( val storyOneLiner: String? = null, /** Server canonical story headline (`story_title`), if it differs. */ val serverStoryTitle: String? = null,+ /**+ * Server headline-classified topics (`topics` in news.json:+ * `science` / `technology`). Lets a generalist source's science+ * or tech story file under Science/Technology, which source-tag+ * inheritance alone starves (21 Science sources in the catalog).+ * Persisted in Room (CachedArticle.topics).+ */+ val topics: List<String> = emptyList(), ) /** One block of an extracted article body, in reading order. */
news/src/main/java/com/vayunmathur/news/domain/ServerFeedParser.kt
diff --git a/news/src/main/java/com/vayunmathur/news/domain/ServerFeedParser.kt b/news/src/main/java/com/vayunmathur/news/domain/ServerFeedParser.ktindex b1d8e7e817..1b85d1be0d 100644--- a/news/src/main/java/com/vayunmathur/news/domain/ServerFeedParser.kt+++ b/news/src/main/java/com/vayunmathur/news/domain/ServerFeedParser.kt@@ -102,6 +102,9 @@ object ServerFeedParser { imageUrl = obj.string("image_url"), metered = (obj["metered"] as? JsonPrimitive)?.contentOrNull?.toBooleanStrictOrNull() ?: false, language = obj.string("language") ?: source?.language,+ topics = (obj["topics"] as? JsonArray)?.mapNotNull {+ (it as? JsonPrimitive)?.contentOrNull?.trim()?.takeIf { t -> t.isNotEmpty() }+ } ?: emptyList(), serverStoryId = obj.string("story_id"), storyOneLiner = obj.string("story_one_liner") ?: obj.string("story_oneliner") ?: obj.string("story_summary"),
news/src/main/java/com/vayunmathur/news/domain/Story.kt
diff --git a/news/src/main/java/com/vayunmathur/news/domain/Story.kt b/news/src/main/java/com/vayunmathur/news/domain/Story.ktindex 3d54d99e94..a48429b9ab 100644--- a/news/src/main/java/com/vayunmathur/news/domain/Story.kt+++ b/news/src/main/java/com/vayunmathur/news/domain/Story.kt@@ -76,8 +76,26 @@ data class Story( * location set, no story is Local. */ fun matchesFeedFilter(category: NewsCategory?, location: String?): Boolean =- category == null ||- articles.any { SourceCatalog.matchesFeedFilter(it.sourceId, category, location) }+ when (category) {+ null -> true+ // Local semantics unchanged: any member from the user's+ // set location (never device location, never substituted).+ NewsCategory.LOCAL ->+ articles.any { SourceCatalog.matchesFeedFilter(it.sourceId, category, location) }+ // Topic tabs: a member files by its source tag OR by the+ // server's headline topic classification, so a generalist's+ // science/tech story is not invisible to these tabs.+ NewsCategory.SCIENCE, NewsCategory.TECHNOLOGY ->+ articles.any {+ SourceCatalog.matchesCategory(it.sourceId, category) ||+ category.name.lowercase() in it.topics+ }+ // Geographic tabs follow the representative (lead)+ // article's source: any-member union filed a Spanish+ // World-source Chelsea-Liverpool live blog under US+ // because one later member was a US-tagged outlet.+ else -> SourceCatalog.matchesFeedFilter(representative.sourceId, category, location)+ } } /**
news/src/main/java/com/vayunmathur/news/domain/StoryFeedCap.kt
diff --git a/news/src/main/java/com/vayunmathur/news/domain/StoryFeedCap.kt b/news/src/main/java/com/vayunmathur/news/domain/StoryFeedCap.ktnew file mode 100644index 0000000000..fcdf1f9d72--- /dev/null+++ b/news/src/main/java/com/vayunmathur/news/domain/StoryFeedCap.kt@@ -0,0 +1,41 @@+package com.vayunmathur.news.domain++/**+ * Story-aware cap for the server feed before it enters the Room+ * cache. A flat newest-first take(limit) (the old `FeedMerger` cap+ * at 500) cuts the older members of the most-covered stories first:+ * measured on the live 2,500-article feed it collapsed the largest+ * groupings to 7, 4, 3, 3, 2 sources, California from 4 stories to+ * 1, and Science from 5 stories to 0.+ *+ * Instead: group and rank exactly as the feed does ([FeedRanking]),+ * keep whole stories in that order while they fit, then fill any+ * remaining room with the newest unselected articles. Output order+ * is story-rank order (the cache re-groups and re-ranks on read, so+ * this order only decides *what survives*, never display order).+ */+object StoryFeedCap {++ fun cap(articles: List<FeedArticle>, limit: Int): List<FeedArticle> {+ if (articles.size <= limit || limit <= 0) return articles+ val ranked = FeedRanking.rankStories(articles)+ val selected = HashSet<String>()+ val out = mutableListOf<FeedArticle>()+ for (story in ranked) {+ if (out.size + story.articles.size > limit) continue+ for (article in story.articles) {+ if (selected.add(article.url)) out += article+ }+ }+ if (out.size < limit) {+ val rest = articles+ .filter { it.url !in selected }+ .sortedByDescending { it.publishedAtMillis }+ for (article in rest) {+ if (out.size >= limit) break+ if (selected.add(article.url)) out += article+ }+ }+ return out+ }+}
news/src/main/java/com/vayunmathur/news/platform/NewsViewModel.kt
diff --git a/news/src/main/java/com/vayunmathur/news/platform/NewsViewModel.kt b/news/src/main/java/com/vayunmathur/news/platform/NewsViewModel.ktindex 653191bb81..31ffca8b8c 100644--- a/news/src/main/java/com/vayunmathur/news/platform/NewsViewModel.kt+++ b/news/src/main/java/com/vayunmathur/news/platform/NewsViewModel.kt@@ -85,7 +85,16 @@ class NewsViewModel( val searchResults: StateFlow<List<CachedArticle>> = combine( _searchResults, _categoryFilter, localLocation, ) { results, category, location ->- results.filter { SourceCatalog.matchesFeedFilter(it.sourceId, category, location) }+ results.filter { article ->+ // Topic tabs also accept the server's headline topics, as in Story.matchesFeedFilter.+ if ((category == NewsCategory.SCIENCE || category == NewsCategory.TECHNOLOGY) &&+ category.name.lowercase() in article.topics.split(",").map { it.trim() }+ ) {+ true+ } else {+ SourceCatalog.matchesFeedFilter(article.sourceId, category, location)+ }+ } }.stateIn(viewModelScope, SharingStarted.WhileSubscribed(5_000), emptyList()) /** Search hits expanded to their whole stories, relevance order kept. */
news/src/main/resources/source_catalog.tsv.br
diff --git a/news/src/main/resources/source_catalog.tsv.br b/news/src/main/resources/source_catalog.tsv.brindex e61b39aad1..b91aa0836b 100644Binary files a/news/src/main/resources/source_catalog.tsv.br and b/news/src/main/resources/source_catalog.tsv.br differ
news/src/test/java/com/vayunmathur/news/domain/LocalNewsTest.kt
diff --git a/news/src/test/java/com/vayunmathur/news/domain/LocalNewsTest.kt b/news/src/test/java/com/vayunmathur/news/domain/LocalNewsTest.ktindex 996e5398df..7b73232a13 100644--- a/news/src/test/java/com/vayunmathur/news/domain/LocalNewsTest.kt+++ b/news/src/test/java/com/vayunmathur/news/domain/LocalNewsTest.kt@@ -12,7 +12,7 @@ class LocalNewsTest { val locals = SourceCatalog.sources.filter { NewsCategory.LOCAL in it.categories } // 36 curated + 319 generated (curate.py + curate_r2.py provenance; // 9 Georgian-country / Cuban rows reclassified to World, below).- assertEquals(355, locals.size)+ assertEquals(354, locals.size) for (source in locals) { assertTrue(!source.region.isNullOrBlank(), "${source.id} has no region") }
news/src/test/java/com/vayunmathur/news/domain/SourceCatalogAssetTest.kt
diff --git a/news/src/test/java/com/vayunmathur/news/domain/SourceCatalogAssetTest.kt b/news/src/test/java/com/vayunmathur/news/domain/SourceCatalogAssetTest.ktindex 39fd8efcd3..c971b1594c 100644--- a/news/src/test/java/com/vayunmathur/news/domain/SourceCatalogAssetTest.kt+++ b/news/src/test/java/com/vayunmathur/news/domain/SourceCatalogAssetTest.kt@@ -37,23 +37,23 @@ class SourceCatalogAssetTest { "verification; some articles may still truncate." }, )- assertEquals(355, sources.count { it.region != null })+ assertEquals(354, sources.count { it.region != null }) assertEquals(66, SourceCatalog.localRegions.size) } @Test fun frozenCountsPerCategoryAndLanguage() { val primary = sources.groupingBy { it.primaryCategory }.eachCount()- assertEquals(9553, primary[NewsCategory.WORLD])- assertEquals(1329, primary[NewsCategory.US])- assertEquals(355, primary[NewsCategory.LOCAL])+ assertEquals(9581, primary[NewsCategory.WORLD])+ assertEquals(1302, primary[NewsCategory.US])+ assertEquals(354, primary[NewsCategory.LOCAL]) assertEquals(123, primary[NewsCategory.TECHNOLOGY]) assertEquals(18, primary[NewsCategory.SCIENCE]) val tags = NewsCategory.entries.associateWith { category -> sources.count { category in it.categories } }- assertEquals(9553, tags[NewsCategory.WORLD])- assertEquals(1330, tags[NewsCategory.US])- assertEquals(355, tags[NewsCategory.LOCAL])+ assertEquals(9581, tags[NewsCategory.WORLD])+ assertEquals(1303, tags[NewsCategory.US])+ assertEquals(354, tags[NewsCategory.LOCAL]) assertEquals(124, tags[NewsCategory.TECHNOLOGY]) assertEquals(21, tags[NewsCategory.SCIENCE]) assertEquals(85, sources.map { it.language }.distinct().size)
news/src/test/java/com/vayunmathur/news/domain/StoryFeedCapTest.kt
diff --git a/news/src/test/java/com/vayunmathur/news/domain/StoryFeedCapTest.kt b/news/src/test/java/com/vayunmathur/news/domain/StoryFeedCapTest.ktnew file mode 100644index 0000000000..517f4c7faa--- /dev/null+++ b/news/src/test/java/com/vayunmathur/news/domain/StoryFeedCapTest.kt@@ -0,0 +1,58 @@+package com.vayunmathur.news.domain++import kotlin.test.Test+import kotlin.test.assertEquals+import kotlin.test.assertTrue++/**+ * The server-feed cache cap must be story-aware: a flat newest-first+ * take(N) over the 2,500-article feed kept only the 500 newest rows,+ * cutting older members of the most-covered stories (live: largest+ * groupings collapsed to 7, 4, 3, 3, 2, California 4 stories -> 1,+ * Science 5 -> 0).+ */+class StoryFeedCapTest {++ private fun article(source: String, url: String, published: Long, story: String? = null, topics: List<String> = emptyList()) =+ FeedArticle(url = url, sourceId = source, title = "Story $url", publishedAtMillis = published, serverStoryId = story, topics = topics)++ @Test fun capKeepsWholePopularStoryOverNewerSingletons() {+ val popular = listOf("bbc", "guardian", "npr", "cbc").mapIndexed { i, s ->+ article(s, "https://e/pop$i", published = 1_000L + i, story = "s-pop")+ }+ val newer = (0 until 10).map { article("bbc", "https://e/new$it", published = 9_000L + it) }+ val capped = StoryFeedCap.cap(popular + newer, limit = 8)+ assertEquals(8, capped.size)+ assertEquals(4, capped.count { it.serverStoryId == "s-pop" }, "whole popular story survives the cap")+ }++ @Test fun capUnderLimitReturnsEverything() {+ val arts = listOf(article("bbc", "https://e/a", 1L), article("dw", "https://e/b", 2L))+ assertEquals(arts, StoryFeedCap.cap(arts, limit = 10))+ }++ @Test fun topicTaggedGeneralistMatchesScienceAndTechnology() {+ val science = StoryGrouping.group(+ listOf(article("bbc", "https://e/sci", 1L, topics = listOf("science"))),+ ).single()+ assertTrue(science.matchesFeedFilter(NewsCategory.SCIENCE, null))+ val tech = StoryGrouping.group(+ listOf(article("bbc", "https://e/tech", 1L, topics = listOf("technology"))),+ ).single()+ assertTrue(tech.matchesFeedFilter(NewsCategory.TECHNOLOGY, null))+ }++ @Test fun geographicTabsFollowTheRepresentativeNotAnyMember() {+ // Live case: the Chelsea-Liverpool story's lead article is a+ // Spanish World-source live blog; a US-tagged member further+ // down must not file the story under US.+ val story = StoryGrouping.group(+ listOf(+ article("tn", "https://e/1", published = 1_000L, story = "s-che"),+ article("talksport", "https://e/2", published = 2_000L, story = "s-che"),+ ),+ ).single()+ assertTrue(story.matchesFeedFilter(NewsCategory.WORLD, null))+ assertEquals(false, story.matchesFeedFilter(NewsCategory.US, null))+ }+}