-
Notifications
You must be signed in to change notification settings - Fork 142
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
devices: add device_tag to JSON output #2693
base: master
Are you sure you want to change the base?
Conversation
47fbcdd
to
677531a
Compare
677531a
to
2bc0030
Compare
2bc0030
to
3321a83
Compare
3321a83
to
4eb1aef
Compare
@@ -116,7 +123,9 @@ export default class DevicesCmd extends Command { | |||
|
|||
if (options.json) { | |||
const { pickAndRename } = await import('../../utils/helpers'); | |||
const mapped = devices.map((device) => pickAndRename(device, fields)); | |||
const mapped = devices.map((device) => | |||
pickAndRename(device, [...fields, 'device_tag']), |
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.
@thgreasi You probably have more context than I do on this, should the, now being expanded, device_tag have the pickAndRename applied to it? AFAIK this only applies in case of something being formatted with 'a => b' and we probably wouldn't want to change it if this is the tag value of the client?
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.
@otaviojacobi I think that we only use pickAndRename
in this file for consistency reasons and that in this file using pick
or pickAndRename
has the same outcome since there is no =>
used in the defined fields.
Coming back around to needing this in CI soon, is there anything else I can do to support this process? Thank you! |
@bbugh could you please also squash all commits and rebase your branch on top of master before merging so that the changelog only includes just one entry? |
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.
Formally requesting changes for squashing the commits just so that CI doesn't accidentally merge this before you do so.
change-type: minor
b5cef31
to
bd194e6
Compare
change-type: minor
Hello again! 👋
Related to #2692 and #2685, adding
device_tag
expansion to the json output of thedevices
command, so we can query for devices with a specific device tag to pin a specific release to it.