Skip to content

Commit

Permalink
Update core to 4909a90aef93ad7efc600faa43e7f0037a04de54 (#1054)
Browse files Browse the repository at this point in the history
**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 value `v` from the current `FieldType` to the other `FieldType` in model representation; returns `error` otherwise.

# Examples

* For example if the given value `v` is a `string` and the other `FieldType` is a string list, we will return the value `v` as an array of `interface{}` objects. 
* Let's say the current `FieldType` is a string list and the other `FieldType` is a single `string` field, then we check if the value `v` 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` and `parent.number`.

See https://openshift.io/openshiftio/Openshift_io/plan/detail/450.
See fabric8-services/fabric8-wit#2244.

----
  • Loading branch information
kwk authored Sep 6, 2018
1 parent 7e768e5 commit e88fc14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dsaas-services/core.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
services:
- hash: 677410943faa4c4d403f15f9639a8a15b4c19be9
- hash: 4909a90aef93ad7efc600faa43e7f0037a04de54
name: fabric8-wit
path: /openshift/core.app.yaml
url: https://github.com/fabric8-services/fabric8-wit/
Expand Down

0 comments on commit e88fc14

Please sign in to comment.