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

Fix azure provider breaking change #1341

Merged
merged 10 commits into from
Oct 23, 2023
Merged

Conversation

Lee-W
Copy link
Contributor

@Lee-W Lee-W commented Oct 16, 2023

)
adf_client.linked_services.create_or_update(
RESOURCE_GROUP_NAME, DATAFACTORY_NAME, STORAGE_LINKED_SERVICE_NAME, ls_azure_storage
)

# Create an Azure blob dataset (input)
ds_ls = LinkedServiceReference(reference_name=STORAGE_LINKED_SERVICE_NAME)
ds_ls = LinkedServiceReference(type="LinkedServiceReference", reference_name=STORAGE_LINKED_SERVICE_NAME)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need to support/take care of backward compatibility for the previous versions of the provider?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

And we used to install azure-mgmt-datafactory >= 1.0.0 here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also as an example DAG, I think we should use the newer version. WDYT?

Comment on lines +126 to +127
ds_in_ref = DatasetReference(type="DatasetReference", reference_name=DATASET_INPUT_NAME)
ds_out_ref = DatasetReference(type="DatasetReference", reference_name=DATASET_OUTPUT_NAME)
Copy link
Collaborator

Choose a reason for hiding this comment

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

same question for backward compatibility.

@pankajkoti
Copy link
Collaborator

Looks like there is a mypy failure, also could we add a screenshot of a successful DAG run (either local or on Astro Cloud)?

@Lee-W Lee-W self-assigned this Oct 18, 2023
@Lee-W Lee-W added this to the 1.18.1 milestone Oct 18, 2023
@Lee-W
Copy link
Contributor Author

Lee-W commented Oct 18, 2023

Looks like there is a mypy failure, also could we add a screenshot of a successful DAG run (either local or on Astro Cloud)?

I think it's because it was not released by then. Yep, let me deploy one more time. The DAG disappeared (as expected) . cannot screenshot the last successful DAG run

@Lee-W Lee-W force-pushed the fix-azure-provider-breaking-change branch from 085fafc to 0165bff Compare October 18, 2023 10:21
@Lee-W Lee-W force-pushed the fix-azure-provider-breaking-change branch from b097a7e to 0c09b44 Compare October 18, 2023 11:08
@Lee-W Lee-W force-pushed the fix-azure-provider-breaking-change branch from 0684657 to bdef5a1 Compare October 18, 2023 12:14
@codecov
Copy link

codecov bot commented Oct 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5c18bc2) 98.55% compared to head (69378b5) 98.56%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1341      +/-   ##
==========================================
+ Coverage   98.55%   98.56%   +0.01%     
==========================================
  Files          91       91              
  Lines        5456     5454       -2     
==========================================
- Hits         5377     5376       -1     
+ Misses         79       78       -1     
Files Coverage Δ
...er/providers/microsoft/azure/hooks/data_factory.py 100.00% <100.00%> (+1.31%) ⬆️
...roviders/microsoft/azure/operators/data_factory.py 100.00% <100.00%> (ø)
...providers/microsoft/azure/triggers/data_factory.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Lee-W Lee-W requested a review from pankajkoti October 23, 2023 05:57
Copy link
Contributor

@pankajastro pankajastro left a comment

Choose a reason for hiding this comment

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

LGTM

@Lee-W Lee-W merged commit 009de79 into main Oct 23, 2023
2 checks passed
@Lee-W Lee-W deleted the fix-azure-provider-breaking-change branch October 23, 2023 07:28
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