Closed jschalk closed 3 weeks ago
This pull request refactors the brick configuration system and related tools to simplify the data structure and improve functionality. The main changes include removing nested attributes in favor of a simpler flat structure, updating the pandas tool functions for better sorting and filtering capabilities, and modifying the BrickRef class to use a set-based approach for attributes.
erDiagram
BRICK_CONFIG {
STRING allowed_crud
STRING brick_type
JSON optional_args
JSON required_args
}
BRICK_CONFIG ||--o{ OPTIONAL_ARGS : contains
BRICK_CONFIG ||--o{ REQUIRED_ARGS : contains
OPTIONAL_ARGS {
STRING key
JSON value
}
REQUIRED_ARGS {
STRING key
JSON value
}
note for BRICK_CONFIG "Simplified structure by removing nested attributes"
classDiagram
class BrickRef {
+String brick_name
+String categorys
+Set attributes
+set_attribute(String x_attribute)
+List get_headers_list()
}
note for BrickRef "Refactored to use a set for attributes instead of a dictionary for brick columns"
Change | Details | Files |
---|---|---|
Simplified brick configuration structure by flattening attributes and standardizing required/optional arguments |
|
src/f09_brick/brick_config.json src/f09_brick/brick_formats/*.json |
Enhanced pandas tool functions with improved sorting and type handling |
|
src/f09_brick/pandas_tool.py src/f09_brick/test_brick_config/test_pandas_tool.py |
Refactored BrickRef class to use a set-based approach for attributes |
|
src/f09_brick/brick.py src/f09_brick/test_brick_format/test_brick_column.py src/f09_brick/test_brick_format/test_brick_format_config.py |
🧙 Sourcery is reviewing your pull request!
Summary by Sourcery
Refactor the brick configuration by simplifying the structure and updating the pandas tool functions for improved clarity. Update the test suite to ensure compatibility with these changes.
Enhancements:
Tests: