Skip to content

aio-interface: allow to manage the community containers via the AIO interface #6443

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

Merged
merged 25 commits into from
May 30, 2025

Conversation

szaimen
Copy link
Collaborator

@szaimen szaimen commented May 26, 2025

Close #5937

@szaimen szaimen added this to the next milestone May 26, 2025
@szaimen szaimen added 2. developing Work in progress enhancement New feature or request labels May 26, 2025
@szaimen szaimen force-pushed the enh/5937/manage-cc-via-interface branch from 6f7d82a to 2ab678d Compare May 26, 2025 11:53
@docjyJ
Copy link
Collaborator

docjyJ commented May 26, 2025

I propose a solution

@docjyJ docjyJ force-pushed the enh/5937/manage-cc-via-interface branch 2 times, most recently from bc16130 to c28f517 Compare May 26, 2025 17:20
Copy link
Collaborator Author

@szaimen szaimen left a comment

Choose a reason for hiding this comment

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

Hey @docjyJ thanks a lot for helping me with this 🤗

I have a few remarks and questions below. Would you be able to help me to figure out a solution for these? :)

@szaimen szaimen force-pushed the enh/5937/manage-cc-via-interface branch from 2f21ea6 to 205b18c Compare May 27, 2025 11:49
szaimen and others added 3 commits May 28, 2025 10:43
@docjyJ
Copy link
Collaborator

docjyJ commented May 28, 2025

I fixed some errors on js and renamed all variables to harmonized

@docjyJ docjyJ marked this pull request as ready for review May 28, 2025 11:18
@docjyJ docjyJ added 3. to review Waiting for reviews and removed 2. developing Work in progress labels May 28, 2025
@docjyJ docjyJ requested a review from Copilot May 28, 2025 11:20
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request removes the legacy environment-variable–based management of community containers and introduces a web interface for managing them. Key changes include:

  • Removal of tests and startup checks for AIO_COMMUNITY_CONTAINERS.
  • Addition of new twig templates and JavaScript to support community container management via the UI.
  • New functions and classes in the PHP backend to list and update community container configurations.

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/QA/060-environmental-variables.md Removed outdated test case for AIO_COMMUNITY_CONTAINERS environment var.
php/templates/includes/optional-containers.twig Updated container form and description to remove community container details.
php/templates/includes/community-containers.twig Introduced new template to display and manage community containers.
php/templates/containers.twig Included the new community container template and added corresponding JS.
php/src/Data/ConfigurationManager.php Updated community container config access and added listing/updating functions.
php/src/Controller/ConfigurationController.php Added handling for community container form submission.
php/src/Container/CommunityContainer.php Added new class representing a community container.
php/public/containers-form-submit.js Introduced new JS to handle state changes on both container forms.
php/public/index.php Passed community container data to the view.
php/psalm.xml & php/psalm-baseline.xml Updated psalm configurations.
compose.yaml Removed legacy comment regarding community container env var.
community-containers/readme.md Updated documentation to reflect UI-based management.
Containers/mastercontainer/start.sh Removed legacy environment checks for community containers.

Co-authored-by: Copilot <[email protected]>
Signed-off-by: Jean-Yves <[email protected]>
@docjyJ
Copy link
Collaborator

docjyJ commented May 28, 2025

I saw the review button by copilot, I wanted to test it, it's not bad

@szaimen
Copy link
Collaborator Author

szaimen commented May 28, 2025

Thanks @docjyJ! :) Can you please check my last commit if that makes sense? Also it looks like psalm is still not happy...

Signed-off-by: Jean-Yves <[email protected]>
@docjyJ docjyJ force-pushed the enh/5937/manage-cc-via-interface branch from 22e977c to 185d3ba Compare May 28, 2025 11:33
docjyJ added 3 commits May 28, 2025 13:34
Signed-off-by: Jean-Yves <[email protected]>
Signed-off-by: Jean-Yves <[email protected]>
@docjyJ
Copy link
Collaborator

docjyJ commented May 28, 2025

LGTM

Copy link
Member

@st3iny st3iny left a comment

Choose a reason for hiding this comment

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

Code looks good to me.

Signed-off-by: Simon L. <[email protected]>

Co-authored-by: Jean-Yves <[email protected]>
Signed-off-by: Simon L. <[email protected]>
@szaimen szaimen merged commit 673b1db into main May 30, 2025
10 checks passed
@szaimen szaimen deleted the enh/5937/manage-cc-via-interface branch May 30, 2025 07:32
@szaimen
Copy link
Collaborator Author

szaimen commented May 30, 2025

Thanks a lot @docjyJ and @st3iny for all the help ☺️

@szaimen
Copy link
Collaborator Author

szaimen commented May 30, 2025

@docjyJ I just built a new develop tag and fixed some small issues but it looks like no community containers are shown in the AIO interface:
image
Can you please check what is going on there? :)

@szaimen
Copy link
Collaborator Author

szaimen commented May 30, 2025

Found a fix in #6473

@szaimen
Copy link
Collaborator Author

szaimen commented May 30, 2025

This is now released with v11.0.0 Beta. Testing and feedback is welcome! See https://github.com/nextcloud/all-in-one#how-to-switch-the-channel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow to add & remove community containers via the aio interface with nc31
3 participants