Register Signature Rejection in Policy Workbench and add flow tests
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 68/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- playwright, typescript
Direzione di ricerca
Start with the existing registration pattern in src/views/Settings/PolicyWorkbench/settings/realDefinitions.ts, then inspect the Workbench flow and existing save-error tests/helpers. Verify the existing engine and policy module support loading, saving, reloading, resetting, hidden helper policies, and backend errors without changing useRealPolicyWorkbench.ts or policyWorkbenchCompoundPolicies.ts. Run the focused integration and Playwright scenarios, followed by npm run lint and npm run ts:check.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Part of #8685. Blocked by #8688.
Goal
Register the completed Signature Rejection policy module in Policy Workbench and verify that it works through the existing Workbench flow.
Do not add Signature Rejection rules to the shared engine.
Registration
Add only the parent definition to:
src/views/Settings/PolicyWorkbench/settings/realDefinitions.ts
Parent key:
rejection_enabled
The four helper policies must not appear as separate catalog entries.
Use the existing registration pattern.
Workbench integration
Use the engine completed by #8687 and the policy module completed by #8688.
Do not modify useRealPolicyWorkbench.ts or policyWorkbenchCompoundPolicies.ts just to register Signature Rejection. If registration requires Signature Rejection-specific engine logic, stop: that means #8687 is incomplete.
Use the engine that already exists.
Verify that the registered policy can be:
- loaded;
- edited;
- saved;
- reloaded;
- reset/removed.
Do not add separate inheritance, delegation or authorization logic.
Backend validation errors must stay visible through the existing Workbench error flow.
Do not mock frontend-only permission rules. For a validation-error test, mock the backend request failure in the same way existing Workbench save-error tests do.
Focused integration tests
Cover:
- Signature Rejection appears once in the catalog;
- helper policies stay hidden;
- a saved system rule restores all five values after reload;
- one group or user rule uses the same generic flow;
- a backend validation error is displayed and is not reported as a successful save.
Do not reproduce the backend validation matrix in frontend code or tests.
Playwright
Add one focused Policy Workbench scenario:
- open Signature Rejection;
- configure a system rule;
- save;
- reload;
- verify the five values are restored.
Reuse existing Policy Workbench helpers.
A second Playwright scenario is not required unless an existing helper makes a group/inherited case small and stable.
Done when
- Signature Rejection appears once in the catalog.
- Helper policies stay hidden.
- Save + reload restores all five values.
- One non-system rule is covered by focused integration tests.
- Backend save errors remain visible.
- The focused Playwright scenario passes.
-
npm run lintpasses. -
npm run ts:checkpasses.
Good first issue
The policy module and generic compound support are complete before this issue starts. This task only registers the module and verifies the existing Workbench behavior.
- Lingua principale
- PHP
- Stelle
- 818
- Fork
- 146
- Merge medio
- 7h 38m
- PR unite (30g)
- 490
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di LibreSign/libresign
-
backend enhancement good first issue php
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
LibreSign/libresign#8713 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
LibreSign/libresign#8284 · 5 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
backend good first issue php
Difficoltà 3/5 1-2 giorni Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
javascript
Difficoltà 5/5 Più di una settimana Idoneità per principianti 38/100
I maintainer di solito rispondono entro 1 giorno
-
good first issue javascript
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
LibreSign/libresign#8727 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di LibreSign/libresign
Issue simili
-
domain/crm-after-sales Platform(Default) priority/high
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
sync-en
Difficoltà 1/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 2 giorni
-
sync-en
Difficoltà 1/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 2 giorni
-
Перевод устарел
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
component/code document/settings documents duplicate integration/wc/pages/cart integration/woocommerce mod* mod/b* mod/c* mod/d* mod/e* mod/i* product/pro status/needs-feedback
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
elementor/elementor#37475 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno