Skip to content

Added action to add a item to a specific session#40

Merged
chris-adam merged 1 commit into
PARAF-370/create-custom-sessionfrom
PARAF-369/action-add-to-esign-session
May 21, 2026
Merged

Added action to add a item to a specific session#40
chris-adam merged 1 commit into
PARAF-370/create-custom-sessionfrom
PARAF-369/action-add-to-esign-session

Conversation

@chris-adam

@chris-adam chris-adam commented May 20, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • New Features
    • Added an action allowing users to add a file to a specific e-sign session via a new overlay form.
    • New filtered sessions table displays available draft sessions for selection with radio button options.
    • Integrated option to create a new session directly from the session selection dialog.

Review Change Stack

@coderabbitai

coderabbitai Bot commented May 20, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e4f7f512-6b37-48ce-a664-729841628003

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch PARAF-369/action-add-to-esign-session

Comment @coderabbitai help to get the list of available commands and usage tips.

@chris-adam chris-adam force-pushed the PARAF-369/action-add-to-esign-session branch from 5052905 to 593c386 Compare May 20, 2026 14:41
@coveralls

coveralls commented May 20, 2026

Copy link
Copy Markdown

Coverage Report for CI Build 26218495076

Warning

Build has drifted: This PR's base is out of sync with its target branch, so coverage data may include unrelated changes.
Quick fix: rebase this PR. Learn more →

Coverage increased (+0.9%) to 84.15%

Details

  • Coverage increased (+0.9%) from the base build.
  • Patch coverage: 3 uncovered changes across 2 files (80 of 83 lines covered, 96.39%).
  • No coverage regressions found.

Uncovered Changes

File Changed Covered %
src/imio/esign/browser/table.py 40 38 95.0%
src/imio/esign/browser/actions.py 43 42 97.67%

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 1470
Covered Lines: 1237
Line Coverage: 84.15%
Coverage Strength: 0.84 hits per line

💛 - Coveralls

@chris-adam chris-adam force-pushed the PARAF-369/action-add-to-esign-session branch 4 times, most recently from 62b2b89 to 02dbf92 Compare May 21, 2026 09:35
@chris-adam chris-adam marked this pull request as ready for review May 21, 2026 09:36
@chris-adam chris-adam changed the title Added action to add a item to a specific session WIP Added action to add a item to a specific session May 21, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@CHANGES.rst`:
- Line 14: Update the changelog entry text to fix the grammar: replace the
phrase "Added action to add a item to a specific session." with "Added action to
add an item to a specific session." in the CHANGES.rst content.

In `@src/imio/esign/browser/static/esign.css`:
- Around line 2-7: Remove the deprecated CSS property by deleting the
`word-wrap: break-word;` declaration inside the selector
`#add-to-custom-esign-session-form .sessions-table`; keep `overflow-wrap:
break-word;` and the other rules (`table-layout: fixed; width: 100%;`) unchanged
so stylelint no longer flags the deprecated property.

In `@src/imio/esign/tests/test_table.py`:
- Around line 59-63: This test mutates global registry via
set_esign_registry_seal_code and set_esign_registry_seal_email and doesn’t
restore them; update the test to capture the original values (call
get_esign_registry_seal_code/get_esign_registry_seal_email or read the registry
directly) before calling the setters and ensure restoration in a finally block
(or in tearDown) so the registry is reset after the assertions; reference the
calls to set_esign_registry_seal_code and set_esign_registry_seal_email in the
test to locate where to save and restore the originals.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 20585ff0-57e4-4ecb-8954-cda8cd291046

📥 Commits

Reviewing files that changed from the base of the PR and between 9039b53 and 02dbf92.

📒 Files selected for processing (9)
  • CHANGES.rst
  • src/imio/esign/browser/actions.py
  • src/imio/esign/browser/configure.zcml
  • src/imio/esign/browser/static/esign.css
  • src/imio/esign/browser/static/esign.js
  • src/imio/esign/browser/table.py
  • src/imio/esign/browser/templates/add_to_custom_esign_session.pt
  • src/imio/esign/tests/test_actions.py
  • src/imio/esign/tests/test_table.py

Comment thread CHANGES.rst Outdated
Comment thread src/imio/esign/browser/static/esign.css
Comment on lines +59 to +63
set_esign_registry_seal_code(u"PADES_SEAL")
set_esign_registry_seal_email(u"seal@example.com")
columns = table.setUpColumns()
self.assertEqual(len(columns), 6)
self.assertTrue(any(isinstance(column, SealColumn) for column in columns))

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Reset registry values after this test mutation.

set_esign_registry_seal_code / set_esign_registry_seal_email are changed but never restored, which can leak state into later tests on shared layers.

Suggested fix
     def test_setUpColumns(self):
         """Returns 5 columns without seal; 6 with seal config set."""
+        # Keep test isolated
+        self.addCleanup(set_esign_registry_seal_code, u"")
+        self.addCleanup(set_esign_registry_seal_email, u"")
         table = FilteredSessionsTable(self.folder, self.mock_view, self.request)
         columns = table.setUpColumns()
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/imio/esign/tests/test_table.py` around lines 59 - 63, This test mutates
global registry via set_esign_registry_seal_code and
set_esign_registry_seal_email and doesn’t restore them; update the test to
capture the original values (call
get_esign_registry_seal_code/get_esign_registry_seal_email or read the registry
directly) before calling the setters and ensure restoration in a finally block
(or in tearDown) so the registry is reset after the assertions; reference the
calls to set_esign_registry_seal_code and set_esign_registry_seal_email in the
test to locate where to save and restore the originals.

@chris-adam chris-adam force-pushed the PARAF-369/action-add-to-esign-session branch from 02dbf92 to 8d4b531 Compare May 21, 2026 09:46
@chris-adam chris-adam merged commit 30df865 into PARAF-370/create-custom-session May 21, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants