Skip to content

Commit

Permalink
3.7.1 (#175)
Browse files Browse the repository at this point in the history
* 3.8.0

* as3 tasks tweak
  • Loading branch information
DumpySquare authored Mar 29, 2022
1 parent 12ae3f2 commit 519cf0d
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 16 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how

---

## [3.7.1] - (03-29-2022)

- as3 declarations/tasks data smoothing (m)

---

## [3.7.0] - (03-18-2022)

- [RFE] Ability to organize F5 Hosts into Folders #71
Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "The F5 Extension",
"description": "Supercharge your F5 automation development",
"publisher": "F5DevCentral",
"version": "3.7.0",
"version": "3.7.1",
"keywords": [
"F5",
"F5Networks",
Expand Down
20 changes: 13 additions & 7 deletions src/treeViewsProviders/as3TreeProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ export class AS3TreeProvider implements TreeDataProvider<AS3item> {
await this.getTenants(); // refresh tenant information
await this.getTasks(); // refresh tasks information

const taskCount = this.tasks.length !== 0 ? this.tasks.length.toString() : '';
const taskCount = this.tasks.length !== 0 ? this.tasks.length.toString() : '0';

// only try to parse declarations if we have an as3 dec map
// sometimes AS3 is installed but has no apps
Expand Down Expand Up @@ -342,13 +342,19 @@ export class AS3TreeProvider implements TreeDataProvider<AS3item> {
await ext.f5Client?.as3?.getTasks()
.then((resp: any) => {
this.tasks = []; // clear current tenant list
this.tasks = resp.data.items.map((item: any) => {
// if no decs in task or none on box, it returns limited details, but the request still gets an ID, so we blank in what's not there - also happens when getting-tasks
const timeStamp = item.declaration.hasOwnProperty('controls') ? item.declaration.controls.archiveTimestamp : '';
const iId = item.id;

return { iId, timeStamp };
});
// reassing tasks data cbip returns 'resp.data.items[]', mbip returns 'resp.data[]'
const tsks = resp.data.items ? resp.data.items : resp.data;

// if(resp.data.length > 0) {
this.tasks = tsks.map((item: any) => {
// if no decs in task or none on box, it returns limited details, but the request still gets an ID, so we blank in what's not there - also happens when getting-tasks
const timeStamp = item.declaration.hasOwnProperty('controls') ? item.declaration.controls.archiveTimestamp : '';
const iId = item.id;

return { iId, timeStamp };
});
// }
});
}
}
Expand Down

0 comments on commit 519cf0d

Please sign in to comment.