[ML] Excludes metadata fields from jobs caps fields service response (#96548)

This commit is contained in:
Pete Harverson 2021-04-08 14:16:31 +01:00 committed by GitHub
parent 0316787ead
commit 75e4aeedbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,7 +80,7 @@ class FieldsService {
if (firstKey !== undefined) {
const field = fc[firstKey];
// add to the list of fields if the field type can be used by ML
if (supportedTypes.includes(field.type) === true) {
if (supportedTypes.includes(field.type) === true && field.metadata_field !== true) {
fields.push({
id: k,
name: k,