Skip to content

TDL-6619: Enable leads stream#180

Open
savan-chovatiya wants to merge 2 commits into
masterfrom
TDL-6619-enaable-leads-stream
Open

TDL-6619: Enable leads stream#180
savan-chovatiya wants to merge 2 commits into
masterfrom
TDL-6619-enaable-leads-stream

Conversation

@savan-chovatiya

@savan-chovatiya savan-chovatiya commented Dec 2, 2021

Copy link
Copy Markdown
Contributor

Description of change

TDL-6619: Enable leads stream.

  • Enabled leads stream
  • Added one condition for returning record with maximum replication_key for writing bookmark as currently, it is breaking tap(parsing None as a date) when no data is available for leads.

NOTE: No data available currently for leads and for that we need to create/activate ads and do some interaction but it's chargeable activity. As per card comment, scope related to 'leads' is already added in the OAuth app and marked ready to use so we will comment integration tests to not consider 'leads' stream in sync-related tests for now as per discussion.

Manual QA steps

Risks

Rollback steps

  • revert this branch

Comment thread tap_facebook/__init__.py
Comment on lines +490 to +491
if latest_lead:
return str(pendulum.parse(latest_lead[self.replication_key]))

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added above condition because the tap was breaking(parsing None as a date error) when no data is available for leads.
The above function returns the maximum replication key's value out of all leads for writing bookmark.

'ads_insights_dma',
"ads_insights_hourly_advertiser",
#'leads',
'leads',

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is enabled as it's used in discover mode.

@kspeer825 kspeer825 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe there is test data for this stream, see my comment on the ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants