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

[Do not merge][Datafactory] Add Tumbling Window dependsOn property to Trigger.json #2902

Closed
wants to merge 5 commits into from

Conversation

alexsaff
Copy link

@alexsaff alexsaff commented Apr 18, 2018

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

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
  • If applicable, the PR references the bug/issue that it fixes.
  • Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

@msftclas
Copy link

msftclas commented Apr 18, 2018

CLA assistant check
All CLA requirements met.

@azuresdkci azuresdkci requested a review from mcardosos April 18, 2018 21:59
@alexsaff alexsaff changed the title Master Add Tumbling Window dependsOn property to Trigger.json Apr 18, 2018
@AutorestCI
Copy link

AutorestCI commented Apr 18, 2018

Automation for azure-libraries-for-java

A 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:
AutorestCI/azure-libraries-for-java#18

@AutorestCI
Copy link

AutorestCI commented Apr 18, 2018

Automation for azure-sdk-for-node

A 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:
Azure/azure-sdk-for-node#2770

@AutorestCI
Copy link

AutorestCI commented Apr 18, 2018

Automation for azure-sdk-for-python

A 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:
Azure/azure-sdk-for-python#2293

@AutorestCI
Copy link

AutorestCI commented Apr 18, 2018

Automation for azure-sdk-for-go

A 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:
Azure/azure-sdk-for-go#2008

"type": "object",
"properties": {
"type": {
"description": "Reference type \"TriggerReference\" for Tumbling Window.",
Copy link
Contributor

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.

Copy link
Author

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": {
Copy link
Contributor

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.

Copy link
Author

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.",
Copy link
Contributor

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."

Copy link
Author

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"
Copy link
Contributor

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"
]

Copy link
Author

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.",
Copy link
Contributor

Choose a reason for hiding this comment

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

"Reference TumblingWindowTrigger name."

Copy link
Author

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.",
Copy link
Contributor

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."

Copy link
Author

Choose a reason for hiding this comment

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

Resolved

@azuresdkciprbot
Copy link

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: specification/datafactory/resource-manager/readme.md
Before the PR: Warning(s): 14 Error(s): 1
After the PR: Warning(s): 0 Error(s): 0

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"
Copy link
Contributor

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"

Copy link
Author

Choose a reason for hiding this comment

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

Already resolved

@azuresdkciprbot
Copy link

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: specification/datafactory/resource-manager/readme.md
Before the PR: Warning(s): 14 Error(s): 1
After the PR: Warning(s): 15 Error(s): 1

AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback

Thanks for your co-operation.

"type": {
"description": "Tumbling window trigger reference type.",
"type": "string",
"enum": [
Copy link
Contributor

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

Copy link
Author

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

Copy link
Contributor

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

Copy link
Contributor

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": {
Copy link
Contributor

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?

Copy link
Author

@alexsaff alexsaff Apr 19, 2018

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"
}
]

Copy link
Contributor

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?

Copy link
Contributor

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.

Copy link
Author

@alexsaff alexsaff Apr 19, 2018

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

Copy link
Contributor

Choose a reason for hiding this comment

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

okok

@alexsaff alexsaff changed the title Add Tumbling Window dependsOn property to Trigger.json [Datafactory] Add Tumbling Window dependsOn property to Trigger.json Apr 19, 2018
@hvermis
Copy link
Contributor

hvermis commented Apr 19, 2018

@mcardosos Please do not merge this yet as the backend is not ready yet.

@hvermis hvermis changed the title [Datafactory] Add Tumbling Window dependsOn property to Trigger.json [Do not merge][Datafactory] Add Tumbling Window dependsOn property to Trigger.json Apr 19, 2018
@mcardosos mcardosos added the DoNotMerge <valid label in PR review process> use to hold merge after approval label Apr 20, 2018
@mcardosos
Copy link
Contributor

@hvermis When will this be available?

Copy link
Contributor

@mcardosos mcardosos left a 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

@salameer
Copy link
Member

salameer commented May 2, 2018

@hvermis please ping this thread when your ready to merge this swagger

]
},
"referenceName": {
"description": "Reference TumblingWindowTrigger name.",
Copy link
Contributor

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": {
Copy link
Contributor

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"
Copy link
Contributor

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.",
Copy link
Contributor

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

Copy link
Contributor

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.",
Copy link
Contributor

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.",
Copy link
Contributor

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.

@AutorestCI
Copy link

AutorestCI commented Jun 6, 2018

Automation for azure-sdk-for-ruby

Nothing to generate for azure-sdk-for-ruby

@lmazuel
Copy link
Member

lmazuel commented Jun 30, 2018

@AutorestCI rebuild azure-sdk-for-python

@hvermis
Copy link
Contributor

hvermis commented Jun 30, 2018

@alexsaff I beleive this PR should be closed and new one opened by Nalini?

@alexsaff
Copy link
Author

alexsaff commented Jul 5, 2018

This PR is abandoned and will be replaced by a new one with a different data model

@AutorestCI
Copy link

AutorestCI commented Jul 5, 2018

Automation for azure-sdk-for-java

A 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:
Azure/azure-sdk-for-java#2136

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DoNotMerge <valid label in PR review process> use to hold merge after approval Reassign
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants