Skip to content

Conversation

@yec-akamai
Copy link
Contributor

📝 Description

Implement output override to display the complex members list in placement group result.

Override the following commands:

  • placement group-view
  • placement group-update
  • placement assign-linode
  • placement unassign-linode

✔️ How to Test

  1. Pull this PR locally and install the change
make install
  1. Test the above overridden commands to see if it works as expected, for instance:
linode-cli placement group-view $pg-id

Expected view:
pg

@yec-akamai yec-akamai requested a review from a team as a code owner November 5, 2024 17:29
@yec-akamai yec-akamai requested review from jriddle-linode and lgarber-akamai and removed request for a team November 5, 2024 17:29
return image_replicate_output(json_data)


@output_override("placement", "group-view", OutputMode.table)
Copy link
Contributor Author

@yec-akamai yec-akamai Nov 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't override the placement groups-list output here, because I think the list view is already huge itself if user have multiple PGs, and we can try to keep it simple. User can check the members details in a single PG view. Let me know if you have different thoughts!

Copy link
Contributor

@lgarber-akamai lgarber-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The nested table is super clean, nice work!

Copy link
Collaborator

@jriddle-linode jriddle-linode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@yec-akamai yec-akamai merged commit f5d1092 into dev Nov 12, 2024
11 checks passed
@yec-akamai yec-akamai deleted the TPT-3213/override-pg-members branch November 12, 2024 15:32
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.

4 participants