Skip to content

Adaptar poweremail_signaturit a refactor y a multicompany#62

Merged
eberloso merged 8 commits intomasterfrom
poweremail_certificat_multicompany
Jan 12, 2026
Merged

Adaptar poweremail_signaturit a refactor y a multicompany#62
eberloso merged 8 commits intomasterfrom
poweremail_certificat_multicompany

Conversation

@eberloso
Copy link
Copy Markdown
Member

Adaptar poweremail_signaturit a refactor y a multicompany

@polsala polsala added enhancement New feature or request feature to be merged Ready to integrate labels Jul 23, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jul 23, 2025

Test Results

 2 files   2 suites   0s ⏱️
89 tests 86 ✅ 0 💤 1 ❌ 2 🔥
90 runs  87 ✅ 0 💤 1 ❌ 2 🔥

For more details on these failures and errors, see this check.

Results for commit 4a57b59.

♻️ This comment has been updated with latest results.

@lcbautista lcbautista removed the to be merged Ready to integrate label Nov 21, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adapts the poweremail_signaturit module to support a refactored Signaturit integration and multicompany functionality. The main change is migrating from a global get_signaturit_client() function to instance methods that can determine the appropriate Signaturit credentials based on the company associated with each poweremail account.

Key Changes

  • Refactored client acquisition: Moved from global get_signaturit_client() function to instance methods in PoweremailCore and PoweremailMailbox classes that support multicompany environments
  • Backward compatibility: Added logic to detect if the new giscedata.signature.provider.account model exists and fall back to legacy behavior if not
  • Test modernization: Updated tests to mock SDK methods directly rather than internal functions, removed unnecessary mocks, and added Python 3.11.4 support

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
poweremail_signaturit/terp.py Added dependency on giscedata_signatura_documents_signaturit module
.github/workflows/run_tests.yml Added Python 3.11.4 to the test matrix alongside Python 2.7.18
poweremail_signaturit/poweremail_core.py Added get_signaturit_client() instance method with multicompany support and backward compatibility logic; updated existing methods to use new instance method
poweremail_signaturit/poweremail_mailbox.py Added get_signaturit_client() instance method that delegates to PoweremailCore; updated update_poweremail_certificate() to use instance method
poweremail_signaturit/tests/test_download_audit_trail.py Updated mock path from global function to instance method (PoweremailCore.get_signaturit_client)
poweremail_signaturit/tests/init.py Removed unnecessary test setup code and mocks; simplified tests to mock SDK methods directly; added test assertions for multicompany client acquisition

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@eberloso eberloso disabled auto-merge January 12, 2026 09:44
@eberloso eberloso merged commit 50c0542 into master Jan 12, 2026
@eberloso eberloso deleted the poweremail_certificat_multicompany branch January 12, 2026 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request feature to be merged Ready to integrate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants