Commit graph

3 commits

Author SHA1 Message Date
Goose
4e1e693378 fix(rollups): add CustomRecord reverse triggers and pre-save early-exit diff optimization
Some checks failed
Build, Test, and Deploy / build-and-deploy (push) Failing after 32s
2026-09-27 20:42:49 +00:00
Goose
cbcc16d7e1 feat(formulas): implement roll-up summary engine and frontend formula editor (Sprint 4.5C & 4.5D)
Some checks failed
Build, Test, and Deploy / build-and-deploy (push) Failing after 40s
- Add custom_objects/rollup_engine.py supporting COUNT, SUM, MIN, MAX aggregations across child relationships with optional JSON filter criteria.
- Wire post_save and post_delete reverse relation signal handlers in custom_objects/signals.py for Opportunity, Contact, and Activity relationships.
- Add frontend formula editor & roll-up configurator in CustomObjectsView.vue with insert helpers (fields, operators, functions) and Check Syntax validation.
- Add validateFormula action to frontend/src/stores/crm.js.
- Add unit and integration tests in tests/test_rollup_engine.py with 100% pass rate.
2026-09-27 20:31:27 +00:00
Goose
4def894801 feat(formulas): implement safe AST formula execution engine and pre-save evaluation signals (Sprint 4.5A & 4.5B)
Some checks failed
Build, Test, and Deploy / build-and-deploy (push) Failing after 29s
- Add zero-trust AST-based formula engine in custom_objects/formula_engine.py supporting arithmetic, logical, string, and date operations.
- Enforce strict AST whitelisting and attribute/function safety checks.
- Add cycle detection and topological sorting of formula dependencies.
- Extend CustomFieldDefinition model with formula_expression and formula_return_type fields.
- Wire pre-save signals to evaluate formula fields across standard models and CustomRecord.
- Expose AST syntax validator endpoint at POST /api/custom-fields/validate-formula/.
- Add comprehensive test suite in tests/test_formula_engine.py with 100% pass rate.
2026-09-27 07:17:04 +00:00