Skip to content

Add Python 2.1 API coverage and fix request handling - #63

Draft
kkimhannah wants to merge 2 commits into
masterfrom
feature/python-2.1-api-coverage
Draft

kkimhannah wants to merge 2 commits into
masterfrom
feature/python-2.1-api-coverage

Conversation

@kkimhannah

@kkimhannah kkimhannah commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Document and template updates could silently discard their PUT form bodies, and several SDK methods returned HTTP error payloads as successful results. This update fixes request handling and adds dedicated methods for the current Mifiel API.

  • Add Document.get_state(), add_stakeholder(), update_stakeholder(), delete_stakeholder() and save_zip(), plus Query.execute(client, params) at /api/query with pagination metadata preserved.
  • Send PUT form bodies, encode form booleans consistently, support GET query parameters, raise requests.HTTPError for failed requests, close failed uploads and omit duplicate local-path form fields. Preserve original XML download bytes.
  • Prepare 2.1.0 as unreleased, add webhook tests, and extend the CI matrix through Python 3.14. Python >=3.10, Requests 2.x requirements and the dependency lock are unchanged.

Validation: 82 tests pass on Python 3.10, 3.11, 3.12, 3.13 and 3.14 with locked dependencies; 93% total coverage. Poetry metadata/lock validation, source and wheel builds, clean-wheel import/version checks and diff checks pass. All new modules/tests pass Ruff; repository-wide Ruff retains 54 legacy findings (56 at baseline), and existing deprecation warnings remain.

Authenticated sandbox checks passed for advanced queries, document creation/state, reviewer creation/update/deletion and webhook listing. Signed ZIP/PDF/XML downloads passed archive/XML/header checks; both ZIP members match direct downloads byte for byte. Stakeholder deletion returned 205 with state retained as deleted. Only this run's disposable document was cleaned up; the retained signed test document was preserved.

Webhook creation/callback delivery and live legacy template generation were not exercised. This draft does not merge or publish a release.

API usage examples are maintained centrally at docs.mifiel.com; this PR adds no separate repository usage examples.

@coderabbitai

coderabbitai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f4522619-cc38-4a2d-8630-e10ac7adac83
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Tip

🎯 Customize your risk assessments

Guide how CodeRabbit assesses merge risk and security architecture risk. Highlight sensitive changes and explain your security boundaries using Merge Risk Instructions and Security Risk Instructions in your review settings. Security architecture risk assessments require the Advanced plan or above.

✅ Automatic approvals, with your rules

Let CodeRabbit approve pull requests once required threads are resolved, pre-merge checks pass, and your risk limits are met. Enable Automatic approvals in review settings, with overrides for teams or file paths.

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.

1 participant