singer-io / tap-pipedrive

A Singer.io tap for extracting data from the Pipedrive API
GNU Affero General Public License v3.0
13 stars 34 forks source link

What do you think to add how to use example in README #75

Open stephane-klein opened 4 years ago

stephane-klein commented 4 years ago

What do you think to add how to use example in README.

This is my pipedrive-tap-config.json:

{
    "start_date": "2020-01-01T00:00:00Z",
    "api_token": "xxxxxx"
}

I execute:

$ tap-pipedrive --config pipedrive-tap-config.json
INFO Starting discover
{"type": "STATE", "value": {}}

It is normal that value is empty?

When I execute:

$ tap-pipedrive --config pipedrive-tap-config.json | ./.venv/bin/target-postgres --config target_postgres_config.json

my database is empty🤔

Same with:

$ tap-pipedrive --config pipedrive-tap-config.json | ./.venv3/bin/target-csv

How can I debug that?

Best regards, Stéphane

cc @KAllan357

stephane-klein commented 4 years ago

I need to comment this line:

if root_metadata and root_metadata.get('selected') is True:

from https://github.com/singer-io/tap-pipedrive/blob/1390c9c36491c80ffc0f89b4efc25500412d16f1/tap_pipedrive/tap.py#L171 to get some data.

I don't undertand to select some stream in catalog 🤔

stephane-klein commented 4 years ago

This bug is fixed by https://github.com/stephane-klein/tap-pipedrive/commit/591315cdcf33c10467dc3c2bae93c04021254b90

This is usage example: https://github.com/stephane-klein/singer-pipedrive-playground