-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
[Do not merge][Datafactory] Add Tumbling Window dependsOn property to Trigger.json #2902
Conversation
Automation for azure-libraries-for-javaA PR has been created for you based on this PR content. Once this PR will be merged, content will be added to your service PR: |
Automation for azure-sdk-for-nodeA PR has been created for you based on this PR content. Once this PR will be merged, content will be added to your service PR: |
Automation for azure-sdk-for-pythonA PR has been created for you based on this PR content. Once this PR will be merged, content will be added to your service PR: |
Automation for azure-sdk-for-goA PR has been created for you based on this PR content. Once this PR will be merged, content will be added to your service PR: |
"type": "object", | ||
"properties": { | ||
"type": { | ||
"description": "Reference type \"TriggerReference\" for Tumbling Window.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested description: "Tumbling window trigger reference type." This is consistent with our other descriptions of similar kind.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved
@@ -365,6 +372,24 @@ | |||
"maximum": 86400 | |||
} | |||
} | |||
}, | |||
"TumblingWindowDependency": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we planning on having conditional dependency for triggers? If not then it is better to name this as "TumblingWindowTriggerReference" to be consistent with other naming conventions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved
@@ -365,6 +372,24 @@ | |||
"maximum": 86400 | |||
} | |||
} | |||
}, | |||
"TumblingWindowDependency": { | |||
"description": "Tumbling Window dependency information.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggested description: "Tumbling window trigger reference type."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved
"properties": { | ||
"type": { | ||
"description": "Reference type \"TriggerReference\" for Tumbling Window.", | ||
"type": "string" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think ARM folks will comment on this too, you should add an enum here:
"enum": [
"TumblingWindowTriggerReference"
]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved
"type": "string" | ||
}, | ||
"referenceName": { | ||
"description": "Trigger reference name.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Reference TumblingWindowTrigger name."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved
}, | ||
"dependsOn": { | ||
"type": "array", | ||
"description": "Tumbling Window depends on condition.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In your case there is no condition, so suggested description: "Tumbling window triggers that this trigger depends on."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved
Hi There, I am the AutoRest Linter Azure bot. I am here to help. My task is to analyze the situation from the AutoRest linter perspective. Please review the below analysis result: File: AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback Thanks for your co-operation. |
"type": "array", | ||
"description": "Tumbling window triggers that this trigger depends on.", | ||
"items": { | ||
"$ref": "#/definitions/TumblingWindowDependency" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to change this too to "TumblingWindowTriggerReference"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already resolved
Hi There, I am the AutoRest Linter Azure bot. I am here to help. My task is to analyze the situation from the AutoRest linter perspective. Please review the below analysis result: 💡 Please review potentially introduced Error(s)/Warning(s): Analysis Report 💡 File: AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback Thanks for your co-operation. |
"type": { | ||
"description": "Tumbling window trigger reference type.", | ||
"type": "string", | ||
"enum": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enum [](start = 11, length = 4)
Also use x-ms-enum
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using x-ms-enum is blocked by hvermis
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mcardosos We don't want enum types generated for this, it is more of a hint to customer that this is the value. Here's another example where our swagger has the same structure: https://github.com/Azure/azure-rest-api-specs/blob/master/specification/datafactory/resource-manager/Microsoft.DataFactory/preview/2017-09-01-preview/datafactory.json#L3024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OKok
"description": "Tumbling window trigger reference type.", | ||
"type": "object", | ||
"properties": { | ||
"type": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type [](start = 9, length = 4)
Is this type
a discriminator?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is a JSON example:
"dependsOn": [
{
"type": "TriggerReference",
"referenceName": "mytumblingwindowtrigger1"
},
{
"type": "TriggerReference",
"referenceName": "mytumblingwindowtrigger2"
}
]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I mean is, could the type
have another value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, the type is not discriminator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At this point we are not planning "type" to have another value, may be in the future
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okok
@mcardosos Please do not merge this yet as the backend is not ready yet. |
@hvermis When will this be available? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For awareness, this swagger has linter errors. I know they were not introduced in this PR
@hvermis please ping this thread when your ready to merge this swagger |
] | ||
}, | ||
"referenceName": { | ||
"description": "Reference TumblingWindowTrigger name.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the description too
@@ -365,6 +372,27 @@ | |||
"maximum": 86400 | |||
} | |||
} | |||
}, | |||
"TumblingWindowTriggerReference": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change the type name here too
"type": "array", | ||
"description": "Tumbling window triggers that this trigger depends on.", | ||
"items": { | ||
"$ref": "#/definitions/TumblingWindowTriggerReference" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change it here too
}, | ||
"dependsOn": { | ||
"type": "array", | ||
"description": "Tumbling window triggers that this trigger depends on.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leave the description here the same to specifically indicate that it is a tumbling window trigger
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can also add - "Only tumbling window triggers are supported." If we ever add other trigger types here we will update the description.
@@ -365,6 +372,27 @@ | |||
"maximum": 86400 | |||
} | |||
} | |||
}, | |||
"TriggerReference": { | |||
"description": "Tumbling window trigger reference type.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove "Tumbling window" from description.
"type": "object", | ||
"properties": { | ||
"type": { | ||
"description": "Tumbling window trigger reference type.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove "Tumbling window" from description.
Automation for azure-sdk-for-rubyNothing to generate for azure-sdk-for-ruby |
@AutorestCI rebuild azure-sdk-for-python |
@alexsaff I beleive this PR should be closed and new one opened by Nalini? |
This PR is abandoned and will be replaced by a new one with a different data model |
Automation for azure-sdk-for-javaA PR has been created for you based on this PR content. Once this PR will be merged, content will be added to your service PR: |
This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information
api-version
in the path should match theapi-version
in the spec).Quality of Swagger