Skip to content

Commit

Permalink
Added name identifier for the Score entity AtlasOfLivingAustralia/fie…
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisala committed Dec 8, 2024
1 parent e957a95 commit b0bc704
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion grails-app/domain/au/org/ala/ecodata/Score.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ class Score {
/** The label for this score when displayed */
String label

/** Unique human name for this score to be used as a more descriptive alternative to the scoreId in forms/configuration. Must be unique if present */
String name

/** A more detailed description of the score and how it should be interpreted */
String description

Expand Down Expand Up @@ -53,6 +56,7 @@ class Score {
tags: nullable:true
label unique: true
scoreId unique: true
name nullable: true, unique: true
}

static mapping = {
Expand Down Expand Up @@ -88,7 +92,8 @@ class Score {
entity:entity,
externalId:externalId,
entityTypes:entityTypes,
tags:tags
tags:tags,
name:name
]
if (includeConfig) {
scoreMap.configuration = configuration
Expand Down

0 comments on commit b0bc704

Please sign in to comment.