-
Notifications
You must be signed in to change notification settings - Fork 1.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
Support track2 management packages #15975
Conversation
I think I will need a change in gulp scrip as well to skip track2 mgmt from track1 pipeline. |
eng/tools/rush-runner.js
Outdated
@@ -78,7 +77,7 @@ const getServicePackages = (baseDir, serviceDirs) => { | |||
const packageJsons = getPackageJsons(searchDir); | |||
for (const filePath of packageJsons) { | |||
const contents = JSON.parse(fs.readFileSync(filePath, "utf8")); | |||
if (contents["sdk-type"] === "client") { | |||
if (contents["sdk-type"] === "client" || contents["sdk-type"] === "management") { |
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.
if (contents["sdk-type"] === "client" || contents["sdk-type"] === "management") { | |
if (contents["sdk-type"] === "client" || contents["sdk-type"] === "mgmt") { |
Most other places call this mgmt so lets do that here as well.
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.
@sarangan12 just made changes to the code generator to use management
.
@praveenkuttappan Please confirm which way we want to go here so that @sarangan12 can make the changes appropriately
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.
@praveenkuttappan I prefer mgmt
, which is used in most places for management plane.
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.
@praveenkuttappan will you change it to mgmt
?
@ramya-rao-a @sarangan12 I have found the codegen has used management
, please confirm which will we use? I just checked some other places, such as https://github.com/Azure/azure-sdk/tree/main/eng#csv-fields, I think mgmt
is usually used.
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 will change my PR to look for mgmt. @sarangan12 : Can you please change it to mgmt in code gen.
@praveenkuttappan We will create a branch |
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.
Looks like a good first step. We will eventually need to make more tweaks to things in the langauge-settings.ps1 to ensure the properties are set correctly
Change to include track2 management package in rush runner script.