1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):
[ ] N
[x] Y
re #368. With the mutual-reference feature of attributes in the KCL config entry, we can write fewer KCL codes to eliminate more templates in the configuration and improve the convenience of configuration writing.
Before
data = {
name = "nginx"
metadata.name = "nginx"
}
After
data = {
name = "nginx"
metadata.name = name # Can reference `name` directly.
}
2. What is the scope of this PR (e.g. component or file name):
3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):
[ ] Affects user behaviors
[ ] Contains syntax changes
[ ] Contains variable changes
[x] Contains experimental features
[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[x] Other
4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):
[x] N
[ ] Y
5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:
[ ] Unit test
[x] Integration test
[ ] Benchmark (add benchmark stats below)
[ ] Manual test (add detailed scripts or steps below)
1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):
re #368. With the mutual-reference feature of attributes in the KCL config entry, we can write fewer KCL codes to eliminate more templates in the configuration and improve the convenience of configuration writing.
2. What is the scope of this PR (e.g. component or file name):
3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):
4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):
5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:
[ ] Unit test
[x] Integration test
[ ] Benchmark (add benchmark stats below)
[ ] Manual test (add detailed scripts or steps below)
[ ] Other
test/grammar/datatype/dict/mutualref{number}/main.k
6. Release note
Please refer to Release Notes Language Style Guide to write a quality release note.