Skip to content
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

Improved removal of useless rules when creating schemas #177

Merged
merged 4 commits into from
Apr 18, 2024

Conversation

SmetDenis
Copy link
Member

No description provided.

Separated the unnecessary rule removal logic from the SchemaDataPrep class and moved it into a new class called RuleOptimizer for better organization and readability. This also updates references to this logic in existing code and tests, leading to overall performance improvements in validation rule preparation.
Simplified the existing 'analyzeColumns' number validation sections in Analyzer.php and RuleOptimizer.php, reducing code redundancy and enhancing readability. Moved schema validation from Analyzer to CreateSchema to allow schema check flexibility from the UI, improving the usability of the codebase.
The code handling numeric type fixing (`is_int` and `is_float`) has been moved to its own function `fixNumericTypes`. This separation enhances readability and modularizes the function, allowing for easier code modifications in the future.
@SmetDenis SmetDenis merged commit bf765b5 into master Apr 18, 2024
12 checks passed
@SmetDenis SmetDenis deleted the create-schema-improvments branch April 18, 2024 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant