Skip to content

Commit

Permalink
add default favorites tag to traits tag return
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris T committed Jul 12, 2021
1 parent 0f0695f commit d822f2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/breedinginsight/services/TraitService.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ public class TraitService {
private DSLContext dsl;
private TraitValidatorError traitValidatorError;

private String FAVORITES_TAG = "favorites";

@Inject
public TraitService(TraitDAO traitDao, MethodDAO methodDao, ScaleDAO scaleDao, ObservationDAO observationDao, ProgramService programService,
ProgramOntologyService programOntologyService, ProgramObservationLevelService programObservationLevelService,
Expand Down Expand Up @@ -459,6 +461,8 @@ public List<String> getAllTraitTags(UUID programId) {
tags.addAll(trait.getTags());
}
}

tags.add(FAVORITES_TAG);
return new ArrayList<>(tags);
}
}

0 comments on commit d822f2b

Please sign in to comment.