Skip to content

[BUG] ADF Pipeline Runs query can't do pagination #39438

Closed
@DavidKarlas

Description

@DavidKarlas

Library name and version

Azure.ResourceManager.DataFactory 1.0.0-beta.4

Describe the bug

Can't query more than 100 PipelineRuns via API because ContinuationToken is not exposed.
Only way to call Pipeline Runs - Query By Factory is by calling DataFactoryResource.GetPipelineRunsAsync.
Problem is that all you get from this call is AsyncPageable<DataFactoryPipelineRunInfo> which means ContinuationToken value is lost...
Since pagination is implemented via RunFilterContent property it means "default" nextLink logic for pages can't work...

Expected behavior

Ideally DataFactoryResource.GetPipelineRunsAsync would do whole pagination itself with ContinuationToken hidden away, but getting ContinuationToken is also acceptable I guess.

Actual behavior

No way to do pagination...

Reproduction Steps

Have ADF with more than 100 pipeline runs and try to query them...
I guess only way today would be by requesting ordered by update time, and keep updating RunFilterContent.LastUpdatedAfter, which feels a bit tricky, do I need to do minus one second?

Environment

Visual Studio 17.8

Metadata

Metadata

Labels

Data FactoryMgmtThis issue is related to a management-plane library.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions