-
Notifications
You must be signed in to change notification settings - Fork 86
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2275 +/- ##
==========================================
+ Coverage 69.34% 69.43% +0.08%
==========================================
Files 175 175
Lines 16396 16407 +11
==========================================
+ Hits 11370 11392 +22
+ Misses 3932 3923 -9
+ Partials 1094 1092 -2
Continue to review full report at Codecov.
|
workitem/table_join.go
Outdated
// disallowedColumns specified all fields that are allowed to be queried | ||
// from the foreign table. When empty all columns are allowed. | ||
// AllowedColumns specified all fields that are allowed to be queried from | ||
// the foreign table. When empty all columns are allowed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comma, please, after the empty
?
Like When empty, all columns are allowed
. I couldn't understand the sentence at first. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 6000fdb
[test] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you for explaining the changes over a call.
# About This description was generated using this script: ```sh #!/bin/bash set -e GHORG=${GHORG:-fabric8-services} GHREPO=${GHREPO:-fabric8-wit} cat <<EOF # About This description was generated using this script: \`\`\`sh `cat $0` \`\`\` Invoked as: `echo GHORG=${GHORG} GHREPO=${GHREPO} $(basename $0) ${@:1}` # Changes EOF git log \ --pretty="%n**Commit:** https://github.com/${GHORG}/${GHREPO}/commit/%H%n**Author:** %an (%ae)%n**Date:** %aI%n%n%s%n%n%b%n%n----%n" \ --reverse ${@:1} \ | sed -E "s/([\s|\(| ])#([0-9]+)/\1${GHORG}\/${GHREPO}#\2/g" ``` Invoked as: GHORG=fabric8-services GHREPO=fabric8-wit git-log-pr.sh 677410943faa4c4d403f15f9639a8a15b4c19be9..upstream/master # 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 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. ----
**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. ----
Allow to search for work items by
parent.id
andparent.number
.See https://openshift.io/openshiftio/Openshift_io/plan/detail/450.
See #2244.