Repository navigation
feat(transform): add standardize text case transformation - #747
Open
YADUNANDAN-SINGH wants to merge 1 commit into
Open
YADUNANDAN-SINGH wants to merge 1 commit into
YADUNANDAN-SINGH wants to merge 1 commit into
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
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.
Description
Adds the
standardizeCasetransformation to convert string column values (or"All string columns", matchingTrimWhitespaceForm) tolowercase,UPPERCASE,Title Case, orSentence case, and wires it directly into Quality Assessment casing remediation.Previously,
quality_service.suggest_remediationsmappedsubtype == "casing"issues tostringReplaceas a placeholder workaround, which could only replace a single substring at a time rather than normalizing column casing.What's included
dataloom-backend/)OperationType.standardizeCase,CaseType(lower,upper,title,sentence),StandardizeCaseParams, andstandardize_case_paramsonTransformationInput.standardize_case(df, column, case_type)intransformation_service.pysupporting both single columns and"All string columns", preserving missing values (None/NaN), and rejecting non-text columns (int,float,bool, nullablebool,datetime) withTransformationError.OperationType.standardizeCaseinTRANSFORMATION_REGISTRY(reusable=True) for preview, commit, undo/redo, pipeline replay, and provenance summaries.quality_service.suggest_remediationssosubtype == "casing"points to"standardizeCase".dataloom-frontend/)STANDARDIZE_CASEoperation constant and pipeline step label/summary formatting (column → case_type).StandardizeCaseFormcomponent with"All string columns"support, preview/save workflow, pipeline step capture (onCapture), and unmount safety, registered under Data ▸ Transform (Text Case).standardizeCaseintoQualityAssessmentView(Standardize caseremediation action button).Fixes #746
Type of Change
How Has This Been Tested?
Backend:
uv run ruff check .anduv run ruff format --check .uv run pytest(all 1,554 tests pass, including new unit tests intests/test_transformations.py, schema/registry/HTTP preview-commit-undo-redo tests intests/test_standardize_case_transformation.py, and quality remediation tests intests/test_quality.py)Frontend:
npm run lint(eslint --max-warnings 0+tsc --noEmit), Prettier check, andnpm run buildnpm run test(all 85 test files / 649 tests pass, includingStandardizeCaseForm.test.tsx,QualityAssessmentView.test.tsx,pipelineStepText.test.ts, andoperationTypes.test.ts)Existing tests pass
New tests added
Manual testing
Screenshots
Checklist