-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[components] Update docs commenting logic #27162
base: 01-15-_components_update_resolution_deferral_logic
Are you sure you want to change the base?
[components] Update docs commenting logic #27162
Conversation
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
@@ -26,8 +26,8 @@ def test_generate_sample_yaml(): | |||
|
|||
params: | |||
sub_scoped: # Available scope: {'outer_scope'} | |||
str_field: '...' | |||
int_field: 0 | |||
str_field: '...' # Available scope: {'outer_scope'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was actually a bug that these comments weren't showing up before
in terms of desired behavior, the previous output might actually have been nicer but now it's much easier to choose which way we want this to appear
6bd100f
to
46d40ae
Compare
aeb1eec
to
00bac33
Compare
46d40ae
to
4d52208
Compare
00bac33
to
d4b4c59
Compare
4d52208
to
d3411b7
Compare
d4b4c59
to
f81a367
Compare
1803966
to
3d10ad3
Compare
f81a367
to
731e9fd
Compare
3d10ad3
to
58bdbcc
Compare
731e9fd
to
3b2c68d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is way nicer 👏
Summary & Motivation
This simplifies the docs commenting logic by re-using the source-position loader. In essence, we dump the yaml, then parse it again so we can map the values to source positions, then emit comments on lines where we need to.
This is a lot easier to build off of and less sketchy than the previous implementation.
How I Tested These Changes
Changelog
NOCHANGELOG