Skip to content

refactor(encryption): remove dead code from Util and use DI in Admin - #64856

Merged
susnux merged 7 commits into
masterfrom
jtr/fix-sse-Util-dropDeadCode
Dec 5, 2026
Merged

susnux merged 7 commits into
masterfrom
jtr/fix-sse-Util-dropDeadCode

Conversation

@joshtrichards

Copy link
Copy Markdown
Member
  • Resolves: #

Summary

🧹

  • Remove Util::setRecoveryForUser() and its unused session state and constructor dependency. Recovery updates remain handled by Recovery class.
  • Inject Util and Session into Admin, just like Personal already does, and remove the dependencies used only to construct them manually.
  • Update test coverage to accommodate the above changes

TODO

  • ...

Checklist

AI (if applicable)

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

@joshtrichards joshtrichards added this to the Nextcloud 36 milestone Sep 27, 2026
@joshtrichards
joshtrichards requested a review from a team as a code owner September 27, 2026 16:19
@joshtrichards joshtrichards added the 3. to review Waiting for reviews label Sep 27, 2026
@joshtrichards
joshtrichards removed the request for review from a team September 27, 2026 16:19
@joshtrichards joshtrichards added the technical debt 🧱 🤔🚀 label Sep 27, 2026
@joshtrichards joshtrichards added the ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) label Sep 27, 2026
Base automatically changed from jtr/fix-sse-Util to master December 3, 2026 15:37
@susnux
susnux requested a review from a team as a code owner December 3, 2026 15:37
@susnux

susnux commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

@joshtrichards conflicts

Remove `Util::setRecoveryForUser()` and its unused session state and constructor dependency. Recovery updates remain handled by `Recovery` class.

Signed-off-by: Josh <josh.t.richards@gmail.com>
Inject Util and Session into Admin, just like Personal already does, and remove the dependencies used only to construct them manually.

Signed-off-by: Josh <josh.t.richards@gmail.com>
Remove the obsolete setter test and its session-related mocks, and update the Util construction to match its simplified constructor.

Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
@susnux
susnux force-pushed the jtr/fix-sse-Util-dropDeadCode branch from d30c94f to b5a98b0 Compare December 5, 2026 19:41
@susnux
susnux merged commit 77fb4f2 into master Dec 5, 2026
154 checks passed
@susnux
susnux deleted the jtr/fix-sse-Util-dropDeadCode branch December 5, 2026 20:04
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 feature: encryption (server-side) ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) technical debt 🧱 🤔🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants