Skip to content

Commit 0219124

Browse files
committed
Merge branch 'main' into we-dont-need-chai
2 parents 56b0654 + 6f21ffa commit 0219124

28 files changed

+931
-1440
lines changed

dataportal.yaml

Lines changed: 0 additions & 726 deletions
This file was deleted.

e2e/tsconfig.e2e.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"baseUrl": ".",
44
"outDir": "../.generated",
55
"module": "CommonJS",
6-
"target": "es6",
7-
"lib": ["esnext", "dom"],
6+
"target": "es2018",
7+
"lib": ["es2018", "dom"],
88
"skipDefaultLibCheck": true,
99
"resolveJsonModule": true,
1010
"skipLibCheck": true,
@@ -19,7 +19,6 @@
1919
"noImplicitThis": true,
2020
"noImplicitAny": true,
2121
"strictNullChecks": true,
22-
"suppressImplicitAnyIndexErrors": true,
2322
"ignoreDeprecations": "5.0",
2423
"noUnusedLocals": true,
2524
"typeRoots": ["node_modules/@types", "src/typings/"]

package-lock.json

Lines changed: 885 additions & 669 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1565,7 +1565,7 @@
15651565
"ts-node": "^8.8.2",
15661566
"tsconfig-paths": "^3.9.0",
15671567
"tsconfig-paths-webpack-plugin": "^3.2.0",
1568-
"typescript": "^5.4.0 <5.5.0",
1568+
"typescript": "^5.7.3",
15691569
"vsce": "^2.15.0",
15701570
"vscode-extension-tester": "^8.10.0",
15711571
"vue": "^3.2.23",

src/analytics.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@ import { UIErrorInfo } from './analyticsTypes';
66

77
// IMPORTANT
88
// Make sure there is a corresponding event with the correct attributes in the Data Portal for any event created here.
9-
// Add your event to dataportal.yaml
10-
// Go to https://bitbucket.org/atlassianlabs/dataportal-cli/src/master/ and follow the instructions there.
11-
12-
// Performing the above allows us to keep the analytics metatdata in source control. Therefore editing metadata directly
13-
// in the data-portal is discourage. However, the cannonical place for the metadata is
14-
// https://data-portal.us-east-1.prod.public.atl-paas.net/analytics/registry?filter=externalProductIntegrations
9+
// 1. Go to go/dataportal
10+
// 2. Open the Measure menu (on top) -> Event Registry
11+
// 3. Add or update the new/changed event
1512

1613
export const Registry = {
1714
screen: {

src/atlclients/strategy.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { strategyForProvider } from './strategy';
1313
// it.each is not found without this:
1414
import { it } from '@jest/globals';
1515

16-
const expectedData = {
16+
const expectedData: any = {
1717
bbcloud: {
1818
provider: 'bbcloud',
1919
authorizeUrl:

src/bitbucket/bitbucket-cloud/pullRequests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const maxItemsSupported = {
3636
};
3737
export const defaultPagelen = 25;
3838

39-
const mergeStrategyLabels = {
39+
const mergeStrategyLabels: Record<string, string> = {
4040
merge_commit: 'Merge commit',
4141
squash: 'Squash',
4242
fast_forward: 'Fast forward',
@@ -251,7 +251,7 @@ export class CloudPullRequestApi implements PullRequestApi {
251251
private isFileConflicted(diffType: string, diffStat: any, conflictData: any[]): boolean | undefined {
252252
const oldPath = diffStat.old?.path;
253253
const newPath = diffStat.new?.path;
254-
return diffType === 'TOPIC' && conflictData.some((c) => c.path === newPath ?? oldPath);
254+
return diffType === 'TOPIC' && conflictData.some((c) => c.path === newPath || oldPath);
255255
}
256256

257257
private mapStatusWordsToFileStatus(status: string): FileStatus {

src/bitbucket/bitbucket-server/pullRequests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export class ServerPullRequestApi implements PullRequestApi {
8181
}
8282

8383
async getListToReview(workspaceRepo: WorkspaceRepo): Promise<PaginatedPullRequests> {
84-
const query = {
84+
const query: Record<string, any> = {
8585
'username.1': await this.userName(workspaceRepo),
8686
'role.1': 'REVIEWER',
8787
};

src/bitbucket/httpClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export class HTTPClient {
110110
let url = `${this.baseUrl}${urlSlug}`;
111111
url = HTTPClient.addQueryParams(url, queryParams);
112112

113-
const headers = {
113+
const headers: Record<string, string> = {
114114
accept: 'application/octet-stream',
115115
};
116116

src/bitbucket/model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export interface FileDiff {
207207
newPathDeletions: number[];
208208
// maps destination file line number to source file line number to support Bitbucket server comments
209209
// NOT using Map here as Map does not serialize to JSON
210-
newPathContextMap: Object;
210+
newPathContextMap: Record<string, number>;
211211
};
212212

213213
// Indicates whether or not the file has a conflict. Only defined on topic diffs - recent (approx 2022 and forward) BB server diffs.

0 commit comments

Comments
 (0)