You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add the User Doctrine entity — the application's first persistent
identity — with the minimum set of fields needed by upcoming auth and
authorisation work.
Updated per ADR 006 (#60 / #61). The original scope listed an active boolean and a domainManager boolean. Both are superseded
by ADR 006 and have been removed from this issue:
This issue ships only name on top of the auth fields (email, password, roles) inherited from the #2 login work. The status
column and the role wiring land on top in #83 / #84.
Fields
Field
Type
Purpose
name
string
Display name.
The entity will grow (kommune association, organisation FK, etc.) as
related issues land — keep this PR focused on name.
Scope
App\Entity\User under src/Entity/ gains a name column with
matching getter / setter (@ORM\Column(length: 255), not null).
App\Repository\UserRepository already exists; no change here
unless the test suite needs a small helper.
Doctrine migration adding the name column.
Smoke tests for the new field (UserTest round-trip + repository
reload).
Summary
Add the
UserDoctrine entity — the application's first persistentidentity — with the minimum set of fields needed by upcoming auth and
authorisation work.
Fields
namestringThe entity will grow (kommune association, organisation FK, etc.) as
related issues land — keep this PR focused on
name.Scope
App\Entity\Userundersrc/Entity/gains anamecolumn withmatching getter / setter (
@ORM\Column(length: 255), not null).App\Repository\UserRepositoryalready exists; no change hereunless the test suite needs a small helper.
namecolumn.UserTestround-trip + repositoryreload).
CHANGELOG.mdentry under## [Unreleased]/Added.Out of scope
statusenum and thestatuscolumn — see feat: UserStatus enum and User.status field #83.ROLE_DOMAIN_MANAGER, role hierarchy, voter — see feat: ROLE_DOMAIN_MANAGER, ROLE_ADMIN, role_hierarchy, and domain-scoped voter #84.name— that's part of User profile and account management #13 (User profile).nameon the entity itself.Related issues
delivers the first concrete role set).
name).to User).
administered).
UserStatusenum +statuscolumn (lands on top of this).ROLE_DOMAIN_MANAGER+ role hierarchy + voter (lands on topof this).
Acceptance
App\Entity\Userexposes aname: stringfield with matchinggetter / setter.
namecolumn to the existingusertable.persist / reload).
CHANGELOG.mdupdated under## [Unreleased]/Added.task coding-standards-checkandtask test-coverage(100%gate) both green.