-
Notifications
You must be signed in to change notification settings - Fork 16
Feature: Measure Converter #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
MrBlack1995
wants to merge
10
commits into
databrickslabs:feature/flow
Choose a base branch
from
MrBlack1995:feature/measure-converter
base: feature/flow
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feature: Measure Converter #40
MrBlack1995
wants to merge
10
commits into
databrickslabs:feature/flow
from
MrBlack1995:feature/measure-converter
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
README.md fix
Front page/ README optical changes
Implement base architecture for converting business measures between formats (YAML, DAX, SQL, UC Metrics, Power BI). - Create converters package with clean architecture pattern - Base classes: BaseConverter, ConverterFactory - Data models: KBI, DAXMeasure, SQLMeasure, UCMetric - Placeholder structure for formats, rules, and utilities - Add API layer - REST endpoints: /api/measure-conversion/* - Routes: convert, validate, batch-convert, get formats - Register router in main API - Add service layer - MeasureConversionService for business logic - Async operations with error handling - Factory pattern for converter instantiation - Add Pydantic schemas - Request/response models - Validation schemas - OpenAPI documentation - Add comprehensive README with usage examples Prepared for integration of existing yaml2dax conversion logic. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Integrate all working yaml2dax conversion logic and reorganize into clean, hierarchical package structure with improved naming conventions. ## Migration - Migrate all yaml2dax components (parsers, generators, processors, translators) - Create concrete converter implementations (YAML→DAX, YAML→SQL, YAML→UC Metrics) - Auto-register all converters via registry module - Update all imports to new package structure ## Reorganization - Rename: measure/ → processors/ (clearer purpose) - Split formats/ into parsers/ and generators/ subdirectories - Split rules/ into aggregations/ and translators/ subdirectories - Move converters to implementations/ subdirectory - Rename converter files for consistency (remove _converter suffix) ## New Structure converters/ ├── base/ # Framework (BaseConverter, ConverterFactory) ├── models/ # Data models (KBI, SQL models) ├── formats/ │ ├── parsers/ # YAML, formula parsers │ └── generators/ # DAX, SQL generators ├── processors/ # Structure, UC metrics processors ├── rules/ │ ├── aggregations/ # DAX, SQL aggregation rules │ └── translators/ # Filter, formula, dependency resolvers ├── implementations/ # Concrete converters (yaml_to_dax, yaml_to_sql, yaml_to_uc_metrics) └── registry.py # Auto-registration ## Components Migrated (18 files) - Parsers: yaml_parser, formula_parser - Generators: dax_generator, sql_generator, smart_dax, tree_parsing_dax - Processors: structure_processor, sql_structure_processor, uc_metrics_processor - Rules: filter_resolver, formula_translator, dependency_resolver - Aggregations: dax_aggregations, sql_aggregations - Models: sql_models (SQLQuery, SQLDialect, etc.) - Converters: 3 concrete implementations ## Benefits - Clean hierarchical organization - Logical grouping by purpose - Consistent naming conventions - Easy to extend and maintain - Industry-standard package structure All yaml2dax conversion logic now integrated and functional via API endpoints. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Backend changes for KPI parsers and measure conversion infrastructure.
Changes
Related Commits
🤖 Generated with Claude Code