Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache repostories in Phabricator streams #106

Merged
merged 3 commits into from
Sep 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions faros-airbyte-cdk/src/sources/source-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,17 @@ export abstract class AirbyteSourceBase extends AirbyteSource {
let recordCounter = 0;
const streamName = configuredStream.stream.name;
const mode = useIncremental ? 'incremental' : 'full';
this.logger.info(`Syncing stream ${streamName} in ${mode} mode`);
this.logger.info(`Syncing ${streamName} stream in ${mode} mode`);

for await (const record of recordGenerator) {
if (record.type === AirbyteMessageType.RECORD) {
recordCounter++;
}
yield record;
}
this.logger.info(`Read ${recordCounter} records from ${streamName} stream`);
this.logger.info(
`Finished syncing ${streamName} stream. Read ${recordCounter} records`
);
}

private async *readIncremental(
Expand Down
86 changes: 11 additions & 75 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sources/phabricator-source/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
"dependencies": {
"axios": "^0.21.4",
"condoit": "^2.0.8",
"condoit": "^2.0.11",
"commander": "^8.2.0",
"faros-airbyte-cdk": "^0.1.21",
"moment": "^2.29.1",
Expand Down
Loading