Skip to content

feat: automatically create a teamfolder upon team creation - #2675

Open
stediefan wants to merge 3 commits into
nextcloud:masterfrom
Dataport:feature/teams-auto-folder-creation
Open

feat: automatically create a teamfolder upon team creation#2675
stediefan wants to merge 3 commits into
nextcloud:masterfrom
Dataport:feature/teams-auto-folder-creation

Conversation

@stediefan

@stediefan stediefan commented Jul 24, 2026

Copy link
Copy Markdown

feat: introduce a function to upgrade existing teams to include the special teamfolder
feat: add settings page to configure a default quota for new teamfolders

Assisted by: GitHub Copilot:Claude Sonnet 5
Assisted by: GitHub Copilot:GPT-5.6 Terra
Assisted by: GitHub Copilot:Kimi K2.7 Code

Summary

This is a aggregated feature that integrates teams with teamfolders. The teams feature aims to provide a space for team owned apps. This provides the base as the linked groupfolder is the proposed solution.

TODO

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Tests (unit, integration, api and/or acceptance) are included
  • Screenshots before/after for front-end changes
    The newly introduced feature to set a default Quota for the auto created folders:
Groupfolder Quota Setting The view for teams with a linked folder: Team-Folderview
  • Documentation (manuals or wiki) has been updated or is not required
    see todo
  • Backports requested where applicable (ex: critical bugfixes)
    no
  • Labels added where applicable (ex: bug/enhancement, 3. to review, feature component)
  • Milestone added for target branch/version (ex: 32.x for stable32)

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@codecov

codecov Bot commented Jul 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Comment thread lib/Controller/TeamFolderController.php Outdated
@alimmroth alimmroth moved this from Backlog to In review in 👥 Teams Jul 27, 2026
@marcoambrosini
marcoambrosini requested a review from artonge July 27, 2026 08:10
feat: introduce a function to upgrade existing teams to include the special teamfolder
feat: add settings page to configure a default quota for new teamfolders

Assisted by: GitHub Copilot:Claude Sonnet 5
Assisted by: GitHub Copilot:GPT-5.6 Terra
Assisted by: GitHub Copilot:Kimi K2.7 Code
Signed-off-by: Stefan Dietrich <5716289+stediefan@users.noreply.github.com>
@stediefan
stediefan force-pushed the feature/teams-auto-folder-creation branch from a52e6da to 6ab835a Compare July 27, 2026 08:20
Comment thread lib/Controller/TeamFolderController.php Outdated
Comment thread lib/Db/CoreQueryBuilder.php Outdated
Comment thread lib/Db/CoreQueryBuilder.php Outdated
Comment thread lib/Listeners/TeamFolderLifecycleListener.php Outdated
Comment thread lib/Service/TeamFolderPolicy.php Outdated
Comment thread lib/Service/TeamFolderService.php Outdated
Comment thread src/teams/components/TeamFolderWidget.vue Outdated
Comment thread src/components/AdminTeamFolders.vue Outdated
Signed-off-by: Stefan Dietrich <5716289+stediefan@users.noreply.github.com>
Signed-off-by: Stefan Dietrich <5716289+stediefan@users.noreply.github.com>
*
* Implementation: {@see TeamFolderPolicy} in the circles app.
*/
interface ITeamFolderPolicy {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Do we expect multiple policy in the future? I am wondering wether we really need an interface

Comment on lines +62 to +63
$hadEssentialKey = array_key_exists('team_folder_essential', $settings)
|| array_key_exists('team_folder_id', $settings);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I cannot find any reference of those settings. Are they really existing?

Comment thread appinfo/info.xml
]]>
</description>
<version>35.0.0-dev.0</version>
<version>35.0.0-dev.1</version>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think we should handle this on on this PR, but rather upon release on a separate PR

* maintain a second copy.
*/
class Version3500Date20260721000001 extends SimpleMigrationStep {
private const CFG_TEAM_FOLDER_LEGACY = 262144;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

maybe it would make more sense to declare this CFG const together with others on lib/Model/Circle? and also use the number increase pattern instead of just 262143 + 1?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

Create team-folder when creating a team

5 participants