Skip to content

Commit

Permalink
#32 Update attribute description
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Sep 19, 2017
1 parent c41bf4b commit 25d2b92
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions app/org/elastic4play/models/AttachmentAttributeFormat.scala
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ object AttachmentAttributeFormat extends AttributeFormat[Attachment]("attachment
override def definition(dblists: DBLists, attribute: Attribute[Attachment]): Seq[AttributeDefinition] =
Seq(
AttributeDefinition(
s"${attribute.name}.name",
"string",
s"file name of ${attribute.description}",
Nil,
Nil),
s"${attribute.name}.name",
"string",
s"file name of ${attribute.description}",
Nil,
Nil),
AttributeDefinition(
s"${attribute.name}.hash",
"hash",
Expand Down
2 changes: 1 addition & 1 deletion app/org/elastic4play/models/CustomAttributeFormat.scala
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class CustomAttributeFormat extends AttributeFormat[JsValue]("custom") {
} yield AttributeDefinition(
s"${attribute.name}.$fieldName",
tpe,
s"custom field: $description",
description,
options,
Nil)
}
Expand Down
4 changes: 2 additions & 2 deletions app/org/elastic4play/models/MetricsAttributeFormat.scala
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ class MetricsAttributeFormat extends AttributeFormat[JsValue]("metrics") {
val itemObj = item.mapTo[JsObject]
for {
fieldName (itemObj \ "name").asOpt[String]
title (itemObj \ "title").asOpt[String]
description (itemObj \ "description").asOpt[String]
} yield AttributeDefinition(
s"${attribute.name}.$fieldName",
"number",
s"metric: $title",
description,
Nil,
Nil)
}
Expand Down

0 comments on commit 25d2b92

Please sign in to comment.