Skip to content
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

Port main changes to next #2532

Merged
merged 316 commits into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
316 commits
Select commit Hold shift + click to select a range
b9cd91c
address feedback
JillieBeanSim Sep 26, 2023
2c5eba7
fix unit tests
JillieBeanSim Sep 26, 2023
fd0649f
Merge pull request #2470 from zowe/change-file-tags-ui
rudyflores Sep 27, 2023
83ec896
fix(job,uss): Remove extra 'delete job' msg; Add check for paste API …
traeok Sep 27, 2023
8ae3565
chore: update CHANGELOG
traeok Sep 27, 2023
0ab2c07
test(uss): Add test case for pasteUss - unsupported APIs
traeok Sep 27, 2023
b35edb5
fix(uss): update USS directory icons when collapsed
traeok Sep 27, 2023
4a581db
fix(tests): Add missing 'onDidCollapseElement' function to mocks
traeok Sep 27, 2023
d7cfb60
fix(trees): Update icon when folder/session is collapsed
traeok Sep 27, 2023
6006d3c
address feedback
JillieBeanSim Sep 27, 2023
3990e7a
Merge remote-tracking branch 'origin/main' into profile-management
JillieBeanSim Sep 27, 2023
5b57f4c
update log string
JillieBeanSim Sep 27, 2023
c5dd06c
address code smell
JillieBeanSim Sep 27, 2023
ef8a96f
fix: add JCLLIB to appendSuffix checks
traeok Sep 27, 2023
c9c7ca3
chore(deps): Bump get-func-name from 2.0.0 to 2.0.2
dependabot[bot] Sep 27, 2023
d6e6534
Merge branch 'main' into ZE-Extenders-MetaData
JillieBeanSim Sep 28, 2023
094f904
Merge pull request #2474 from zowe/fix/ds/sort
zFernand0 Sep 28, 2023
d0586b7
Merge branch 'maintenance' into fix/uss/tree-ux
zFernand0 Sep 28, 2023
553ceaa
Merge pull request #2482 from zowe/dependabot/npm_and_yarn/get-func-n…
zFernand0 Sep 28, 2023
ef5d5a2
Handled Duplicates and made changes to CHANGELOG files
likhithanimma1 Sep 28, 2023
bb2e749
Merge branch 'main' into ZE-Extenders-MetaData
zFernand0 Sep 28, 2023
af7e90c
Merge branch 'main' into profile-management
JillieBeanSim Sep 28, 2023
fdd069c
refactor of webview code
rudyflores Sep 28, 2023
acf134e
test(trees): Add test for refreshIconOnCollapse generated listeners
traeok Sep 28, 2023
0881ac1
add back tag code lost from merge
rudyflores Sep 28, 2023
e5990bb
fix lint check
rudyflores Sep 28, 2023
3bc88aa
add new dist location to prettierignore
rudyflores Sep 29, 2023
45585bc
revert lint to original no lint message
rudyflores Sep 29, 2023
5afd103
addToConfigArray functionality changed
likhithanimma1 Sep 29, 2023
dbac736
fix(ds,jobs): Only assign IDs to session nodes in tree
traeok Sep 29, 2023
e38ff9e
fix(tests): remove ID assignments for inner nodes in test cases
traeok Sep 29, 2023
9a013ed
Fixed Linting
likhithanimma1 Sep 30, 2023
cac1c2b
Fix Coverity issue and use local ZE API in samples
t1m0thyj Oct 2, 2023
2a21496
Build ZE API in samples workflow
t1m0thyj Oct 2, 2023
ef4c4bb
update description of webviews creation function
rudyflores Oct 2, 2023
1beddfb
checked whether array is valid
likhithanimma1 Oct 2, 2023
fdace6e
address login feedback
JillieBeanSim Oct 2, 2023
18c221b
Merge pull request #2490 from zowe/fix-code-smells
t1m0thyj Oct 2, 2023
25237f2
Merge branch 'main' into refactor-webviews
rudyflores Oct 2, 2023
c22fb83
concurrently fix for windows users
rudyflores Oct 2, 2023
5b4cd3f
Merge branch 'refactor-webviews' of github.com:zowe/vscode-extension-…
rudyflores Oct 2, 2023
3a64b9f
Merge pull request #2489 from zowe/refactor-webviews
zFernand0 Oct 2, 2023
71cd777
move enable, disable, and delete to quickpick
JillieBeanSim Oct 2, 2023
f4b0e0c
Merge branch 'main' into profile-management
JillieBeanSim Oct 2, 2023
d8ec097
Merge branch 'main' into ZE-Extenders-MetaData
JillieBeanSim Oct 2, 2023
4b30095
Merge pull request #2471 from likhithanimma1/ZE-Extenders-MetaData
JillieBeanSim Oct 2, 2023
ccc9223
Merge branch 'main' into profile-management
JillieBeanSim Oct 2, 2023
00af763
add unit tests
JillieBeanSim Oct 2, 2023
8b2e848
Merge pull request #2481 from zowe/fix/uss/tree-ux
JillieBeanSim Oct 2, 2023
abc276e
Update credential management flow
rudyflores Oct 3, 2023
9767258
reload after installing
rudyflores Oct 3, 2023
7ba0dbf
add changelog
rudyflores Oct 3, 2023
5e203ed
fix broken unit tests
rudyflores Oct 3, 2023
6a268a7
feat(ds): Sort by date modified, name, or user ID
traeok Oct 3, 2023
735703c
fix(ds): deconstruct date, time, seconds from API response
traeok Oct 3, 2023
e06bc6f
fix(ds, jobs): update node children check; adjust sortJobsBy function…
traeok Oct 3, 2023
5cc3d90
add code coverage
rudyflores Oct 3, 2023
96d6dc3
tests(ds): Add test cases for DatasetTree.sortBy
traeok Oct 4, 2023
29ee884
prepare 2.11.1 release
JillieBeanSim Oct 4, 2023
b249cc8
remove CHANGELOG item that listed here but code went into main
JillieBeanSim Oct 4, 2023
3409f31
ds: move 'Sort by' options to session context menu
traeok Oct 5, 2023
12dfac5
ds: Change sort UX to single menu option
traeok Oct 5, 2023
5af78cd
ds: Update sorting UX to use inline icon beside session
traeok Oct 5, 2023
3fb7cda
fix(ds, jobs): Add session-level and per-PDS sort, cache job sort method
traeok Oct 5, 2023
742a90e
address feedback
JillieBeanSim Oct 6, 2023
33edd0c
tests(ds, jobs): Fix test cases to work with UX changes
traeok Oct 6, 2023
57ceb65
add persistent items editor webview
rudyflores Oct 6, 2023
353ff74
Fix conflict resolution skipped if local and remote file are same size
t1m0thyj Oct 6, 2023
88fe3d5
Add missing webviews to vsix bundle
rudyflores Oct 6, 2023
244446f
Fix edit attributes view for web users
rudyflores Oct 6, 2023
a0b70a0
chore(deps): Bump postcss from 8.4.30 to 8.4.31
dependabot[bot] Oct 8, 2023
0136852
Merge pull request #2503 from zowe/dependabot/npm_and_yarn/postcss-8.…
JillieBeanSim Oct 9, 2023
b1755a9
chore(deps): Bump postcss
dependabot[bot] Oct 9, 2023
e2e5319
Merge pull request #2502 from zowe/dependabot/npm_and_yarn/samples/vu…
JillieBeanSim Oct 9, 2023
b55efdc
Merge branch 'main' into profile-management
JillieBeanSim Oct 9, 2023
f31d6c8
Merge branch 'main' into add-webview-to-bundle
zFernand0 Oct 9, 2023
79cd411
Merge pull request #2500 from zowe/add-webview-to-bundle
JillieBeanSim Oct 9, 2023
6424ffe
Merge branch 'main' into fix/conflict-resolution
zFernand0 Oct 9, 2023
4573ba2
add new way of keeping security code
rudyflores Oct 9, 2023
9e6b41d
Merge branch 'main' into update-credential-management
rudyflores Oct 9, 2023
5f77386
Merge pull request #2498 from zowe/fix/conflict-resolution
zFernand0 Oct 9, 2023
3fe4ec8
Merge pull request #2501 from zowe/fix-webview-for-web
JillieBeanSim Oct 9, 2023
daacc0d
Merge branch 'maintenance' into 2.11.1-release
JillieBeanSim Oct 9, 2023
60e3c9d
Merge branch 'main' into profile-management
JillieBeanSim Oct 9, 2023
065e285
feat(ds): Filter PDS members (session-level and PDS-level); fix broke…
traeok Oct 9, 2023
26d08da
Merge branch 'main' of github.com:zowe/vscode-extension-for-zowe into…
rudyflores Oct 9, 2023
55df8a2
add option to add/remove different persistence items
rudyflores Oct 9, 2023
b17e6e4
fix: some SonarCloud code smells
traeok Oct 9, 2023
addf454
organize file structure of webview
rudyflores Oct 9, 2023
4808c2f
solve refresh issue
rudyflores Oct 9, 2023
d059541
clean up view
rudyflores Oct 9, 2023
99b94b3
Merge branch 'main' into update-credential-management
rudyflores Oct 9, 2023
a68761d
tests(ds): Bump patch coverage for DatasetTree.filterPdsMembers
traeok Oct 9, 2023
bee6489
chore(ds/sort): code refactor, add typedoc, cleanup strings
traeok Oct 9, 2023
8d8871c
Merge branch 'main' into feat/ds/sort
traeok Oct 9, 2023
21fb841
fix(ds/sort): some SonarCloud code smells
traeok Oct 9, 2023
b2e0d9d
test(ds): Add test cases for filter/sort options
traeok Oct 10, 2023
ccccc65
Merge pull request #2472 from zowe/profile-management
JillieBeanSim Oct 10, 2023
3cde152
fix: sort direction should only apply to PDS members
traeok Oct 10, 2023
8fe027a
Submit JCL right-click option added for local JCL
JillieBeanSim Oct 10, 2023
9ade075
Add check for doc language in the Submit JCL method
JillieBeanSim Oct 10, 2023
bd32734
fix(test): Fix 'fake session node' sort options in test case
traeok Oct 10, 2023
0bf58ca
fix unit tests
JillieBeanSim Oct 10, 2023
a761593
add CHANGELOG
JillieBeanSim Oct 10, 2023
64ea1e4
run prepublish
JillieBeanSim Oct 10, 2023
79cf649
fix, chore: remove unnecessary refresh in sortBy; update CHANGELOGS
traeok Oct 10, 2023
41dffbc
Merge branch 'main' into feat/ds/sort
traeok Oct 10, 2023
03afd25
Merge pull request #2495 from zowe/2.11.1-release
JillieBeanSim Oct 10, 2023
26f6e63
Bump version to 2.11.1 [ci skip]
zowe-robot Oct 10, 2023
95dc52f
Bump version to 2.11.2-SNAPSHOT [ci skip]
zowe-robot Oct 10, 2023
3884a3e
fix(ds/filter): Refresh PDS if session/PDS had a previous filter
traeok Oct 10, 2023
44beaa4
add conditional rendering
rudyflores Oct 10, 2023
481a23f
fix(ds): Add sort/filter support for FTP response; fix test cases
traeok Oct 10, 2023
e70c83a
UI icons update for buttons
rudyflores Oct 11, 2023
9df717a
independent selection states for each tab
rudyflores Oct 11, 2023
2cfcb59
add option for retaining context on focus loss
rudyflores Oct 11, 2023
b97a78a
add types
rudyflores Oct 11, 2023
af84af1
final cleanup using context
rudyflores Oct 11, 2023
11123c1
add localized strings
rudyflores Oct 11, 2023
f7b34f3
update checks for langId and add passing of file when needed
JillieBeanSim Oct 11, 2023
f04ea45
multi-select deletion support
rudyflores Oct 11, 2023
fb9eb13
clean up some duplication in test file
JillieBeanSim Oct 11, 2023
88384eb
error handling
rudyflores Oct 12, 2023
810bc6f
fix(jobs/sort): Proper handling for jobs with null retcodes
traeok Oct 12, 2023
aed4ae0
fix(jobs/sort): use nullish coalescing for retcode/status check
traeok Oct 12, 2023
aefb07e
add webview to menu options
rudyflores Oct 12, 2023
42c75a3
copy and package secrets with API package
JillieBeanSim Oct 16, 2023
48775c0
add CHANGELOG and update lerna for quick patch release
JillieBeanSim Oct 16, 2023
d3ddd2e
use copyfiles devDep for older node versions
JillieBeanSim Oct 16, 2023
0151df8
remove un-needed change
JillieBeanSim Oct 16, 2023
6028473
update lock file
JillieBeanSim Oct 16, 2023
f5ca542
Merge pull request #2513 from zowe/fix/bundle-secrets-apis
JillieBeanSim Oct 16, 2023
f536dc8
Bump version to 2.11.2 [ci skip]
zowe-robot Oct 16, 2023
7fb57cf
Bump version to 2.11.3-SNAPSHOT [ci skip]
zowe-robot Oct 16, 2023
16c6ae2
Merge branch 'main' into update-credential-management
rudyflores Oct 16, 2023
bd44e0a
Merge remote-tracking branch 'origin/maintenance' into port/2.11.2
JillieBeanSim Oct 16, 2023
63331bc
Fix for unsecure profile token auth
rudyflores Oct 16, 2023
7dfae3f
add changelog
rudyflores Oct 16, 2023
3058145
remove filters on logout
rudyflores Oct 16, 2023
d11a093
updates to CHANGELOGs
JillieBeanSim Oct 17, 2023
e0dda45
feat(ds, jobs): Show status bar msg when sort/filter is applied
traeok Oct 17, 2023
aaa67c9
Merge pull request #2507 from zowe/feat/ds/sort
JillieBeanSim Oct 17, 2023
ba948e2
chore(deps): Bump @babel/traverse from 7.17.10 to 7.23.2
dependabot[bot] Oct 17, 2023
e22ff96
Merge pull request #2520 from zowe/dependabot/npm_and_yarn/babel/trav…
zFernand0 Oct 17, 2023
129efde
remove circular imports
rudyflores Oct 17, 2023
0838214
add coverage
JillieBeanSim Oct 17, 2023
943ea4f
Merge branch 'main' into fix-for-unsecure-profiles
rudyflores Oct 17, 2023
7311c53
code cleanup
rudyflores Oct 17, 2023
d4e59f6
Merge branch 'fix-for-unsecure-profiles' of https://github.com/zowe/v…
rudyflores Oct 17, 2023
86a7e93
Merge remote-tracking branch 'origin/main' into submit-jcl-enhancements
JillieBeanSim Oct 17, 2023
577d39e
add code coverage
rudyflores Oct 17, 2023
2ea9ce5
feat(ds): show descriptions for filter and sort values for clarity
traeok Oct 17, 2023
f46f056
address code smells
JillieBeanSim Oct 18, 2023
bd5dae3
chore: Update CHANGELOG
traeok Oct 18, 2023
ebd9a26
fix(ds/sort): Handle edge cases to ensure proper sorting
traeok Oct 18, 2023
fe0619d
test(ds/sort): Add case for resetting node descriptions at session-level
traeok Oct 18, 2023
f6f9ad9
remove icons due to packaging conflict
rudyflores Oct 18, 2023
ee34f25
Merge branch 'main' into edit-history-webview
rudyflores Oct 18, 2023
d898363
fix broken unit tests
rudyflores Oct 18, 2023
b14013c
add code coverage
rudyflores Oct 18, 2023
63f95d6
add changelog
rudyflores Oct 18, 2023
aec67d9
address code smells
rudyflores Oct 18, 2023
778de00
address additional code smells
rudyflores Oct 18, 2023
6d6d368
make data panel readonly
rudyflores Oct 18, 2023
22f6d0c
add missing code coverage
rudyflores Oct 18, 2023
64f7919
coverage for HistoryView.ts
rudyflores Oct 18, 2023
7c634bb
Address code smells from new tests
rudyflores Oct 18, 2023
abb7b93
fix dropdown height issue
rudyflores Oct 19, 2023
ca963a1
Merge branch 'main' into update-credential-management
rudyflores Oct 19, 2023
8c07897
Merge branch 'main' into port/2.11.2
JillieBeanSim Oct 19, 2023
38d3476
run build locally to make sure lock correct
JillieBeanSim Oct 19, 2023
6bf9886
fix broken unit test
rudyflores Oct 19, 2023
7664664
Merge pull request #2516 from zowe/port/2.11.2
JillieBeanSim Oct 19, 2023
fc204ec
Merge remote-tracking branch 'origin/main' into submit-jcl-enhancements
JillieBeanSim Oct 20, 2023
ce338dc
Merge branch 'main' into edit-history-webview
JillieBeanSim Oct 20, 2023
ad0d22e
Merge branch 'main' into feat/ds/sort-enhancements
traeok Oct 20, 2023
415cb12
fix tests and add header to file
JillieBeanSim Oct 20, 2023
b513104
Merge branch 'main' into update-credential-management
JillieBeanSim Oct 20, 2023
1c40052
Merge pull request #2523 from zowe/edit-history-webview
JillieBeanSim Oct 20, 2023
95cccc8
Merge branch 'main' into submit-jcl-enhancements
JillieBeanSim Oct 20, 2023
1ed6826
Merge branch 'main' into fix-for-unsecure-profiles
rudyflores Oct 20, 2023
a067aa7
Merge branch 'main' into feat/ds/sort-enhancements
JillieBeanSim Oct 20, 2023
b870d6d
Merge branch 'main' into update-credential-management
rudyflores Oct 20, 2023
88b5ae4
fix for assignment on non existent property
rudyflores Oct 20, 2023
d732a3c
change function access back to public
rudyflores Oct 20, 2023
c20d02a
fix broken unit test
rudyflores Oct 20, 2023
464d712
Merge pull request #2521 from zowe/feat/ds/sort-enhancements
zFernand0 Oct 23, 2023
71f1370
Merge branch 'main' into update-credential-management
rudyflores Oct 23, 2023
01441d3
Merge branch 'main' into fix-for-unsecure-profiles
rudyflores Oct 23, 2023
4ee3e5e
Merge branch 'main' into submit-jcl-enhancements
JillieBeanSim Oct 23, 2023
097391c
address comment and remove check for langID including JCL
JillieBeanSim Oct 24, 2023
f65d3dd
update bug fix changelog for this item
JillieBeanSim Oct 24, 2023
d1f90d2
fix for issue when profile not listed
rudyflores Oct 24, 2023
db51274
Merge pull request #2517 from zowe/fix-for-unsecure-profiles
JillieBeanSim Oct 24, 2023
6afcdfe
Merge branch 'main' into submit-jcl-enhancements
JillieBeanSim Oct 24, 2023
0be6b9b
Merge branch 'main' into update-credential-management
rudyflores Oct 24, 2023
6805f34
fix(ftp): Use fileSync instead of tmpNameSync when checking e-tag
traeok Oct 24, 2023
610a812
test(ftp): Update test cases to verify tmp.fileSync call
traeok Oct 24, 2023
6c1c9b6
fix(ftp): adjust getContentsTag calls so only one FTP connection is a…
traeok Oct 24, 2023
4e55a99
chore: update FTP changelog
traeok Oct 24, 2023
10ab3f8
Merge pull request #2510 from zowe/submit-jcl-enhancements
rudyflores Oct 24, 2023
a6f08d9
Merge branch 'main' into update-credential-management
rudyflores Oct 24, 2023
e2bd6fa
Merge branch 'main' into fix/ftp/temp-files
traeok Oct 24, 2023
d493cf4
fix(ftp,tests): Revert back to tmpNameSync, add assertions in tests
traeok Oct 24, 2023
51672dc
refactor condition for checking for custom credential managers
rudyflores Oct 25, 2023
65cb11e
add back headless used for testing
rudyflores Oct 25, 2023
4d6179a
remove extra call and register before for theia = false
JillieBeanSim Oct 25, 2023
1ca3714
fix code smell
JillieBeanSim Oct 25, 2023
ace4dbe
issue where imperative override was set back to default fix
rudyflores Oct 25, 2023
ea9070e
try this
JillieBeanSim Oct 26, 2023
2746849
fix broken unit tests
rudyflores Oct 26, 2023
926e6fe
add missing code coverage
rudyflores Oct 26, 2023
d8e9da4
Merge pull request #2527 from zowe/update-cm-ext
rudyflores Oct 26, 2023
9608789
fix odd string issue
rudyflores Oct 26, 2023
30dceaa
change refresh to reload
rudyflores Oct 26, 2023
23cb591
fix broken test
rudyflores Oct 26, 2023
16f70e4
Merge pull request #2492 from zowe/update-credential-management
JillieBeanSim Oct 26, 2023
5042058
update lerna, clean changelogs
JillieBeanSim Oct 27, 2023
f2f9294
merge main into next
rudyflores Oct 27, 2023
027aef1
fix broken unit tests
rudyflores Oct 27, 2023
70fea1e
add missing parameter breaking build
rudyflores Oct 27, 2023
a928708
fix code smells
rudyflores Oct 27, 2023
2d4a4ab
remove ZoweExplorerApi.ts
rudyflores Oct 30, 2023
9325962
fix broken samples after api removal
rudyflores Oct 30, 2023
539cbf2
update CHANGELOGs
JillieBeanSim Oct 30, 2023
548a8df
move to new PR against main
rudyflores Oct 30, 2023
ab7284c
fix(ds/sort): Fallback to sorting by name when values are equal
traeok Oct 31, 2023
db09e31
fix(ds/sort): Remove node description if date from API is invalid (un…
traeok Oct 31, 2023
bc94caf
fix(ds/sort): update stats on existing nodes
traeok Oct 31, 2023
9235f28
fix(ds/sort): Handle single nodes with empty user ID
traeok Oct 31, 2023
19f031c
test(sort): Add patch coverage for updateStats fn
traeok Oct 31, 2023
502a511
update sample workflow to build ZE API
rudyflores Oct 31, 2023
2da3995
fix(ds): Fix 'existing node' check in getChildren for PDS members
traeok Oct 31, 2023
0ee2c84
Merge branch 'main' into fix/ftp/temp-files
traeok Oct 31, 2023
7ecb12e
Merge pull request #2537 from zowe/fix-overrides-file-writing2
JillieBeanSim Nov 1, 2023
1c0ca39
Merge branch 'main' into fix/sort/equal-values
JillieBeanSim Nov 1, 2023
0592bd1
Merge pull request #2538 from zowe/fix/sort/equal-values
JillieBeanSim Nov 1, 2023
e5cd32f
Merge branch 'main' into 2.12.0-release
JillieBeanSim Nov 1, 2023
938cb7d
Merge branch 'main' into fix/ftp/temp-files
zFernand0 Nov 1, 2023
69e21b0
Merge pull request #2531 from zowe/2.12.0-release
zFernand0 Nov 2, 2023
89fc813
Bump version to 2.12.0 [ci skip]
zowe-robot Nov 2, 2023
7d9bf7c
Bump version to 2.13.0-SNAPSHOT [ci skip]
zowe-robot Nov 2, 2023
c92eba0
chore(deps): Bump browserify-sign from 4.2.1 to 4.2.2
dependabot[bot] Nov 2, 2023
f336ffe
fix circular dependency
rudyflores Nov 2, 2023
f4f56ff
Merge pull request #2530 from zowe/dependabot/npm_and_yarn/browserify…
JillieBeanSim Nov 2, 2023
e29cd23
Merge branch 'main' into fix/ftp/temp-files
JillieBeanSim Nov 3, 2023
c2fc8c9
Merge pull request #2526 from zowe/fix/ftp/temp-files
JillieBeanSim Nov 3, 2023
8fe52c5
Bring in 2.12.0 changes into next
rudyflores Nov 7, 2023
6852a1d
Merge branch 'next' into port-main-to-next
rudyflores Nov 7, 2023
e390537
fix merge conflict
rudyflores Nov 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/zowe-explorer-samples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,8 @@ jobs:
# install pnpm
- run: npm install -g pnpm

- run: pnpm config set network-timeout 60000 && pnpm i
- run: pnpm --filter "zowe-explorer-api" build
- run: for dir in samples/*; do pushd $dir && pnpm --ignore-workspace i && pnpm run compile && popd; done

shell: bash
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"private": true,
"workspaces": [
"packages/*",
"packages/zowe-explorer/webviews/*"
"packages/zowe-explorer/src/webviews"
],
"engines": {
"vscode": "^1.63.0"
Expand Down Expand Up @@ -62,8 +62,8 @@
"madge": "pnpm -r run madge",
"pretty": "prettier --write .",
"build": "pnpm -r run build",
"test": "pnpm -r --reporter append-only run test",
"test:parallel": "pnpm -r --parallel run test",
"test": "pnpm -r --sequential --color --reporter append-only run test",
"test:parallel": "pnpm -r --parallel --color run test",
"package": "pnpm run -r package",
"pretest:integration": "ts-node ./scripts/create-env.ts",
"posttest:integration": "ts-node ./scripts/clean-env.ts",
Expand Down
8 changes: 7 additions & 1 deletion packages/eslint-plugin-zowe-explorer/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ All notable changes to the "eslint-plugin-zowe-explorer" package will be documen
- Added placeholder `madge` script to `package.json` for workspace script to succeed.
- Migrated to new package manager PNPM from Yarn.

## `2.9.1`
## `2.11.2`

### New features and enhancements

### Bug fixes

## `2.11.1`

### New features and enhancements

Expand Down
23 changes: 19 additions & 4 deletions packages/zowe-explorer-api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,25 @@ All notable changes to the "zowe-explorer-api" extension will be documented in t
- Added `madge` script in `package.json` to track circular dependencies. [#2148](https://github.com/zowe/vscode-extension-for-zowe/issues/2148)
- Migrated to new package manager PNPM from Yarn.

## `2.12.0`

### New features and enhancements

- Added optional `getTag` function to `ZoweExplorerAPI.IUss` for getting the tag of a file on USS.
- Added new API {ZE Extender MetaData} to allow extenders to have the metadata of registered extenders to aid in team configuration file creation from a view that isn't Zowe Explorer's. [#2394](https://github.com/zowe/vscode-extension-for-zowe/issues/2394)
- Add `sort` and `filter` optional variables for storing sort/filter options alongside tree nodes. [#2420](https://github.com/zowe/vscode-extension-for-zowe/issues/2420)
- Add `stats` optional variable for storing dataset stats (such as user, modified date, etc.)
- Add option enums and types for sorting, filtering and sort direction in tree nodes. [#2420](https://github.com/zowe/vscode-extension-for-zowe/issues/2420)
- Added option for retaining context when generating webviews in Webview API

## `2.11.2`

### Bug fixes

- Bundle Zowe Secrets for issues seen by extenders that use the ProfilesCache for profile management. [#2512](https://github.com/zowe/vscode-extension-for-zowe/issues/2512)

## `2.11.1`

## `2.11.0`

### New features and enhancements
Expand All @@ -32,10 +51,6 @@ All notable changes to the "zowe-explorer-api" extension will be documented in t

## `2.9.2`

### New features and enhancements

### Bug fixes

## `2.9.1`

### New features and enhancements
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function createGlobalMocks() {
showWarningMessage: jest.fn(),
createOutputChannel: jest.fn(),
createQuickPick: jest.fn(),
createTreeView: jest.fn(),
createTreeView: jest.fn().mockReturnValue({ onDidCollapseElement: jest.fn() }),
createWebviewPanel: jest.fn(),
withProgress: jest.fn(),
showTextDocument: jest.fn(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,17 @@ const baseProfileWithToken = {
tokenValue: "baseToken",
},
};
const profilemetadata: zowe.imperative.ICommandProfileTypeConfiguration[] = [
{
type: "acme",
schema: {
type: "object",
title: "acme profile1",
description: "A profile to execute commands",
properties: {},
},
},
];

function createProfInfoMock(profiles: Partial<zowe.imperative.IProfileLoaded>[]): zowe.imperative.ProfileInfo {
return {
Expand Down Expand Up @@ -154,6 +165,20 @@ describe("ProfilesCache", () => {
expect(Object.keys(keyring).length).toBe(5);
});

it("addToConfigArray should set the profileTypeConfigurations array", () => {
const profCache = new ProfilesCache(fakeLogger as unknown as zowe.imperative.Logger);
profilemetadata.push(profilemetadata[0]);
profCache.addToConfigArray(profilemetadata);
expect(profCache.profileTypeConfigurations).toEqual(profilemetadata.filter((a, index) => index == 0));
});

it("getConfigArray should return the data of profileTypeConfigurations Array", () => {
const profCache = new ProfilesCache(fakeLogger as unknown as zowe.imperative.Logger);
profCache.profileTypeConfigurations = profilemetadata;
const res = profCache.getConfigArray();
expect(res).toEqual(profilemetadata);
});

it("loadNamedProfile should find profiles by name and type", () => {
const profCache = new ProfilesCache(fakeLogger as unknown as zowe.imperative.Logger);
profCache.allProfiles = [lpar1Profile as zowe.imperative.IProfileLoaded, zftpProfile as zowe.imperative.IProfileLoaded];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,30 @@ describe("ZosmfUssApi", () => {
expect(logoutSpy).toHaveBeenCalledWith(fakeSession);
});

it("should retrieve the tag of a file", async () => {
const zosmfApi = new ZosmfUssApi();
jest.spyOn(JSON, "parse").mockReturnValue({
stdout: ["-t UTF-8 tesfile.txt"],
});

Object.defineProperty(zowe.Utilities, "putUSSPayload", {
value: () => Buffer.from(""),
configurable: true,
});
await expect(zosmfApi.getTag("testfile.txt")).resolves.toEqual("UTF-8");
});

it("should update the tag attribute when passed in", async () => {
const zosmfApi = new ZosmfUssApi();
const changeTagSpy = jest.fn();
Object.defineProperty(zowe.Utilities, "putUSSPayload", {
value: changeTagSpy,
configurable: true,
});
await expect(zosmfApi.updateAttributes("/test/path", { tag: "utf-8" })).resolves.not.toThrow();
expect(changeTagSpy).toBeCalledTimes(1);
});

const ussApis: ITestApi<ZosmfUssApi>[] = [
{
name: "isFileTagBinOrAscii",
Expand Down
8 changes: 5 additions & 3 deletions packages/zowe-explorer-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"lib"
],
"devDependencies": {
"@types/semver": "^7.5.0"
"@types/semver": "^7.5.0",
"copyfiles": "^2.4.1"
},
"dependencies": {
"@types/vscode": "^1.53.2",
Expand All @@ -23,7 +24,7 @@
"semver": "^7.5.3"
},
"scripts": {
"build": "pnpm check-cli && pnpm clean && pnpm madge && tsc -p ./ && pnpm license",
"build": "pnpm check-cli && pnpm copy-secrets && pnpm clean && tsc -p ./ && pnpm license",
"test:unit": "jest \".*__tests__.*\\.unit\\.test\\.ts\" --coverage",
"test": "pnpm test:unit",
"lint": "concurrently -n \"_eslint_,prettier\" \"eslint .\" \"prettier --write . && prettier --check .\"",
Expand All @@ -34,7 +35,8 @@
"clean": "rimraf lib",
"fresh-clone": "pnpm clean && (rimraf node_modules || true)",
"license": "node ../../scripts/updateLicenses.js",
"package": "pnpm build && pnpm pack && node ../../scripts/mv-pack.js zowe-zowe-explorer-api tgz"
"package": "pnpm build && pnpm pack && node ../../scripts/mv-pack.js zowe-zowe-explorer-api tgz",
"copy-secrets": "copyfiles -f ../../node_modules/@zowe/secrets-for-zowe-sdk/prebuilds/*.node ./prebuilds"
},
"jest": {
"moduleFileExtensions": [
Expand Down
8 changes: 8 additions & 0 deletions packages/zowe-explorer-api/src/extend/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,14 @@ export interface IUss extends ICommon {
* @returns {Promise<zowe.IZosFilesResponse>}
*/
rename(currentUssPath: string, newUssPath: string): Promise<zowe.IZosFilesResponse>;

/**
* Get the tag of a USS file
*
* @param {string} ussPath
* @returns {Promise<zowe.IZosFilesResponse>}
*/
getTag?(ussPath: string): Promise<string>;
}

/**
Expand Down
8 changes: 7 additions & 1 deletion packages/zowe-explorer-api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ export * from "./profiles/ProfilesCache";
export * from "./profiles/ZoweExplorerZosmfApi";
export * from "./security/KeytarApi";
export * from "./security/KeytarCredentialManager";
export * from "./tree";
export * from "./security/KeytarApi";
export * from "./security/KeytarCredentialManager";
export * from "./tree/ZoweExplorerTreeApi";
export * from "./tree/ZoweTreeNode";
export * from "./tree/IZoweTree";
export * from "./tree/IZoweTreeNode";
export * from "./tree/sorting";
export * from "./utils";
export * from "./vscode/ZoweVsCodeExtension";
export * from "./vscode/ui";
Expand Down
16 changes: 16 additions & 0 deletions packages/zowe-explorer-api/src/profiles/ProfilesCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export class ProfilesCache {
public profilesForValidation: IProfileValidation[] = [];
public profilesValidationSetting: IValidationSetting[] = [];
public allProfiles: zowe.imperative.IProfileLoaded[] = [];
public profileTypeConfigurations: zowe.imperative.ICommandProfileTypeConfiguration[] = [];
protected allTypes: string[];
protected allExternalTypes = new Set<string>();
protected profilesByType = new Map<string, zowe.imperative.IProfileLoaded[]>();
Expand All @@ -83,6 +84,21 @@ export class ProfilesCache {
return require("@zowe/secrets-for-zowe-sdk").keyring;
}

public addToConfigArray(extendermetadata: zowe.imperative.ICommandProfileTypeConfiguration[]): void {
extendermetadata?.forEach((item) => {
const index = this.profileTypeConfigurations.findIndex((ele) => ele.type == item.type);
if (index !== -1) {
this.profileTypeConfigurations[index] = item;
} else {
this.profileTypeConfigurations.push(item);
}
});
}

public getConfigArray(): zowe.imperative.ICommandProfileTypeConfiguration[] {
return this.profileTypeConfigurations;
}

public async getProfileInfo(_envTheia = false): Promise<zowe.imperative.ProfileInfo> {
const mProfileInfo = new zowe.imperative.ProfileInfo("zowe", {
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
Expand Down
17 changes: 16 additions & 1 deletion packages/zowe-explorer-api/src/profiles/ZoweExplorerZosmfApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,14 @@ export class ZosmfUssApi extends ZosmfApiCommon implements IUss {

public async updateAttributes(ussPath: string, attributes: Partial<FileAttributes>): Promise<zowe.IZosFilesResponse> {
try {
if (attributes.tag) {
await zowe.Utilities.putUSSPayload(this.getSession(), ussPath, {
request: "chtag",
action: "set",
type: "text",
codeset: attributes.tag !== null ? attributes.tag.toString() : attributes.tag,
});
}
if ((attributes.group || attributes.gid) && (attributes.owner || attributes.uid)) {
await zowe.Utilities.putUSSPayload(this.getSession(), ussPath, {
request: "chown",
Expand All @@ -141,7 +149,6 @@ export class ZosmfUssApi extends ZosmfApiCommon implements IUss {
recursive: true,
});
}

if (attributes.perms) {
await zowe.Utilities.putUSSPayload(this.getSession(), ussPath, {
request: "chmod",
Expand Down Expand Up @@ -185,6 +192,14 @@ export class ZosmfUssApi extends ZosmfApiCommon implements IUss {
apiResponse: result,
};
}

public async getTag(ussPath: string): Promise<string> {
const response = await zowe.Utilities.putUSSPayload(this.getSession(), ussPath, {
request: "chtag",
action: "list",
});
return JSON.parse(response.toString()).stdout[0].split(" ")[1] as string;
}
}

/**
Expand Down
Loading
Loading