Why is there an initial event count defined for some sources?

This topic was automatically generated from Slack. You can find the original thread here.

Lixiv Maureal : Hello!!
I need to ask one question.
In some event sources, there is this concept of INITIAL_EVENT_COUNT, which is basically the number of events received from the source during deployment.
I am trying to understand why do we have this? I checked google-sheets source for new-row-added, and figured out, it is anyways us responsible for retrieving those and not the actual app is giving us those. Like in the deploy hook, we receive last 10 events in google sheets for example.
Also, those generated events are not true in the sense their timestamp of generation is the time of deployment and not actual generation from google sheets as they represent history not present.

Could someone point out why we do that? And why only in a few source components?

Dylan Sather (Pipedream) : When you create an event source, we emit sample events so that you have real data to work with. All event sources should ideally emit events on deploy, we just haven’t implemented that for all sources.

The timestamps are just metadata (i.e. they should have no impact on the actual event data), but if you’d like, but if you notice an issue there, you can submit a PR for that event source if you’d like!

Lixiv Maureal : Gotcha, thanks