Skip to content

refactor: Cleanup application namespace handling - #59977

Merged
come-nc merged 4 commits into
masterfrom
fix/clean-app-namespace-handling
May 11, 2026
Merged

refactor: Cleanup application namespace handling#59977
come-nc merged 4 commits into
masterfrom
fix/clean-app-namespace-handling

Conversation

@come-nc

@come-nccome-nc commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Cleanup application namespace handling.

TODO

  • Remove weird tinkering and dead code
  • Move away from static vars and methods to AppManager

Checklist

AI (if applicable)

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

@come-nccome-nc added this to the Nextcloud 34 milestone Apr 28, 2026
@come-nccome-nc self-assigned this Apr 28, 2026
@come-nccome-nc added 2. developing Work in progress technical debt 🧱 🤔🚀 labels Apr 28, 2026
@come-nccome-nc changed the title refactor: cleanup application namespace handlingrefactor: Cleanup application namespace handlingApr 28, 2026
@come-nc
come-nc marked this pull request as ready for review April 28, 2026 15:57
@come-nc
come-nc requested a review from a team as a code ownerApril 28, 2026 15:57
@come-nc
come-nc requested review from Altahrim, icewind1991, leftybournes and salmart-dev and removed request for a teamApril 28, 2026 15:57
@come-nccome-nc added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Apr 28, 2026

@ChristophWurstChristophWurst left a comment

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.

Nice!

The two new methods look very testable 🫣

Comment threadlib/private/App/AppManager.php
Comment on lines +376 to +389

/**
* Get the app namespace
*
* @since 34.0.0
*/
public function getAppNamespace(string $appId): string;

/**
* Get the app id for this namespace
*
* @since 34.0.0
*/
public function getAppFromNamespace(string $className): ?string;

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.

new public API -> needs docs

@ChristophWurstChristophWurst added the pending documentation This pull request needs an associated documentation update label Apr 28, 2026
@come-nc
come-ncforce-pushed the fix/clean-app-namespace-handling branch from 20dc0f8 to 7264a5eCompareMay 7, 2026 14:21
@come-nc
come-nc requested a review from susnuxMay 7, 2026 14:22
@come-nc
come-ncforce-pushed the fix/clean-app-namespace-handling branch from 7264a5e to 95567caCompareMay 7, 2026 15:51
come-nc added 4 commits May 11, 2026 14:53
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc
come-ncforce-pushed the fix/clean-app-namespace-handling branch from 95567ca to 6664f62CompareMay 11, 2026 12:53
@come-nc
come-nc merged commit 351b367 into masterMay 11, 2026
229 of 238 checks passed
@come-nc
come-nc deleted the fix/clean-app-namespace-handling branch May 11, 2026 15:27
This was referenced May 12, 2026
@nextcloud-botnextcloud-bot mentioned this pull request May 20, 2026
@nextcloud-botnextcloud-bot mentioned this pull request May 27, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewspending documentationThis pull request needs an associated documentation updatetechnical debt🧱 🤔🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@come-nc@ChristophWurst@CarlSchwan