-
-
Notifications
You must be signed in to change notification settings - Fork 644
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
Allow plugin authors to attach custom fields to TargetData for pants peek #20701
Allow plugin authors to attach custom fields to TargetData for pants peek #20701
Conversation
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.
Love this idea.
Would prefer to add one additional level per union member to further scope the additional data to avoid potential conflicts from different backends.
…dellosa95/pants into ndellosa95/custom-target-datas
What're you thinking? I was going back and forth between whether the Also, can you add the appropriate category label to the PR, so the check here passes. I don't think I have permissions to do so. |
They're 1-to-1, right? So I just realized that adding a extra level gives little, what I want is to ensure the key used is unique, and the data returned can be a (frozen) dict if structured data is to be set. Or we trust people to use a sensibly unique name for the labels.. 🤷🏽 ? I think between the two, having it on the
Done. |
I mentioned it as another way we could categorize, i.e. Should I make edits to the docs to highlight the inclusion of this feature? |
Agreed. Let's keep it simple for now.
Would be nice, if you find a sensible spot for it, perhaps somewhere under "Writing Plugins"? |
Added below the synthetic targets section in |
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.
Very nice 👍🏽
Thanks! I don't have permissions to merge so whenever you get the chance, it would be greatly appreciated. |
yep, wanted to give a window for others to comment.. but I see this PR has been open for quite some time, so I'll merge and if there are any late comments we can always address them in a follow up PR if needed. |
Related: #18546 |
This PR adds the ability to attach custom
additional_info
to the output ofpants peek
as described in the feature request here.