stable

Clone or download

Read-only

refactor: Text fields and metadata return empty string instead of null

Part of story #38263 Choose my own columns based on field name (numeric, text, dates) For @pretty_title, we choose to returns empty string if title of artifact is null. This commit align behavior of text fields and metadata (@title and @description). *Testing:* Have 2 trackers -> one with a text field, the other without it. In your XTS widget, select on this text field for both trackers. Artifact corresponding to second tracker should have empty string in text column instead of null. Change-Id: Icb6cb731aa380843c0b211a024237e67af6c10b7

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/ResultBuilder/Field/Text/TextResultBuilder.php +1 −1 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/ResultBuilder/Metadata/Text/MetadataTextResultBuilder.php +1 −1 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/ResultBuilder/Representations/TextResultRepresentation.php +1 −1 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/Report/Query/Advanced/ResultBuilder/Field/FieldResultBuilderTest.php +1 −1 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/Report/Query/Advanced/ResultBuilder/Metadata/MetadataResultBuilderTest.php +2 −2 Go to diff View file