Skip to content

Scope2#1745

Merged
jianghaolu merged 4 commits intoAzure:currentfrom
ro-joowan:scope2
Sep 28, 2017
Merged

Scope2#1745
jianghaolu merged 4 commits intoAzure:currentfrom
ro-joowan:scope2

Conversation

@ro-joowan
Copy link
Copy Markdown
Contributor

@ro-joowan ro-joowan commented Sep 26, 2017

  • The substantial changes (listed below) are in this file: specification/datalake-analytics/data-plane/Microsoft.DataLakeAnalytics/2017-09-01-preview/job.json

  • Created a new API version, 2017-09-01-preview, for job.json

    • Updated the readme files to reflect this
    • Created a new folder for this API version
  • Added a tags field to the JobInformationBasic object

  • Created the following objects:

    • CreateScopeJobParameters
    • ScopeJobProperties
    • ScopeJobResource
  • Added two new APIs: UpdateJob and YieldJob

    • Added example files for these
  • Added more properties to the JobStatisticsVertexStage object

  • A minor bug fix for the files below: adding two missing enum properties "Canceled" and "Undeleting" for the provisioningState field.

    • specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/2016-11-01/account.json
    • specification/datalake-store/resource-manager/Microsoft.DataLakeStore/2016-11-01/account.json

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You may want to use x-ms-flatten for CreateJobProperties type to improve user experience.

Copy link
Copy Markdown
Contributor Author

@ro-joowan ro-joowan Sep 27, 2017

Choose a reason for hiding this comment

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

Yes, this would be ideal. However, I'm not sure if it's appropriate for this situation because when a user is creating a job, we want them to be explicit on which properties object to use: CreateScopeJobProperties vs CreateUSqlJobProperties. That is, since CreateJobProperties is polymorphic via the discriminator value, won't this conflict with the flatten feature?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I didn't see that - thanks for explaining!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Consider using x-ms-flatten. Unless it'll introduce a breaking change.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is related to the "CreateJobProperties" topic above in that JobProperties is polymorphic via the discriminator value. But JobInformation is primarily used for GETs now. So, I would be in favor of flattening this. However, it would be a breaking change. @matt1883, thoughts?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I would like to do this, but I confirmed with @olydis that not every language supports x-ms-flatten for property objects that are polymorphic via the discriminator value. We will definitely consider this an upcoming release. Thank you for mentioning this!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Renaming is a breaking change - please be aware of that. Also you'll need to update PowerShell & CLI cmdlets if you have any.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thank you for noting this. I should have been clear in my notes, but this is actually a bugfix. Yes it would be a breaking change, but the service returns this as TotalPausedTime. I don't expect this property to be too popular among users. Will keep an eye out for this when I update PS and CLI.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Consider true if the list can grow.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, this is the plan for a release in Oct. I am waiting for the C# team to implement an extensible enum feature. If I mark this as "true" now, it'll be a big breaking change for C# users.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The documentation of model properties MUST NOT start with the phrase "Gets or sets ..", "Gets ..", "Sets .."

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Is this referring to line 1971?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes - sorry I don't know why it ends up here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed! I got rid of "Gets"

@Azure Azure deleted a comment from msftclas Sep 27, 2017
@azuresdkciprbot
Copy link
Copy Markdown

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/datalake-analytics/data-plane/readme.md
Before the PR: Warning(s): 0 Error(s): 0
After the PR: Warning(s): 0 Error(s): 0

File: specification/datalake-analytics/resource-manager/readme.md
Before the PR: Warning(s): 0 Error(s): 7
After the PR: Warning(s): 0 Error(s): 7

File: specification/datalake-store/resource-manager/readme.md
Before the PR: Warning(s): 0 Error(s): 7
After the PR: Warning(s): 0 Error(s): 7

💡 Please review potentially introduced Error(s)/Warning(s): Analysis Report 💡

AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback

Thanks for your co-operation.

@ro-joowan
Copy link
Copy Markdown
Contributor Author

I pushed one more simple commit -- adding a "notifier" field to ScopeJobProperties and CreateScopeJobProperties.

@azuresdkciprbot
Copy link
Copy Markdown

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/datalake-analytics/data-plane/readme.md
Before the PR: Warning(s): 0 Error(s): 0
After the PR: Warning(s): 0 Error(s): 0

File: specification/datalake-analytics/resource-manager/readme.md
Before the PR: Warning(s): 0 Error(s): 7
After the PR: Warning(s): 0 Error(s): 7

File: specification/datalake-store/resource-manager/readme.md
Before the PR: Warning(s): 0 Error(s): 7
After the PR: Warning(s): 0 Error(s): 7

💡 Please review potentially introduced Error(s)/Warning(s): Analysis Report 💡

AutoRest Linter Guidelines | AutoRest Linter Issues | Send feedback

Thanks for your co-operation.

@jianghaolu jianghaolu merged commit a325174 into Azure:current Sep 28, 2017
@AutorestCI
Copy link
Copy Markdown

No modification for AutorestCI/azure-sdk-for-node

@AutorestCI
Copy link
Copy Markdown

@AutorestCI
Copy link
Copy Markdown

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.

7 participants