Azure / azure-sdk-for-python

This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.52k stars 2.75k forks source link

[azure-mgmt-datafactory==2.8.0] Pipeline failed due to LinkedServiceReference: __init__() missing 1 required keyword-only argument: 'type' #26207

Closed MingCai06 closed 1 year ago

MingCai06 commented 1 year ago

Describe the bug Initializes a new instance of the LinkedServiceReference failed. Error: 2022-09-14T08:58:04.8677668Z linked_service_name=LinkedServiceReference(reference_name=reference_name), 2022-09-14T08:58:04.8678498Z TypeError: init() missing 1 required keyword-only argument: 'type

To Reproduce Steps to reproduce the behavior: linked_service_name=LinkedServiceReference(reference_name=reference_name)

Additional context Default required parameter type = "LinkedServiceReference" has been removed from https://raw.githubusercontent.com/Azure/azure-sdk-for-python/main/sdk/synapse/azure-synapse-artifacts/azure/synapse/artifacts/models/_models_py3.py in azure-mgmt-datafactory 2.8.0

But there is not realse note found. Is this a bug?

azure-sdk commented 1 year ago

Label prediction was below confidence level 0.6 for Model:ServiceLabels: 'Data Factory:0.43010306,Service Bus:0.20873217,Synapse:0.06696254'

kristapratico commented 1 year ago

@MingCai06 thanks for opening this issue. Just checking - this is regarding azure-mgmt-factory? Your link points to azure-synapse-artifacts. Just want to make sure we investigate in the right library.

@msyyc - can you take a look at this? It seems like a required keyword-only parameter was added for this model.

MingCai06 commented 1 year ago

@MingCai06 thanks for opening this issue. Just checking - this is regarding azure-mgmt-factory? Your link points to azure-synapse-artifacts. Just want to make sure we investigate in the right library.

@msyyc - can you take a look at this? It seems like a required keyword-only parameter was added for this model.

@kristapratico Thank you for your reply. Yes i mean azure-mgmt-factory , the right link should be https://azuresdkdocs.blob.core.windows.net/$web/python/azure-mgmt-datafactory/2.8.0/_modules/azure/mgmt/datafactory/models/_models_py3.html

msyyc commented 1 year ago

Hi @MingCai06 the enum with single value is treated as constant before version<=2.7.0: image But after version>=2.8.0, it will not be treated as constant but as enum: image Sorry the missing waring in changelog.

ghost commented 1 year ago

Hi @MingCai06. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “/unresolve” to remove the “issue-addressed” label and continue the conversation.

ghost commented 1 year ago

Hi @MingCai06, since you haven’t asked that we “/unresolve” the issue, we’ll close this out. If you believe further discussion is needed, please add a comment “/unresolve” to reopen the issue.