Skip to content

Commit 9be409f

Browse files
Text updates
1 parent ce72341 commit 9be409f

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

fern/docs/pages/airdrop/data-extraction.mdx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ This lets you simulate a soft timeout and validate that your worker shuts down.
282282

283283
## Time-scoped syncs
284284

285-
Time-scoped syncs allow users to specify a custom timestamp to control the scope of data extraction. This capability enables more granular control over which data gets synchronized between external systems and DevRev.
285+
Time-scoped syncs allow using a custom timestamp to control the scope of data extraction. This capability enables more granular control over which data gets synchronized between external systems and DevRev.
286286

287287
Enable time-scoped syncs by first adding the capability to your manifest:
288288

@@ -295,20 +295,18 @@ imports:
295295
296296
Your data extraction implementation must handle two optional parameters from the event's `EventContext`:
297297

298-
- **`extract_from`**: Timestamp indicating extraction starting point (applies to both initial and incremental syncs)
298+
- **`extract_from`**: Timestamp (in format RFC3339) indicating extraction starting point (applies to both initial and incremental syncs)
299299
- **`reset_extract_from`**: Boolean flag for incremental syncs that determines whether data should be reextracted
300300

301-
<Info>Both parameters are optional and only provided when users specify time-scoped sync parameters.</Info>
302-
303301
The extraction logic depends on the sync type and parameter combination:
304302

305303
**Initial syncs**: Use `extract_from` as the starting timestamp for data extraction.
306304

307305
**Incremental syncs**:
308306
- If `reset_extract_from` is `true`: Start from `extract_from` (if provided) or extract all data
309-
- If `reset_extract_from` is `false` or not provided: Use `lastSuccessfulSyncStarted` timestamp
307+
- If `reset_extract_from` is `false` or not provided: Use `adapter.state.lastSuccessfulSyncStarted` timestamp
310308

311-
```typescript focus={1-2,6-8,12-16,20-22}
309+
```typescript
312310
const { reset_extract_from, extract_from } = adapter.event.payload.event_context;
313311
314312
// The start of a new sync.

fern/docs/pages/airdrop/getting-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,6 @@ A 2-way sync consists of the following phases:
104104

105105
### Time-scoped sync
106106

107-
Normally, an initial sync extracts all available data, and an incremental sync only extracts changes since the last successful sync. A _time-scoped sync_, on the other hand, allows for the extraction of data beginning from a user-provided timestamp.
107+
Normally, an initial sync extracts all data from an organization, and an incremental sync only extracts changes since the last successful sync. A _time-scoped sync_, on the other hand, allows for the extraction of data beginning from a user-provided timestamp.
108108

109109
This approach is useful for initially testing the integration with a smaller data set—such as data from the last month—before conducting a full import of all available data.

0 commit comments

Comments
 (0)