Skip to content

Develop - #446

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.

- Add merge migration 116_merge_three_heads to join heads
  090_add_push_subscriptions, 100_gantt_colors_modules, and
  115_add_exclude_weekends so 'flask db upgrade' runs cleanly.

- Fix undefined-name and scope issues for CI code-quality:
  - api_v1: import InvalidOperation in amount_paid Decimal block
  - custom_reports, invoice_approvals, reports, scheduled_reports,
    tasks: add current_app to Flask imports
  - integrations: set user_integration before POST branches so
    update_config path can use it
  - invoices: use _ign for unpacking in export_invoice_ubl to avoid
    shadowing gettext _ (F823)
  - data_import, excel_export: add module logger (logging.getLogger)
- Audit: remove session.flush() from after_flush handler to avoid
  'Session is already flushing' when logging creates
- Audit smoke tests: make assertions robust to fixture-created logs
  (filter by user_id/action, expect >= counts where appropriate)
- PDF preview: add id and client to mock invoice SimpleNamespace and
  use getattr(invoice, 'id', None) in exception logging
- PDF layout tests: assert custom_css is contained in saved CSS
  (app normalizes with @page); create template before preview test
- Session: add password to login data in smoke tests that use the
  login endpoint (admin_users, permissions_routes, tasks_templates,
  time_entry_resume, invoices) so sessions persist across requests
@evilguy4000
evilguy4000 merged commit c51d65d into rc/v4.13.1 Jan 25, 2026
2 of 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: 1 test suite(s) failed

Test Results: 1/7 passed

Test Suites:

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

Commit: 55237e2
Workflow: 21329330376

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