Repository navigation
fix(core): productConfigProblems reads aliases inside a scope - #5408
Merged
Merged
Conversation
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.
productConfigProblemsnow reads an alias inside a scope the caller passes. An alias whose key starts at the scope (sql-yodeler'sci.login) is looked up in that scope, and a key set beside it in the same scope is an error naming both paths:ci.loginandci.identityare both set; setci.identityalone.The top-level pass is unchanged: the same warnings and errors, with the same messages, for every product. A scope pass adds the error only, since the top-level pass already reports the alias as a warning.
PRODUCT_CONFIG_SCOPED_ALIASES_FLOORis exported fromci-product.ts, andfloor-table.data.tsis regenerated.Tests in
ci-product-config-words.test.tscover an alias beside its key at the top level (terraguccioidcbesideidentity), the same pair inside aciscope, the alias alone in a scope, a scope the caller does not pass, and the floor.Tests run in a final pass; none were run on this branch after the last edit except the two vocabulary test files, which passed before the floor was added.
Closes #5405