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

feat(cfg): Schema management using ProfileInfo #2001

Merged
merged 65 commits into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
e9af402
ProfileInfo: start impl. proposed APIs for schema mgmt.
traeok Dec 11, 2023
ae0be9e
finish addProfileTypeToSchema, adjust getProfileTypes
traeok Dec 12, 2023
464fc66
Schema mgmt: finish proposed API fns (prototype)
traeok Dec 12, 2023
9c30a52
Schema mgmt.: add typedoc to fn; update buildSchema logic
traeok Dec 12, 2023
09555cc
wip: update extenders.json if adding new profile type
traeok Dec 14, 2023
ffe6420
Schema Mgmt: comments and adjustments to APIs
traeok Dec 15, 2023
b3bc075
wip: addProfileTypeToSchema logic, structure updates
traeok Dec 19, 2023
3b82a48
Merge branch 'master' into feat/cfg/schema-management
traeok Dec 19, 2023
b5468dc
wip: writeExtendersJson helper fn, fix SemVer version checks
traeok Dec 20, 2023
38b08c8
fix(ProfileInfo): get type from cache keys; sort getProfileTypes result
traeok Dec 20, 2023
28dedb6
chore: Add typedoc, clean up new ProfileInfo APIs
traeok Jan 3, 2024
08c382e
fix: only write on-disk schema if changed or non-existent
traeok Jan 3, 2024
2d767ce
fix: pass opts to buildDefaultProfile, v2 config checks
traeok Jan 3, 2024
92aea56
fix: updateSchemaAtLayer optimizations when version is changed
traeok Jan 3, 2024
16904fe
tests: coverage for ProfileInfo schema mgmt. (1/2)
traeok Jan 4, 2024
2202b1a
fix: use localeCompare when sorting profile types
traeok Jan 4, 2024
fba021a
tests: addProfileTypeToSchema scenarios
traeok Jan 4, 2024
6912582
Merge branch 'master' into feat/cfg/schema-management
traeok Jan 4, 2024
fdbe5ab
tests: ProfileInfo.buildSchema scenarios
traeok Jan 5, 2024
eed79d0
chore: update changelog
traeok Jan 5, 2024
b0f0071
fix(tests): Mock jsonfile.writeFileSync to minimize I/O ops
traeok Jan 5, 2024
f344820
Merge branch 'master' into feat/cfg/schema-management
traeok Jan 5, 2024
fc01621
tests: remove TODO comments
traeok Jan 5, 2024
3ad8d55
chore: Add comments to IExtendersJsonOpts, add latestFrom
traeok Jan 8, 2024
d13ab7a
chore(tests): Fix formatting of objects
traeok Jan 8, 2024
ba02766
chore,feat: improve typedoc/types, add latestFrom if applicable
traeok Jan 8, 2024
f6d9b7f
fix(tests): add latestFrom to scenarios in unit tests
traeok Jan 8, 2024
39cbda6
Merge branch 'master' into feat/cfg/schema-management
traeok Jan 8, 2024
743eab1
fix: update buildDefaultProfile, make extender.json methods static
traeok Jan 8, 2024
cc13857
fix(tests): update tests for static methods
traeok Jan 8, 2024
530ab2c
Merge branch 'master' into feat/cfg/schema-management
traeok Jan 8, 2024
85d418a
chore: adjust changelog after Imperative patch
traeok Jan 8, 2024
ea0c875
fix: add stripInternal back to tsconfig
traeok Jan 8, 2024
e2176ff
Merge branch 'master' into feat/cfg/schema-management
traeok Jan 9, 2024
06834db
fix: track latestFrom for new types in extenders.json
traeok Jan 9, 2024
6c18ab4
feat(plugins): make install command additive, remove type during unin…
traeok Jan 10, 2024
84f71ad
fix: add missing license, resolve SonarCloud issue
traeok Jan 10, 2024
13c1e94
fix: avoid OR short-circuit when updating schema
traeok Jan 10, 2024
b412e4d
chore: remove duplicated import
traeok Jan 10, 2024
98ab4ac
fix: remove redundant write calls for schema
traeok Jan 10, 2024
6a6089e
fix(ProfileInfo): adhere to current behavior for Web URLs
traeok Jan 10, 2024
3f20c48
fix(plugins): Do not update schema if using web URL
traeok Jan 10, 2024
be37179
feat: move extenders.json logic into separate fn, add unit tests
traeok Jan 11, 2024
4b72f50
doc: Add on-disk example to IExtendersJsonOpts
traeok Jan 11, 2024
60c7730
fix: check for valid schemaVersion during install
traeok Jan 11, 2024
ae4907b
Merge branch 'master' into feat/cfg/schema-management
traeok Jan 12, 2024
10c2f9e
fix: removed unused TODO comment
traeok Jan 12, 2024
97373db
fix: move 'version' into IProfileSchema; update tests
traeok Jan 12, 2024
4bfbc46
Merge branch 'feat/cfg/schema-management' into feat/plugins/schema-up…
traeok Jan 12, 2024
ffec300
chore: remove schemaVersion from IProfileTypeConfiguration
traeok Jan 12, 2024
5922dca
Merge branch 'feat/cfg/schema-management' into feat/plugins/schema-up…
traeok Jan 12, 2024
6a189e9
fix: update install logic for relocated version property
traeok Jan 12, 2024
697fedd
fix: adjust tests for relocated version, rename resource
traeok Jan 16, 2024
4168971
Merge branch 'master' into feat/cfg/schema-management
traeok Jan 16, 2024
945b255
refactor: move updateExtendersJson out of install function
traeok Jan 16, 2024
b339ce0
refactor: use Config.getSchemaInfo during install/uninstall
traeok Jan 16, 2024
1a2909a
chore: remove unused imports from URL module
traeok Jan 16, 2024
3ad5786
style: Use arrow function for updateAndGetRemovedTypes
traeok Jan 19, 2024
e2b026d
tests: updateExtendersJson
traeok Jan 19, 2024
632c20b
Merge pull request #2015 from zowe/feat/plugins/schema-updates
zFernand0 Jan 19, 2024
34c0840
Merge branch 'master' into feat/cfg/schema-management
traeok Jan 23, 2024
dd73a71
feat: replace schema if newer one has changed
traeok Jan 23, 2024
e2ed377
feat: warn user when old/new unversioned schemas are different
traeok Jan 23, 2024
2e07dfd
feat: add helper fn to verify whether a schema was loaded
traeok Jan 23, 2024
a05ecbf
Merge branch 'master' into feat/cfg/schema-management
traeok Jan 26, 2024
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
187 changes: 8 additions & 179 deletions npm-shrinkwrap.json

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

1 change: 1 addition & 0 deletions packages/imperative/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All notable changes to the Imperative package will be documented in this file.
## Recent Changes

- BugFix: Updated `mustache` and `jsonschema` dependencies for technical currency.
- Enhancement: Added multiple APIs to the `ProfileInfo` class to help manage schemas between client applications. [#2012](https://github.com/zowe/zowe-cli/issues/2012)

## `5.21.0`

Expand Down
2 changes: 1 addition & 1 deletion packages/imperative/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"progress": "2.0.3",
"read": "1.0.7",
"readline-sync": "1.4.10",
"semver": "7.5.2",
"semver": "7.5.4",
"stack-trace": "0.0.10",
"strip-ansi": "6.0.1",
"which": "3.0.0",
Expand Down
Loading
Loading