From 0dc2f6837c1e6fd2be4c0ac8227f4e03c5e1fefc Mon Sep 17 00:00:00 2001 From: edmundpf Date: Fri, 31 Mar 2023 18:53:25 -0400 Subject: [PATCH] Update ExternalDataSources.scala I noticed that the "Interested in" recommendations had a lookback window of 14 days. I regularly use the "Not interested in this tweet" functionality, but notice topics I'm not interested in still seem to appear at times. I've modified the lookback window of the "Not interested in" topics to have the same 14-day lookback window for both consistency and perhaps improving on this functionality as users' dislikes are unlikely to change that quickly. --- .../scalding/embedding/common/ExternalDataSources.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scala/com/twitter/simclusters_v2/scalding/embedding/common/ExternalDataSources.scala b/src/scala/com/twitter/simclusters_v2/scalding/embedding/common/ExternalDataSources.scala index 729cb95d0..c4e434593 100644 --- a/src/scala/com/twitter/simclusters_v2/scalding/embedding/common/ExternalDataSources.scala +++ b/src/scala/com/twitter/simclusters_v2/scalding/embedding/common/ExternalDataSources.scala @@ -330,7 +330,7 @@ object ExternalDataSources { DAL .readMostRecentSnapshotNoOlderThan( UserInterestRelationSnapshotScalaDataset, - Days(7)).withRemoteReadPolicy(ExplicitLocation(ProcAtla)).toTypedPipe.collect { + Days(14)).withRemoteReadPolicy(ExplicitLocation(ProcAtla)).toTypedPipe.collect { case userInterestsRelationSnapshot: UserInterestsRelationSnapshot if userInterestsRelationSnapshot.interestType == "UTT" && userInterestsRelationSnapshot.relation == InterestRelationType.NotInterested =>