Skip to content

Develop - #449

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

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

Conversation

@evilguy4000

Copy link
Copy Markdown
Collaborator

No description provided.

…te in tests

- Client: call flag_modified() after mutating custom_fields in
  set_custom_field() and remove_custom_field() so SQLAlchemy persists
  JSON changes (in-place dict updates are not tracked by default).
  Fixes test_count_clients_with_value_ignores_empty and
  test_count_clients_with_value_ignores_other_fields.

- ClientNote: add ondelete=CASCADE to client_id FK so schema from
  db.create_all() matches migration 024 and notes are deleted when
  client is deleted. Fixes test_client_note_cascade_delete.
…flush)

- Make InstallationConfig config dir overridable via INSTALLATION_CONFIG_DIR
  so tests and CI use a writable path instead of /data (fixes PermissionError
  on redirect to /admin/settings after logo upload).
- Set INSTALLATION_CONFIG_DIR in conftest before app import and in
  ci-comprehensive.yml for integration-tests and full-test-suite jobs.
- In Settings.get_settings(), add _session_in_flush() and a re-entrancy
  guard to skip add+commit when called during another commit's flush,
  fixing ResourceClosedError in currency_display test setup.
- Update test_installation_config fixture to set INSTALLATION_CONFIG_DIR
  so it continues to use its temp dir with the new env-based behavior.
@evilguy4000
evilguy4000 merged commit 5297dcd 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: 54bf6c8
Workflow: 21330261927

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