This repository was archived by the owner on Nov 18, 2026. It is now read-only.
Repository navigation
Fix data quality rules not labeling records - #129
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the derived-column rule and inventory-tab handling changes.
No open issues 🎉
What changed in this PR
Fixes data-quality rule handling so derived-column rules can apply labels and edits stay associated with the active inventory tab.
Changes:
- Sets the derived-column flag from the selected field when saving a rule.
- Filters field choices and display-name lookups to the rule’s own inventory table.
- Passes the active tab to the rules table and adds regression tests.
The PR reports passing lint, 216 tests, a production build, and live-backend checks. Previously saved derived-column rules still need to be reopened and submitted to repair their stored flag.
| File | Description |
|---|---|
src/app/modules/organizations/data-quality/inventory/modal/form-modal.component.ts |
Sets the derived-column flag and filters selectable fields by table. |
src/app/modules/organizations/data-quality/inventory/modal/form-modal.component.spec.ts |
Tests field filtering and derived-column flag handling. |
src/app/modules/organizations/data-quality/inventory/inventory-table.component.ts |
Uses the active tab and prevents related-column name collisions. |
src/app/modules/organizations/data-quality/inventory/inventory-table.component.spec.ts |
Tests field-name lookups and editing after tab changes. |
src/app/modules/organizations/data-quality/data-quality.component.html |
Passes the active inventory type to the rules table. |
Review effort: Balanced
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Fixes tester issue 22: Data Quality rules didn't result in labeled records.
for_derived_column: false, so the backend looked the derived column up inextra_data, got nothing, and skipped the rule. The flag now comes from the selected column.Note: rules on derived columns already saved from the new UI still have the flag set to false in the database. Open each one and click Submit once to fix it.
Testing
pnpm lint,pnpm test(216 passing),pnpm build🤖 Generated with Claude Code