Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

Commit

Permalink
Merged PR 47390: Added ChangeID to release check
Browse files Browse the repository at this point in the history
Added ChangeID to release check

Related work items: #1079164
  • Loading branch information
Jeroenskie committed Dec 18, 2019
1 parent a99ed80 commit 0e3b083
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 29 deletions.
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}"
}
]
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@
"editor.formatOnSave": true,
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}
11 changes: 5 additions & 6 deletions src/Releases.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ interface ITableItem extends ISimpleTableCell {
hasBranchFilterForAllArtifacts: IStatusProps;
usesManagedAgentsOnly: IStatusProps;
allArtifactsAreFromBuild: IStatusProps;
relatedToSm9Change: IStatusProps;
sM9ChangeId: string;
}

interface IReleaseProps {}
Expand Down Expand Up @@ -84,7 +84,7 @@ class Releases extends React.Component<
allArtifactsAreFromBuild: getDevopsUiStatus(
x.allArtifactsAreFromBuild
),
relatedToSm9Change: getDevopsUiStatus(x.relatedToSm9Change)
sM9ChangeId: x.sM9ChangeId || "-"
}))
);

Expand Down Expand Up @@ -199,11 +199,10 @@ class Releases extends React.Component<
}
},
{
id: "relatedToSm9Change",
name: "Related to SM9",
id: "sM9ChangeId",
name: "SM9 Change",
onSize: onSize,
renderCell: renderCheckmark,
className: "center",
renderCell: renderSimpleCell,
width: new ObservableValue(130),
sortProps: {
ariaLabelAscending: "Sorted A to Z",
Expand Down
2 changes: 1 addition & 1 deletion src/services/AzDoService.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe("AzDoService", () => {
};

let castedObject = objectWithoutProperty as IReleaseRule;
expect(castedObject.relatedToSm9Change).toBe(undefined);
expect(castedObject.sM9ChangeId).toBe(undefined);
});

it("should return true if token expired", () => {
Expand Down
6 changes: 3 additions & 3 deletions src/services/DummyData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const DummyReleaseReport: IReleaseReport = {
hasBranchFilterForAllArtifacts: true,
usesManagedAgentsOnly: false,
allArtifactsAreFromBuild: false,
relatedToSm9Change: null
sM9ChangeId: null
},
{
release: "Release-199",
Expand All @@ -133,7 +133,7 @@ export const DummyReleaseReport: IReleaseReport = {
hasBranchFilterForAllArtifacts: false,
usesManagedAgentsOnly: true,
allArtifactsAreFromBuild: true,
relatedToSm9Change: false
sM9ChangeId: null
},
{
release: "Release-198",
Expand All @@ -146,7 +146,7 @@ export const DummyReleaseReport: IReleaseReport = {
hasBranchFilterForAllArtifacts: false,
usesManagedAgentsOnly: null,
allArtifactsAreFromBuild: null,
relatedToSm9Change: true
sM9ChangeId: "C000691701"
}
]
};
Expand Down
2 changes: 1 addition & 1 deletion src/services/IAzDoService.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export interface IReleaseRule {
hasBranchFilterForAllArtifacts: boolean | null | undefined;
usesManagedAgentsOnly: boolean | null | undefined;
allArtifactsAreFromBuild: boolean | null | undefined;
relatedToSm9Change: boolean | null | undefined;
sM9ChangeId: string | null | undefined;
}

export interface IExtensionDocument<TReport> {
Expand Down
45 changes: 27 additions & 18 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": false,
"noEmit": true,
"jsx": "preserve",
"types": ["jest", "node"]
},
"include": ["src"]
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "preserve",
"types": [
"jest",
"node"
]
},
"include": [
"src"
]
}

0 comments on commit 0e3b083

Please sign in to comment.