@@ -3422,12 +3422,7 @@ func (j *DSGitHub) FetchItemsPullRequest(ctx *shared.Ctx) (err error) {
34223422 if ctx .Debug > 0 {
34233423 j .log .WithFields (logrus.Fields {"operation" : "FetchItemsPullRequest" }).Debugf ("%d remaining pulls to send to queue" , nPulls )
34243424 }
3425- err = j .GitHubEnrichItems (ctx , allPulls , & allDocs , true )
3426- //err = SendToQueue(ctx, j, true, UUID, allPulls)
3427- if err != nil {
3428- j .log .WithFields (logrus.Fields {"operation" : "FetchItemsPullRequest" }).Errorf ("%s/%s: error %v sending %d pulls to queue" , j .URL , j .CurrentCategory , err , len (allPulls ))
3429- }
3430- allPulls = make ([]interface {}, 0 )
3425+
34313426 if count == 1000 {
34323427 j .log .WithFields (logrus.Fields {"operation" : "FetchItemsActions" }).Infof ("fetched %d pulls" , totalFetched )
34333428 dateFrom = updateAt
@@ -8843,14 +8838,15 @@ func (j *DSGitHub) AddCacheProvider() {
88438838func (j * DSGitHub ) cacheCreatedPullrequest (v []interface {}, path string ) error {
88448839 for _ , val := range v {
88458840 pr := val .(igh.PullRequestCreatedEvent ).Payload
8841+ syncTimestamp := fmt .Sprintf ("%v" , pr .SyncTimestamp .Unix ())
88468842 pr .SyncTimestamp = time.Time {}
88478843 b , err := json .Marshal (pr )
88488844 if err != nil {
88498845 return err
88508846 }
88518847 contentHash := fmt .Sprintf ("%x" , sha256 .Sum256 (b ))
88528848 cachedPulls [contentHash ] = ItemCache {
8853- Timestamp : fmt . Sprintf ( "%v" , pr . SyncTimestamp . Unix ()) ,
8849+ Timestamp : syncTimestamp ,
88548850 EntityID : pr .ID ,
88558851 SourceEntityID : pr .ChangeRequestID ,
88568852 FileLocation : path ,
0 commit comments