Skip to content

Commit

Permalink
Merge pull request #23 from KPMP/KPMP-5201_add_release_date_info
Browse files Browse the repository at this point in the history
KPMP-5201: added recently released date information
  • Loading branch information
rlreamy authored Mar 15, 2024
2 parents c48e6af + 05af4dd commit cb71e70
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public class RepositoryDatasetService {
@Value("${enterprise-search.engine.name}")
private String enterpriseSearchEngineName;
private RepositoryFileDatasetRepository fileRepo;
@Value("${recently-released-date}")
private String recentlyReleasedDate;

private RestTemplate restTemplate;
private Environment env;
Expand Down Expand Up @@ -82,7 +84,7 @@ public List<RepositoryDatasetDisplay> getRepositoryDataset() throws Exception {
RepositoryDatasetDisplay displayFile = new RepositoryDatasetDisplay(repositoryDataset);

if (Double.compare(repositoryDataset.getReleaseVersion(), maxReleaseVersion) == 0) {
displayFile.setReleaseVersion("Recently Released");
displayFile.setReleaseVersion("Recently Released - " + recentlyReleasedDate);
} else {
displayFile.setReleaseVersion(null);
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ spring.jpa.show_sql=false
server.port=3030
spring.main.allow-bean-definition-overriding=true
enterprise-search.host=http://enterprisesearch:3002
enterprise-search.engine.name=atlas-repository
enterprise-search.engine.name=atlas-repository
recently-released-date=${RECENTLY_RELEASED_DATE}

0 comments on commit cb71e70

Please sign in to comment.