mirror of
https://github.com/twitter/the-algorithm.git
synced 2024-12-22 18:21:51 +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
|
implicit dateRange: DateRange
|
||||||
): TypedPipe[MagicRecsNotificationLite] = {
|
): TypedPipe[MagicRecsNotificationLite] = {
|
||||||
DAL
|
DAL
|
||||||
|
@ -491,7 +491,7 @@ object AssembleMultiTypeGraph {
|
|||||||
|
|
||||||
// user-MRNotifOpenOrClick events from last 7 days
|
// user-MRNotifOpenOrClick events from last 7 days
|
||||||
val userMRNotifOpenOrClickEvents: TypedPipe[MagicRecsNotificationLite] =
|
val userMRNotifOpenOrClickEvents: TypedPipe[MagicRecsNotificationLite] =
|
||||||
ExternalDataSources.magicRecsNotficationOpenOrClickEventsSource(dateRange =
|
ExternalDataSources.magicRecsNotificationOpenOrClickEventsSource(dateRange =
|
||||||
DateRange(dateRange.end - Days(7), dateRange.end))
|
DateRange(dateRange.end - Days(7), dateRange.end))
|
||||||
|
|
||||||
// user-searchQuery strings from last 7 days
|
// user-searchQuery strings from last 7 days
|
||||||
|
@ -236,13 +236,13 @@ object ExternalDataSources {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def magicRecsNotficationOpenOrClickEventsSource(
|
def magicRecsNotificationOpenOrClickEventsSource(
|
||||||
interval: Interval
|
interval: Interval
|
||||||
)(
|
)(
|
||||||
implicit sc: ScioContext
|
implicit sc: ScioContext
|
||||||
): SCollection[MagicRecsNotificationLite] = {
|
): SCollection[MagicRecsNotificationLite] = {
|
||||||
sc.customInput(
|
sc.customInput(
|
||||||
"ReadMagicRecsNotficationOpenOrClickEventsSource",
|
"ReadMagicRecsNotificationOpenOrClickEventsSource",
|
||||||
DAL
|
DAL
|
||||||
.read(MagicrecsNotificationLite1DayLagScalaDataset, interval, DAL.Environment.Prod))
|
.read(MagicrecsNotificationLite1DayLagScalaDataset, interval, DAL.Environment.Prod))
|
||||||
.filter { entry =>
|
.filter { entry =>
|
||||||
|
@ -423,7 +423,7 @@ trait AssembleMultiTypeGraphScioBaseApp extends ScioBeamJob[DateRangeOptions] {
|
|||||||
|
|
||||||
// user-MRNotifOpenOrClick events from last 7 days
|
// user-MRNotifOpenOrClick events from last 7 days
|
||||||
val userMRNotifOpenOrClickEvents =
|
val userMRNotifOpenOrClickEvents =
|
||||||
ExternalDataSources.magicRecsNotficationOpenOrClickEventsSource(interval_7days)
|
ExternalDataSources.magicRecsNotificationOpenOrClickEventsSource(interval_7days)
|
||||||
|
|
||||||
// user-searchQuery strings from last 7 days
|
// user-searchQuery strings from last 7 days
|
||||||
val userSearchQueryEdges =
|
val userSearchQueryEdges =
|
||||||
|
Loading…
Reference in New Issue
Block a user