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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ContainerList propagating containers in ComposeActions and PodActions #3963

Merged

Conversation

axel7083
Copy link
Contributor

What does this PR do?

As discussed in #3947 the ContainerList now support Contribution Menu (menus from extensions).

This PR is a small fix, on the current implementations, the ComposeList svelte component does not propagate the containers in ComposeActions.

Since an extension can add a command, it may be useful to give them the full context, with the contains associate with the compose group.

This is also valid for PodActions

Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
@axel7083 axel7083 requested review from benoitf and a team as code owners September 19, 2023 12:06
@axel7083 axel7083 requested review from cdrage and lstocchi and removed request for a team September 19, 2023 12:06
Copy link
Contributor

@cdrage cdrage left a comment

Choose a reason for hiding this comment

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

The code LGTM and I see how it propagates now by testing locally, but any way to include a small unit test?

@axel7083
Copy link
Contributor Author

The code LGTM and I see how it propagates now by testing locally, but any way to include a small unit test?

The ContainerList.svelte component is a bit complicated, so I do not see how to create an unit test in ContainerList.spec.ts that will be able to render until the ContributionActions.svelte to check that the arguments of the execCommand contains indeed the containers object.

@benoitf benoitf merged commit ac4b665 into containers:main Sep 21, 2023
8 checks passed
@podman-desktop-bot podman-desktop-bot added this to the 1.5.0 milestone Sep 21, 2023
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

5 participants