GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||
GeezerVison is showing github.com — fix(legal): keep the consent sentence in sync with the policy it belongs to by kiodreambau · Pull Request #866 · OpenResilienceInitiative/ORISO-Admin Conversation
Contributor
ProblemThe consent sentence is a field of the data-protection policy (ADR-021 decision 4), so it must publish with the policy and never drift from it. Two places let it drift. 1. A forking Fachbereich shipped a policy whose consent sentence stayed on the level aboveA Fachbereich that had not yet forked from the inherited text was seeded with the inherited body but with its own (empty) consent map. Publishing forked the policy for good (ADR-014 amendment) and left its consent sentence behind on the level above. This is a real bug found while doing the work, not a theoretical one. 2. The blocked-publish notice only appeared after you had already failedThe "cannot publish, Root cause
Fix
No i18n keys added; the existing TestsNew/extended coverage for:
Files: Screenshot / evidence noteThis one is deliberately not screenshotted. Both halves are behavioural: the fork-seeding bug is invisible until you publish and then inspect which level the stored sentence landed on, and the notice change is a change in when an already-existing notice appears, not in how it looks. A still image of the notice would prove nothing that the tests do not already prove, and would suggest visual work that was not done. The assertions above are the evidence. Reviewer test plan
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: Warning Your free Security trial is over. An organization admin can activate billing to continue. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Evidence noteNo screenshot for this PR — the reasoning is in the Screenshot / evidence note section of the description above, and it has not changed after attempting capture:
A still of the notice would look the same before and after and would suggest visual work that was not done. The assertions listed in the description are the evidence. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Part of the owner review round #874. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@Storypapst @kiodreambau this PR has conflicts. Please resolve them so I can review it |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ngs to
The consent sentence is a field of the data-protection policy (ADR-021
decision 4), so it must publish with the policy and never drift from it.
Two places let it drift:
- A Fachbereich that has not forked from the inherited text yet was seeded
with the inherited BODY but with its own (empty) consent map. Publishing
forked the policy for good (ADR-014 amendment) and left its consent
sentence behind on the level above. The fork now seeds both from the same
source and says which level the sentence came from; a Fachbereich that has
already forked keeps its stored sentence, blank included, because blank
means the level above still governs at runtime (ADR-021 decision 1).
- The "cannot publish, {{legal_links}} is missing" notice only appeared
after a failed Publish click. The rule arrived after texts were live, so a
stored sentence can be blocking on open — and in a language other than the
one on screen, where nothing pointed at it. The notice is now derived from
the validation state and names the blocked languages the way the admin
reads them instead of as wire codes.
No i18n keys added; the existing publishBlocked strings already carry the
language list. The client-side check stays a mirror of the server rule so
the admin is told before the request, not by a 400.
Adds coverage for the inline missing-token error and the blank-is-inherited
semantics, for a consent-only edit publishing a byte-identical body, and for
consentText reaching the publish endpoint.
Co-Authored-By: Claude Opus 5 <[email protected]>
6be39ef to
90255f4
Compare
CI failed because five consent tests still treated the sentence as an inline textbox. Match LegalConsentField: open the CTA, edit in the dialog, then save. Co-authored-by: Cursor <[email protected]>
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.