Revision 61440
Added by Konstantina Galouni over 2 years ago
MonitorServiceCheckDeployController.java | ||
---|---|---|
14 | 14 |
import org.springframework.web.bind.annotation.RequestMethod; |
15 | 15 |
import org.springframework.web.bind.annotation.RestController; |
16 | 16 |
|
17 |
import java.util.Date; |
|
17 | 18 |
import java.util.HashMap; |
18 | 19 |
import java.util.Map; |
19 | 20 |
|
... | ... | |
55 | 56 |
response.put("monitorservice.mongodb.password", mongoConfig.getPassword() == null ? null : "[unexposed value]"); |
56 | 57 |
// response.put("Define also", "monitorservice.mongodb.username, monitorservice.mongodb.password"); |
57 | 58 |
|
59 |
response.put("Date of build", new Date().toString()); |
|
60 |
|
|
58 | 61 |
return response; |
59 | 62 |
} |
60 | 63 |
} |
Also available in: Unified diff
[Trunk | Monitor Service]:
1. MonitorServiceCheckDeployController.java: In method "checkEverything()" (/health_check/advanced), added "Date of build" field with current date.
2. Indicator.java: In method "copyFromDefault()" set visibility of new indicator to "RESTRICTED" (instead of copying the default indicator's visibility).
3. IndicatorController.java: [NEW] Bulk add for indicators (imported from file) - get charts and numbers in a list and create chart and number sections to put them.
a. Added API call method "saveBulkIndicators()" (POST /{stakeholderId}/{topicId}/{categoryId}/{subcategoryId}/save-bulk).
b. Added helper methods "createSectionsAndSaveBulk()", "createSection()", "saveIndicatorAndAddInSection()".