Update core to 4909a90aef93ad7efc600faa43e7f0037a04de54 #1054
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.
About
This description was generated using this script:
Invoked as:
Changes
Commit: fabric8-services/fabric8-wit@c0eaf33
Author: Konrad Kleine ([email protected])
Date: 2018-09-05T12:47:43+02:00
Fieldtype.ConvertToModelWithType (fabric8-services/fabric8-wit#2274)
TL;DR
When changing the type of a work item we have to check if fields are compatible. This logic was deeply embedded in the work item repository but it can be outsourced and made available to other pieces of the code as well.
About
ConvertToModelWithType
tries to find way to convert the valuev
from the currentFieldType
to the otherFieldType
in model representation; returnserror
otherwise.Examples
v
is astring
and the otherFieldType
is a string list, we will return the valuev
as an array ofinterface{}
objects.FieldType
is a string list and the otherFieldType
is a singlestring
field, then we check if the valuev
has only one element and return that instead of the whole list.Commit: fabric8-services/fabric8-wit@4909a90
Author: Konrad Kleine ([email protected])
Date: 2018-09-06T13:17:10+02:00
Search by parent (fabric8-services/fabric8-wit#2275)
Allow to search for work items by
parent.id
andparent.number
.See https://openshift.io/openshiftio/Openshift_io/plan/detail/450.
See fabric8-services/fabric8-wit#2244.