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.
CHANGELOG.md
if necessaryThe below line should enable slow tests for this PR:
tests:--slow
Issue
#269
Description
Continue (from 9c4fc0b) to prepare for the new con4m, by refactoring so that we get/set everything using the top-level chalk scope with fully-dotted keys. That helps prepare for the new con4m lookup interface, in con4m v2 was:
where
key
is fully-dotted. And similarly in libcon4m:Before this PR we were passing subscopes around, and my understanding was that in the new con4m:
AttrScope
.Later we can try to:
This PR also:
getChalkSubsections
yield only key names.getObjectOpt
withsectionExists
.getObject/getContents
style more consistent.I previously had about 20 more reviewable, self-contained and test-passing commits for this PR, but there were too many tricky conflicts with
main
, and I'd lost context on this part of the branch. So unfortunately it was best to squash before rebasing this onmain
, to reduce the time spent and bugs introduced when resolving conflicts.With this PR:
For quick extra sanity checks, bad hacks for trying to find missing dots without parsing: