Repository navigation
Vault reads take in other Libraries (#115) - #146
Merged
Merged
Conversation
A read of the vault (import-live, Compare, Plan, deploy's own read, capture) now reads the objects the driver set's links name outside it: a Library outside every driver set whole, another driver set's Library or any other container only what is linked. They land in libraries/<alias>/ as read-only references, as the LDIF and Designer imports have them, so a captured tree no longer has unresolved links. An object that can't be read is a note naming its DN. A read written over an existing tree keeps the tree's folder name per Library (Libraries.adoptAliases). The LDIF import takes a linked object from any container. Also: deploy's verify leaves the trace size limit alone without --trace-size-limit, as the plan does (a differing limit made the deploy end FAILED since 0.64.0). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #115.
What changes
VaultDiff.fromVaultreads what the set's links name outside it. This coversimport-live, Compare, Plan, deploy's own read and capture.libraries/<alias>/as read-only references. Compare and deploy still leave them alone (D4).Librarywhere the LDIF import saidLibrary@services.Libraries.adoptAliasesgives the read the existing tree's alias per DN, and rewrites artifacts and links to match.import-liveover an existing tree and capture use it.--trace-size-limit, as the plan does. Before, a tree whose limit differed from the vault's made every deploy of that driver endverify: MISMATCH/ FAILED. The live check below hit this.bin/idm,bin/idm.cmd,bin/require-engine.sh,Doctoranddocs/install.mdnow pin 1.10.0. All 1081 tests pass with it.Tests
VaultOtherLibrariesTest(7), against a fake vault:ModelDiffempty);oucontainer, or another set's Library: only the linked objects;DeployerTest.aTraceSizeLimitLeftAloneIsNoVerifyMismatch: fails without the fix.Live check on idm254 (scratch objects, cleaned up)
ou=scratch115,o=system, holding a Library with a policy and an unlinked ECMAScript, and deployed a scratch Loopback driver. Then added the link by LDAP, as a Designer deploy would.libraries/Library/Scratch115-P.libraries/Library/with both objects; validate gave nolink-unresolved, and vault.diff of that tree gaveno differences.libraries/Library/and the link; validate was clean.DirXML-Policieswith both outside DNs. The outside objects were unchanged, and the second deploy reportedverify: vault matches the treewith the fix.Lib115: the folder kept its name; git status was clean.--delete-driver, scratch objects deleted. idm254 vs the pre-test import:no differences.eDirectory refuses a
DirXML-Ruledirectly in anou(-611 illegal containment), so on a real vault the "other container" case is a Library. Theoucase is covered by the unit test only.Follow-up (web)
Update this branch for some drivers combines the tree's model with the vault's drivers. It should adopt the tree's aliases and bring in Libraries the tree doesn't have yet. That is a small web PR pinning this release.
🤖 Generated with Claude Code