Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: registryCustomizations (#1217)
* chore: tsconfig for top-level await * feat: registry variants * feat: merge custom registry in registryAccess * feat: customRegistry by default via registryAccess * feat: decompose using any uniqueIdElement * chore: remove license * test: variants nut test fixture for permset * chore: replacement for baseName that handles dots in fullName * refactor: handle dots for fieldPermissions * chore: log presence of customizations * refactor: extract polling options logic * test: snapshots for custom object conversion * test: move snapshot location * test: snapshots for staticResource * test: snapshots for both sample repos * test: sample changed? * chore: vscode setting * test: better test labeling * test: non-dynamic mocha tests * test: clear snaps * test: improve file naming * test: re-commit snapshots * chore: no linter noise inside snapshots * style: preserve snapshot data * style: don't change snapshots * chore: prettier ignore snapshots * chore: didn't use prettier * test: labels project, put sfdx-project where they go * test: snapshot for partial permSet decomposition * test: moved to snapshots * test: include force-app or other top-level project folder * feat: option to specify non-cwd projDir for CSBuilder * fix: pass registry in more places * test: ability to compare xml files by parsing to json * test: permissionset decomposition works * feat: support for startEmpty/topLevel with decomposed * test: use absolute paths to fix labels snapshot * test: changes for or caught by UT * test: territory2 snapshots from pdr * test: snapshot for deb * test: snapshots for folder types * test: snapshot testing docs and dir comparison utility * test: snapsnots in CI only on linux. Run locally * test: snapshots still run as part of `yarn test` * ci: qa for workflows change * ci: longpaths in more places * ci: longpaths for windows perf test * test: longpaths only for windows * chore: script change * test: identical asserts * test: snapshots for workflows * test: workflow variant * feat: prefer xmlElement over directory when present * test: snapshot for decomposed workflow via variant * test: p.xml in the correct location for workflow mdapi * feat: presets with snapshot for PS preset * fix: handling no presets * refactor: empty defaults for customization/presets * fix: pass empty array for customizations * test: decomposed types are mostly not addressable to keep out of p.xml * feat: preset for decomposed permsets * test: snapshots for using permset preset * docs: notes about registry variants * test: sharingRules * fix: correct parent for fieldPermissions * chore: tsconfig for presets json * refactor: emit empty parents * feat: sharingRules presets * test: snapshot for decomposedSharingRules * test: keep empty workflow * test: use main workflow branch * test: snapshot for bots * ci: longpath PR was merged, use main * chore: type-only import for jsforce * chore: bump core for xnuts * ci: test uses main * test: refactor metadata transfer and tests using function * test: generated xml order is determinstic and may not match original * chore: bump core * test: snapshot fix for workflow variants * test: account workflow snapshot update * test: workflow via presets * test: snapshot for empty top-level file * test: decomp for labels * refactor: restore dot-joined files (ex: FieldPermissions) * test: snapshot of top-level-only labels * test: ut changes for empty file behavior * test: adjust snaps for xml ordering of recompose * docs: todo updates * ci: test only exclude snapshot tests * test: dir names as const * docs: docs for 3 presets * test: remove toplevel workflow from source snapshot * test: apply registryValidation tests to presets * test: dynamically load the preset folder * refactor: import what you need * refactor: import cleanup * test: remove original variant nut in favor of snapshot testing * test: full diff for windows debug * docs: comments * feat: deterministic md recomposition order * feat: deterministic md recomposition order * chore: sort order for recompose * test: deep equal in any order * test: order of __c vs letters * test: underscores first * test: more underscore first * chore: docs and export cleanup * refactor: avoid unnecessary compSet * chore: console.log cleanup * test: export dirents * test: mpd project for snapshots (3 dirs) * test: snapshot for recomposed mdapi * test: identical dirs must exist * chore: snapshots for 3 original dirs after applying xml over them * test: force-app needs to go back into its original dir * style: use empty element, not self-closing tag * test: copy to a tmpDir * chore: compare relative paths for identical dirs * chore: undo snapshots for source merging * chore: cleanup for test directories * test: snapshot for the force-app dir * test: snapshot for dir 2 * test: snapshot for foo-bar/app * chore: comments for unused logger fn * docs: code comments instead of pr comments * test: settings suffix list * refactor: explicit return for void * refactor: avoids void 0 * refactor: types match fs * refactor: follow complexity rules * chore: refactor test callCount * fix: componentSet.map isn't like array.map * refactor: no tooling api for diagnostic utils * refactor: thinner methods * refactor: metadata resolver functions * fix: don't save empty parent objects * refactor: fewer logic branches * refactor: remove 2 unused props from type * refactor: use true as only foundMerge option * refactor: extract writeInfo logic for children, parents * refactor: remove dangerous assertion * test: top-level types cannot also be children * style: jsdoc indent for windows ut * chore: cleanup old scripts and docs * fix: adapter names * refactor: more coe cleanup * test: ut for nondecomposed * fix: handling for wildcards matching org contents * refactor: build metadata map only when needed * refactor: private methods to functions * refactor: simplify partialDelete handling * fix: handles colons in metadata names * chore: bump core * refactor: more registries to component sets, eliminate an unneeded one * chore: name typo * test: change test to spy on a function * refactor: put unaddressable children in results * refactor: spread not concat * refactor: cleaner cs and csb * chore: wireit watches preset changes * feat: handles "partial delete" of decomposed children * refactor: reorganize retrieve code * style: formatting * refactor: remove barrel * refactor: deployResult logic * perf: dedupe deploy results once * chore: comments about removing enums * chore: script/dep cleanup * chore: remove logFn * chore: cleanup from pr review * fix: getZipBuffer's converter needs custom registry * fix: decomposed children that aren't addressable cause their entire parent to deploy * chore: remove logFn * chore: add decompsed CustomLabels * chore: bump kit * chore: labels preset follows registry rules * refactor: change preset names to beta * fix: confirm DCL behavior, fix snapshots, add .md entry * docs: fix extension * chore: add comment explaining new error [skip-ci] --------- Co-authored-by: Willie Ruemmele <[email protected]>
- Loading branch information