feat: docmdp per file#6187
Merged
vitormattos merged 11 commits intomainfrom Dec 14, 2025
Merged
Conversation
Member
Author
|
/backport to stable32 |
Member
Author
|
/backport to stable31 |
- Add migration to create docmdp_level column (SMALLINT, default 0) - Add docmdpLevel property to File entity with getters/setters - Add getDocmdpLevelEnum() and setDocmdpLevelEnum() methods - DocMDP levels: 0=not certified, 1=no changes, 2=form fill, 3=annotations Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
- Add DocMdpConfigService dependency to RequestSignatureService - Create setDocMdpLevelFromGlobalConfig() method - Save admin DocMDP configuration to file entity on creation - Allows per-file DocMDP configuration instead of only global Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
- Update validateDocMdpAllowsSignatures() to check file's docmdpLevel first - Falls back to PDF extraction for legacy files (level 0) - Throws consistent error message for DocMDP level 1 - Prevents adding signatures to certified documents with no changes allowed Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
- Add docmdp_level to SELECT and GROUP BY in SignRequestMapper - Format docmdpLevel as integer in API response - Add docmdpLevel to FileService::loadLibreSignData() - Ensures frontend receives per-file DocMDP configuration Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
- Add isDocMdpNoChangesAllowed() method to files store - Update canAddSigner() to check DocMDP level 1 with existing signers - Only blocks after first signer is added (not before) - Encapsulates logic in reusable method Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
- Add NcNoteCard warning message for DocMDP level 1 - Add showDocMdpWarning computed property - Warning only shows when button is hidden - Prevents UI flash during state transitions - Uses consistent error message with backend Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
- Add docmdpLevel to LibresignValidateFile schema in ResponseDefinitions - Add DocMdpConfigService mock to RequestSignatureServiceTest - Fix constructor parameter order in RequestSignatureServiceTest - Mock validateDocMdpAllowsSignatures in SignFileServiceTest - Mock getDocmdpLevelEnum to return NOT_CERTIFIED in test scenarios - Fixes OpenAPI schema validation errors - Fixes ArgumentCountError in RequestSignatureService tests - Fixes enum mocking issues in SignFileService tests Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
57bb152 to
50b66c4
Compare
This was referenced Dec 14, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.