Skip to content

Conversation

@dat-a-man
Copy link
Collaborator

@dat-a-man dat-a-man commented Nov 11, 2025

To be used in the Pipedrive source.

Users can now configure this by passing a list of endpoint names to the use_v2_endpoints parameter. This allows for a gradual migration to v2 without enabling all endpoints at once.

@dat-a-man dat-a-man added verified source dlt source with tests and demos source new feature adds new feature to existing source labels Nov 11, 2025
@dat-a-man dat-a-man self-assigned this Nov 11, 2025
@dat-a-man dat-a-man requested a review from adrianbr November 11, 2025 04:25
@dat-a-man dat-a-man changed the title This commit introduces the ability to select specific v2 API endpoints feat: Add ability to select specific v2 API endpoints for pipedrive verified source Nov 11, 2025
@dat-a-man dat-a-man removed the source new feature adds new feature to existing source label Nov 11, 2025
@dat-a-man dat-a-man force-pushed the feature/update_pipedrive_source_v2_addon branch from 38c7ded to 4a7807f Compare November 11, 2025 09:08
Copy link
Collaborator

@anuunchin anuunchin left a comment

Choose a reason for hiding this comment

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

@dat-a-man the imports in tests are fixed now, you should probably rebase to master for the lint ci checks to pass :)

Copy link
Collaborator

@AstrakhantsevaAA AstrakhantsevaAA left a comment

Choose a reason for hiding this comment

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

impressive work! a few moments look off, mentioned them in comments

"resources": cast(List[Union[str, EndpointResource, DltResource]], resources),
}

api_source = rest_api_source(config)
Copy link
Collaborator

Choose a reason for hiding this comment

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

you can use rest_api_resources instead and skip this for-loop and double dlt.source initialisation
https://dlthub.com/docs/dlt-ecosystem/verified-sources/rest_api/basic#quick-example-1

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done


api_source = rest_api_source(config)
for resource in api_source.resources.values():
yield resource.with_name(f"{prefix}{resource.name}")
Copy link
Collaborator

Choose a reason for hiding this comment

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

why you do that here?
in lines 103-104 you can do the same without extra loops:

        nested_resource_def: Dict[str, Any] = {
            "name": f"{prefix}{nested_name}",

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

updated

to be used in the Pipedrive source.

Users can now configure this by passing a list of endpoint names to
the `use_v2_endpoints` parameter. This allows for a gradual
migration to v2 without enabling all endpoints at once.

fix: clean whitespace and update pipedrive v2 source

Revised structure for lint errors and making it simpler

minor fixes
@dat-a-man dat-a-man force-pushed the feature/update_pipedrive_source_v2_addon branch from 0fc37aa to 39affb3 Compare November 23, 2025 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

verified source dlt source with tests and demos

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants