Compare commits

...

2 Commits

Author SHA1 Message Date
edmundpf
1cdf1bed40
Merge 0dc2f6837c1e6fd2be4c0ac8227f4e03c5e1fefc into fb54d8b54984f89f7dba90a18e7c3048421464c3 2023-05-22 17:41:35 -05:00
edmundpf
0dc2f6837c
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.
2023-03-31 18:53:25 -04:00

View File

@ -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 =>