Repository navigation
Other Libraries beyond the tree layout (L2) - #144
Merged
Merged
Conversation
- Simulator export: a Library object is embedded as <name>@<alias> where its name is taken (the driver's own, or another Library's of that name), so two of one name linked by one driver both run; a token-map in another Library's policy reads that Library's table first; the driver set's GCV object is the one its link's DN names. - Validation: library-other per folder; findings in libraries/ never block a scoped deploy; the driver set's own mapping table wins a shared name; an unlinked policy of another Library isn't compiled; libraries/ links count as linked for the compile and ECMAScript checks. - Promotion: manifestOf for libraries/ files. - check/import output: a line per other Library with its DN. 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.
L2 of
docs/library-containers.md, after L1 (#143, core 0.77.0).Simulator export (
ExportWriter.toDriverXml)<name>@<alias>(@Libraryfor the driver set's own), and the linkage DN follows. Two objects of one name linked by one driver now both run, each its own copy.<token-map>in another Library's policy reads that Library's table first, then the driver set's own.driverSetGcvObjectsmatches the driver set's linkage by DN, then by name with the driver set's own first, so two GCV objects of one name don't both come in.toXml), which isn't what the simulator reads.Validation
library-othernames each folder (libraries/<alias>;libraryfor a pre-0.77.0 tree).libraries/never blocks a scoped deploy, which doesn't write those objects.ValidationScope.ownersaysLibrary <alias>.Model.mappingTables, andCompileCheckregisters the own Library last).libraries/links count as linked for the compile and ECMAScript checks, so they're checked in the linking driver's context. Another Library's policy that no driver links isn't compiled; it's a read-only reference nothing here loads.Promotion:
manifestOfmaps alibraries/<alias>/file to its folder'slibrary.xml.Output:
checkand the imports print the driver set's own Library, then one line per other Library with its object count and DN.Tests (1073 pass on a clean build)
twoLibraryObjectsOfOneNameAreBothInTheChainloads the export into the simulator. Its subscriber chain runslib-sub-commandand thenlib-sub-command@Library.theDriverSetsGcvObjectIsTheOneItsLinkNames.validationKnowsTheFolders(library-otherpath).ModelLibrariesTest: the own table wins.ValidationScopeTestandPromoteTestgain thelibraries/cases.End to end:
import-ldifof a vault LDIF where Loop linkslib-NormalizeTitlefrom both its own Library andcn=Library,o=services.query chainlistslibrary/lib-NormalizeTitleandlibraries/Library/lib-NormalizeTitle.validatereportslibrary-otheronlibraries/Library.simulateloads both copies and runs the case, with the same result as the same case on master's tree. The GCV "Invalid DN format" warning comes from the synthetic fixture and appears on master's tree too.🤖 Generated with Claude Code