stable

Clone or download

Read-only

fix: do not retrieve always there field when the field has changeset value

Part of story #39685 Order artifact according to a field Since there is no changeset on some field type like submitted on (subon) or last update date (subby), an error should be raised. How to test: - In the query, try to select some "special" field (see Allowed::FIELD_WITH_NO_CHANGESET for concerned field) => An error is displayed and explain to you which field you should use instead - Do the same with order by => An error is displayed and explain to you which field you should use instead Change-Id: I6744974ede9c114a6dc732e033f9c7eadea99d53

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/AllowedMetadata.php +10 −0 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/DuckTypedField/FieldLinkedToMetadataFault.php +43 −0 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryValidation/DuckTypedField/DuckTypedFieldChecker.php +20 −0 Go to diff View file
M plugins/crosstracker/site-content/fr_FR/LC_MESSAGES/tuleap-crosstracker.po +8 −0 Go to diff View file
M plugins/crosstracker/site-content/pt_BR/LC_MESSAGES/tuleap-crosstracker.po +6 −0 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/Report/Query/Advanced/QueryValidation/DuckTypedField/DuckTypedFieldCheckerTest.php +68 −0 Go to diff View file
M plugins/tracker/tests/unit/Builders/Fields/SubmittedByFieldBuilder.php +22 −4 Go to diff View file
M plugins/tracker/tests/unit/Builders/Fields/SubmittedOnFieldBuilder.php +9 −2 Go to diff View file
M plugins/tracker/tests/unit/Stub/RetrieveFieldTypeStub.php +2 −0 Go to diff View file