Skip to content

feat: add User.name field (rescoped per ADR 006) #45

Description

@martinydeAI

Summary

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).
  • CHANGELOG.md entry under ## [Unreleased] / Added.

Out of scope

Related issues

Acceptance

  • App\Entity\User exposes a name: string field with matching
    getter / setter.
  • Doctrine migration adds the name column to the existing
    user table.
  • Tests cover the new field (entity round-trip + repository
    persist / reload).
  • CHANGELOG.md updated under ## [Unreleased] / Added.
  • task coding-standards-check and task test-coverage (100%
    gate) both green.

Activity

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions