mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-12-22 10:11:52 +01:00
Merge e13c4a9233
into 72eda9a24f
This commit is contained in:
commit
25636f351e
@ -492,7 +492,7 @@ object ExternalDataSources {
|
||||
}
|
||||
}
|
||||
|
||||
def magicRecsNotficationOpenOrClickEventsSource(
|
||||
def magicRecsNotificationOpenOrClickEventsSource(
|
||||
implicit dateRange: DateRange
|
||||
): TypedPipe[MagicRecsNotificationLite] = {
|
||||
DAL
|
||||
|
@ -491,7 +491,7 @@ object AssembleMultiTypeGraph {
|
||||
|
||||
// user-MRNotifOpenOrClick events from last 7 days
|
||||
val userMRNotifOpenOrClickEvents: TypedPipe[MagicRecsNotificationLite] =
|
||||
ExternalDataSources.magicRecsNotficationOpenOrClickEventsSource(dateRange =
|
||||
ExternalDataSources.magicRecsNotificationOpenOrClickEventsSource(dateRange =
|
||||
DateRange(dateRange.end - Days(7), dateRange.end))
|
||||
|
||||
// user-searchQuery strings from last 7 days
|
||||
|
@ -236,13 +236,13 @@ object ExternalDataSources {
|
||||
}
|
||||
}
|
||||
|
||||
def magicRecsNotficationOpenOrClickEventsSource(
|
||||
def magicRecsNotificationOpenOrClickEventsSource(
|
||||
interval: Interval
|
||||
)(
|
||||
implicit sc: ScioContext
|
||||
): SCollection[MagicRecsNotificationLite] = {
|
||||
sc.customInput(
|
||||
"ReadMagicRecsNotficationOpenOrClickEventsSource",
|
||||
"ReadMagicRecsNotificationOpenOrClickEventsSource",
|
||||
DAL
|
||||
.read(MagicrecsNotificationLite1DayLagScalaDataset, interval, DAL.Environment.Prod))
|
||||
.filter { entry =>
|
||||
|
@ -423,7 +423,7 @@ trait AssembleMultiTypeGraphScioBaseApp extends ScioBeamJob[DateRangeOptions] {
|
||||
|
||||
// user-MRNotifOpenOrClick events from last 7 days
|
||||
val userMRNotifOpenOrClickEvents =
|
||||
ExternalDataSources.magicRecsNotficationOpenOrClickEventsSource(interval_7days)
|
||||
ExternalDataSources.magicRecsNotificationOpenOrClickEventsSource(interval_7days)
|
||||
|
||||
// user-searchQuery strings from last 7 days
|
||||
val userSearchQueryEdges =
|
||||
|
Loading…
Reference in New Issue
Block a user