Skip to content

Develop - #448

Merged
evilguy4000 merged 4 commits into
rc/v4.13.1from
develop
Jan 25, 2026
Merged

evilguy4000 merged 4 commits into
rc/v4.13.1from
develop

Conversation

@evilguy4000

Copy link
Copy Markdown
Collaborator

No description provided.

…uploads, currency)

- custom_field_definitions: capture definition_id before delete and use it in
  safe_commit to avoid touching detached definition; in tests re-query Client
  by id after request instead of db.session.refresh() to avoid 'not persistent'
- permissions: test_delete_role_flow asserts by name (deletable_role) instead
  of Role.query.get(role_id) so redirect-triggered sync_permissions_and_roles
  id reuse does not cause false failure
- uploads: add password to authenticated_admin_client login_data in
  test_uploads_persistence so login succeeds and logo upload tests see
  company_logo_filename
- currency_display: run PRAGMAs only for file-based SQLite and use text();
  skip for in-memory sqlite:// to avoid ResourceClosedError in admin_user
  fixture during commit
The logout route uses current_app.config for AUTH_METHOD and Config
for OIDC_POST_LOGOUT_REDIRECT_URI. Two tests only patched Config, so
auth_method stayed local and the handler never hit the IdP redirect
branch, causing redirects to /login and assertion failures.

Set app.config AUTH_METHOD to oidc in
test_logout_with_post_logout_uri_config and
test_logout_oidc_provider_has_revocation_endpoint_only so the route
enters the OIDC branch and the tests pass.
- test_client_portal_dashboard_requires_access: expect 302 redirect to
  client portal login instead of 403. The client portal 403 handler
  redirects authenticated non-portal users to login by design.
- Run routes unit group with -n 0 in CI to avoid SQLite 'database is
  locked' errors from audit logging under pytest-xdist parallel workers;
  fixes client_portal and admin client-portal test failures.
…oader test

- Add cascade='all, delete-orphan' to the notes backref so client notes
  are removed when a client is deleted.
- In test_client_has_notes_relationship use client.notes.count() instead
  of len(client.notes) since the backref uses lazy='dynamic'.
@evilguy4000
evilguy4000 merged commit 2f8374a into rc/v4.13.1 Jan 25, 2026
4 checks passed
@github-actions

Copy link
Copy Markdown

Database Migration Validation

✅ Migration validation passed!

Completed checks:

  • ✅ Migration consistency validation (with schema drift warnings)
  • ✅ Rollback safety test
  • ✅ Data integrity verification

The database migrations are safe to apply. 🚀

📝 Note: Schema drift warnings indicate existing model/migration mismatches that existed before this PR. These should be addressed in a separate schema alignment PR.


This comment was automatically generated by the Migration Validation workflow.

@github-actions

Copy link
Copy Markdown

❌ CI Test Results

Overall Status: 2 test suite(s) failed

Test Results: 3/7 passed

Test Suites:

  • ✅ Smoke Tests: success
  • ❌ Unit Tests: failure
  • ❌ Integration Tests: failure
  • ✅ Security Tests: success
  • ✅ Code Quality: success
  • ⏭️ Docker Build: skipped
  • ⏭️ Full Test Suite: skipped

Commit: eda084a
Workflow: 21329887620

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