GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Consent template chooser is hidden for departments without an existing consent sentence · Issue #929 · OpenResilienceInitiative/ORISO-Admin

Consent template chooser is hidden for departments without an existing consent sentence #929

New issue
Copy link
New issue
Copy link
Closed
Bug
Closed
Consent template chooser is hidden for departments without an existing consent sentence#929
Bug
Copy link
Assignees
nikunjdecyb

Description

@Storypapst
Storypapst
opened on Sep 5, 2026
Issue body actions

Why

The department consent-template chooser is hidden when a successful data-protection read omits consentText. The UI currently treats an absent consent map as if the department did not support consent text at all. This prevents fresh or legacy departments from seeding the first consent sentence from a template, despite the implementation delivered for #874.

What to build

  • After a successful department data-protection read, treat missing consentText as an empty supported consent map.
  • Keep the chooser hidden for agency-wide legal texts and imprint views.
  • Preserve the fail-closed behavior for real loading errors.
  • Add a regression test through the real container/component boundary.

Acceptance criteria

  • A department with no existing consent sentence still shows the consent editor and template chooser.
  • Choosing a template seeds the consent text and can be published successfully.
  • Agency-wide and imprint views do not gain a department consent chooser.
  • A failed data-protection read does not incorrectly enable the editor.

Reviewer test plan

  • Run the focused Admin component/container test for an omitted consentText response.
  • Run the Admin quality gate for the changed module.
  • In a fresh department on Dev or an equivalent local stack, open data protection and verify the chooser is visible before any consent sentence exists.
  • Select a template, publish it, reload, and verify the saved sentence is shown.

Activity

  1. Storypapst
    self-assigned this
    on Sep 5, 2026
  2. github-project-automation
    added this to ORISO Roadmapon Sep 5, 2026
  3. github-project-automation
    moved this to Backlog in ORISO Roadmapon Sep 5, 2026
  4. Storypapst
    added the
    Bug
    issue type on Sep 5, 2026
  5. Storypapst
    moved this from Backlog to In progress in ORISO Roadmapon Sep 5, 2026
  6. Storypapst
    updated Priority Medium and Platform release v2.0.5 on Sep 5, 2026
  7. Storypapst
    assigned
    nikunjdecyb
    and unassigned
    Storypapst
    on Sep 7, 2026
  8. Storypapst commented on Sep 7, 2026

    @Storypapst
    Storypapst
    on Sep 7, 2026
    CollaboratorAuthor
    More actions

    I had my coding agent check this. @nikunjdecyb Please link the fix PR for this regression and cover a successful department read with omitted consentText through the real container/component boundary. Verify choosing the first template, publishing and reloading, while genuine read errors remain fail-closed. #888’s merged template work does not cover this newly reported empty-department case.

  9. Storypapst
    changed
    Platform release
    to
    v2.0.6
    on Sep 14, 2026
  10. Storypapst commented on Sep 15, 2026

    @Storypapst
    Storypapst
    on Sep 15, 2026
    CollaboratorAuthor
    More actions

    Status reconciliation authorized by Frank on 2026-09-15: In progress → Ready.

    The empty-department template chooser regression has no current fix handoff in the inspected record. Next: fix the omitted-consentText case and verify template selection, publishing and reload.

    This move prioritizes current high-priority work and preserves the remaining scope. Release and priority are unchanged. QA external Dev remains the team's completion boundary.

  11. Storypapst
    moved this from In progress to Ready in ORISO Roadmapon Sep 15, 2026
  12. Storypapst commented on Sep 15, 2026

    @Storypapst
    Storypapst
    on Sep 15, 2026
    CollaboratorAuthor
    More actions

    Fix handoff: draft PR #966 (branch fix/929-department-consent-empty-state, base dev).

    Root cause. The consent field was gated on the payload of the department data-protection read — dppQuery.data && dppQuery.data.consentText !== undefined. An absent key was read as "this backend cannot store consent", so the editor and the template chooser disappeared. It now asks the request instead: a successful department read supports the field, empty map included. undefined keeps its fail-closed meaning for "Alle Fachbereiche", the imprint and every unsuccessful read.

    One correction to the report. On the AgencyService currently on Dev the key is never absent — every department returns consentText: null, and the chooser is therefore already visible there today. I swept all 13 departments across the 11 Dev agencies to confirm that. The defect is real but latent: it is a dependence on a serialization detail that the AgencyService pom has already flipped once (openApiNullable=false for the Spring Boot 4 / Jackson 3 move), so the field would vanish again the next time that knob or a @JsonInclude changes.

    Verified in the browser against Dev, with this branch's build served into the live Admin page and consentText removed from the read so the reported condition actually occurs:

    Acceptance criterion Result
    Department with no sentence shows the editor and chooser pass — deployed build hides both under the same condition
    Template seeds the sentence and publishes pass — PUT .../dpp → 200 with consentText, reload shows the stored sentence
    Agency-wide and imprint gain no department chooser pass
    Failed read does not enable the editor pass — "Legal text could not be loaded", no editor

    Test side: a new regression test drives the real container → card boundary (only TipTap stubbed). Reverting just the container hunk fails those two tests and nothing else. vitest run src/components/Tenants/LegalSettings → 365 tests pass; eslint/prettier/tsc/build clean.

    Written on Dev while proving the publish loop: agency 7 "ZZ Testfall Claude 2" / Fachbereich "Schulden" now carries a published DPP with the platform consent sentence. That is a throwaway test record.

    Ready for review by an external developer; the ticket stays open and the completion boundary stays with the team.

  13. Storypapst
    added 2 commits that reference this issue on Sep 15, 2026

    fix(legal): let a department seed its first consent sentence (#929)

    d48878f

    fix(legal): require a contract-valid publicationStatus before believi…

    34d9c58
  14. Storypapst
    changed
    Platform release
    to
    v2.0.6
    on Sep 15, 2026
  15. Storypapst
    added a commit that references this issue on Sep 15, 2026

    docs(legal): correct the consent contract comment, pin empty vs cleared

    c7110e1
  16. Storypapst
    changed
    Platform release
    to
    v2.0.7
    on Sep 16, 2026
  17. Shirloin
    added a commit that references this issue on Sep 16, 2026

    Merge pull request #966 from OpenResilienceInitiative/fix/929-departm…

    a6bad1e
  18. Shirloin commented on Sep 16, 2026

    @Shirloin
    Shirloin
    on Sep 16, 2026
    Contributor
    More actions

    Verified locally with #966: a department without a consent sentence now shows the editor and template chooser, and the chosen template publishes as its first sentence. Admins can set up consent for new departments without a workaround.

  19. Shirloin
    moved this from Ready to QA internal Dev in ORISO Roadmapon Sep 16, 2026
  20. Storypapst
    added a commit that references this issue on Sep 17, 2026

    test(legal): reconcile consent tests after #914 and #929 merged indep…

    e07c930
  21. shanzaeimran
    added a commit that references this issue on Sep 17, 2026

    Merge pull request #1000 from OpenResilienceInitiative/fix/legal-cons…

    a751070
  22. BjoernLudwig commented on Sep 24, 2026

    @BjoernLudwig
    BjoernLudwig
    on Sep 24, 2026
    More actions

    @Shirloin @nikunjdecyb Please review the first two steps of the reviewer test plan abve. They seem pretty off/unclear to me. Afterwards, if thorough QA internal was performed, please move to QA external and assign me.

  23. Storypapst
    moved this from QA internal to QA external in ORISO Roadmapon Nov 4, 2026
  24. HelenaSKloeckner
    moved this from QA external to Done in ORISO Roadmapon Nov 18, 2026
  25. HelenaSKloeckner
    closed this as completedby moving to Done in ORISO Roadmapon Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @nikunjdecyb
    nikunjdecyb

Labels

No labels
No labels

Type

Bug

Fields

Priority

Medium

Platform release

v2.0.7

Projects

  • ORISO Roadmap
    Status
    Done
    Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.