Skip to content

Feature/streaming architecture#19

Merged
Sauvikn98 merged 2 commits intodevfrom
feature/streaming-architecture
Apr 16, 2026
Merged

Feature/streaming architecture#19
Sauvikn98 merged 2 commits intodevfrom
feature/streaming-architecture

Conversation

@Sauvikn98
Copy link
Copy Markdown
Contributor

No description provided.

- Add ColumnDependencyGraph for field dependency tracking
- Implement topological sorting for evaluation order
- Add ConstraintEngine for constraint validation
- Support for minColumn/maxColumn/gtColumn/ltColumn constraints
- Cycle detection and auto-break for circular dependencies
- Tests for temporal, numeric, and pricing constraints

Cross-column constraints supported:
- created_at <= updated_at
- start_date <= end_date
- discount_price < original_price
- quantity_available <= total_quantity

Refs: #9
- Import ConstraintEngine and ColumnDependencyGraph into BaseAdapter
- Refactor sortFieldsByDependency() to use ColumnDependencyGraph
- Remove duplicate topological sort implementation
- Now uses cycle-safe sorting from ConstraintEngine

This eliminates code duplication between BaseAdapter and ConstraintEngine.
@Sauvikn98 Sauvikn98 merged commit e96cda9 into dev Apr 16, 2026
2 checks passed
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