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.
This commit is contained in:
edmundpf 2023-03-31 18:53:25 -04:00 committed by GitHub
parent ec83d01dca
commit 0dc2f6837c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -330,7 +330,7 @@ object ExternalDataSources {
DAL DAL
.readMostRecentSnapshotNoOlderThan( .readMostRecentSnapshotNoOlderThan(
UserInterestRelationSnapshotScalaDataset, UserInterestRelationSnapshotScalaDataset,
Days(7)).withRemoteReadPolicy(ExplicitLocation(ProcAtla)).toTypedPipe.collect { Days(14)).withRemoteReadPolicy(ExplicitLocation(ProcAtla)).toTypedPipe.collect {
case userInterestsRelationSnapshot: UserInterestsRelationSnapshot case userInterestsRelationSnapshot: UserInterestsRelationSnapshot
if userInterestsRelationSnapshot.interestType == "UTT" && if userInterestsRelationSnapshot.interestType == "UTT" &&
userInterestsRelationSnapshot.relation == InterestRelationType.NotInterested => userInterestsRelationSnapshot.relation == InterestRelationType.NotInterested =>