Skip to content

Commit

Permalink
3.16.0 (#245)
Browse files Browse the repository at this point in the history
* ext.atcVersions work

* 2.11 catch up
  • Loading branch information
DumpySquare authored Feb 11, 2024
1 parent e415593 commit 3e6dc62
Show file tree
Hide file tree
Showing 7 changed files with 292 additions and 3,131 deletions.
2 changes: 1 addition & 1 deletion diagRules/tmosXcRules.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
"code": "b432",
"severity": "Warning",
"title": "XC - iRule HTTP response",
"message": "custome HTTP response not supported in XC",
"message": "custom HTTP response not supported in XC",
"regex": "HTTP::respond"
},
{
Expand Down
3,393 changes: 276 additions & 3,117 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@
},
"dependencies": {
"@f5devcentral/f5-fast-core": "^0.23.0",
"ajv": "^8.11.2",
"f5-conx-core": "^0.17.2",
"f5-conx-core": "^1.0.0",
"f5-corkscrew": "^1.4.1",
"js-yaml": "^4.0.0"
},
Expand Down
4 changes: 2 additions & 2 deletions src/devicesCore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { ext } from "./extensionVariables";
import { BigipHost } from "./models";
import { F5TreeProvider } from "./treeViewsProviders/hostsTreeProvider";
import * as utils from './utils/utils';
import { Asset, HttpResponse, isArray, wait } from 'f5-conx-core';
import { Asset, AxiosResponseWithTimings, isArray, wait } from 'f5-conx-core';
import * as rpmMgmt from './utils/rpmMgmt';
import { BigipTreeProvider } from './treeViewsProviders/bigipTreeProvider';
import { tokenTimer } from './tokenTimer';
Expand Down Expand Up @@ -438,7 +438,7 @@ export default function devicesCore(context: ExtensionContext, f5OutputChannel:
const upLoadResponses = [];
let rpm: Asset;
let signature;
let installed: HttpResponse;
let installed: AxiosResponseWithTimings;

let prompt: boolean = true;

Expand Down
7 changes: 5 additions & 2 deletions src/extensionVariables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,13 @@ export async function initSettings(context: ExtensionContext) {
logger.debug(`existing cache directory detected: ${ext.cacheDir}`);
};

// get atc release information
await atcVersionClient.getAtcReleasesInfo()
// get atc release information -> this can happen async
atcVersionClient.getAtcReleasesInfo()
.then(versions => {
ext.atcVersions = versions;
})
.catch(err => {
logger.error('failed to get atc versions (vscode-f5)', err);
});
}

Expand Down
10 changes: 5 additions & 5 deletions src/treeViewsProviders/bigipTreeProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ export class BigipTreeProvider implements TreeDataProvider<IpTreeItem> {
constructor(context: ExtensionContext) {
this.context = context;
// this.connected = f5Client;
this.fast = ext.atcVersions.fast;
this.as3 = ext.atcVersions.as3;
this.do = ext.atcVersions.do;
this.ts = ext.atcVersions.ts;
this.cf = ext.atcVersions.cf;
this.fast = ext.atcVersions?.fast;
this.as3 = ext.atcVersions?.as3;
this.do = ext.atcVersions?.do;
this.ts = ext.atcVersions?.ts;
this.cf = ext.atcVersions?.cf;
}


Expand Down
4 changes: 2 additions & 2 deletions src/treeViewsProviders/bigiqTreeProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ export class BigiqTreeProvider implements TreeDataProvider<IqTreeItem> {

constructor(context: ExtensionContext) {
this.context = context;
this.as3 = ext.atcVersions.as3;
this.do = ext.atcVersions.do;
this.as3 = ext.atcVersions?.as3;
this.do = ext.atcVersions?.do;
}


Expand Down

0 comments on commit 3e6dc62

Please sign in to comment.