Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

devices: add device_tag to JSON output #2693

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bbugh
Copy link
Contributor

@bbugh bbugh commented Oct 27, 2023

change-type: minor

Hello again! 馃憢

Related to #2692 and #2685, adding device_tag expansion to the json output of the devices command, so we can query for devices with a specific device tag to pin a specific release to it.

@@ -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']),
Copy link
Contributor

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?

Copy link
Member

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.

@bbugh
Copy link
Contributor Author

bbugh commented Dec 5, 2023

Coming back around to needing this in CI soon, is there anything else I can do to support this process? Thank you!

@thgreasi
Copy link
Member

@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?

Copy link
Member

@thgreasi thgreasi left a 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.

@bbugh
Copy link
Contributor Author

bbugh commented Dec 21, 2023

@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?

Done, squashed and rebased to master @ 801a259

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants