MCPcopy Create free account
hub / github.com/apache/devlake / fromCustomizedField

Function fromCustomizedField

backend/plugins/customize/api/field.go:65–75  ·  view source on GitHub ↗
(cf models.CustomizedField)

Source from the content-addressed store, hash-verified

63}
64
65func fromCustomizedField(cf models.CustomizedField) fieldResponse {
66 return fieldResponse{
67 Field: Field{
68 ColumnName: cf.ColumnName,
69 DisplayName: cf.DisplayName,
70 DataType: cf.DataType.String(),
71 Description: cf.Description,
72 },
73 IsCustomizedField: strings.HasPrefix(cf.ColumnName, "x_"),
74 }
75}
76
77type Handlers struct {
78 svc *service.Service

Callers 1

ListFieldsMethod · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected