Skip to content

debt(users): Make User object constructor argument mandatory#59694

Draft
artonge wants to merge 3 commits intomasterfrom
artonge/debt/user_args
Draft

debt(users): Make User object constructor argument mandatory#59694
artonge wants to merge 3 commits intomasterfrom
artonge/debt/user_args

Conversation

@artonge
Copy link
Copy Markdown
Collaborator

@artonge artonge commented Apr 17, 2026

We already have a factory method to build User objects, so let's use it and stop with the conditional arguments and properties. This will make adding new constructor arguments easier in the future.

One nitpick is that I kept the $backend argument optional, the reason being that in Collectives and Groupfolders, we are creating a dummy user without a backend because the files_versions API needs one.

Adaptations in apps:

@artonge artonge force-pushed the artonge/debt/user_args branch 5 times, most recently from 28062e9 to a7d032e Compare April 17, 2026 15:20
@artonge artonge force-pushed the artonge/debt/user_args branch 8 times, most recently from 43c4463 to 9b30bac Compare April 30, 2026 13:51
@artonge artonge added enhancement 2. developing Work in progress feature: users and groups php Pull requests that update Php code labels Apr 30, 2026
@artonge artonge self-assigned this Apr 30, 2026
@artonge artonge added this to the Nextcloud 34 milestone Apr 30, 2026
@artonge artonge force-pushed the artonge/debt/user_args branch 11 times, most recently from dd781af to 822edc3 Compare May 5, 2026 17:05
@artonge artonge force-pushed the artonge/debt/user_args branch 3 times, most recently from 30d3dc9 to 0464ab3 Compare May 7, 2026 18:33
artonge added 3 commits May 7, 2026 21:53
Signed-off-by: Louis Chmn <louis@chmn.me>
… User object

Signed-off-by: Louis Chmn <louis@chmn.me>
Signed-off-by: Louis Chmn <louis@chmn.me>
@artonge artonge force-pushed the artonge/debt/user_args branch from 0464ab3 to 22b842a Compare May 7, 2026 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing Work in progress enhancement feature: users and groups php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant