mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-11-27 06:01:08 +08:00
Remove health page for now
This commit is contained in:
parent
a9aa992369
commit
4dfae08947
@ -156,6 +156,11 @@ public class AdminController extends HangarComponent {
|
||||
@PermissionRequired(NamedPermission.VIEW_HEALTH)
|
||||
@GetMapping(path = "/health", produces = MediaType.APPLICATION_JSON_VALUE)
|
||||
public HealthReport getHealthReport() {
|
||||
if (true) {
|
||||
//TODO
|
||||
throw new HangarApiException(HttpStatus.INTERNAL_SERVER_ERROR, "Health report is disabled");
|
||||
}
|
||||
|
||||
final List<UnhealthyProject> staleProjects = this.healthService.getStaleProjects();
|
||||
final List<MissingFileCheck> missingFiles = this.healthService.getVersionsWithMissingFiles();
|
||||
final List<JobTable> erroredJobs = this.jobService.getErroredJobs();
|
||||
|
@ -353,7 +353,8 @@ function isRecent(date: string): boolean {
|
||||
<span v-if="authStore.user.headerData.reviewQueueCount !== 0">{{ "(" + authStore.user?.headerData.reviewQueueCount + ")" }}</span>
|
||||
</DropdownItem>
|
||||
<DropdownItem v-if="hasPerms(NamedPermission.VIEW_STATS)" to="/admin/stats">{{ t("nav.user.stats") }}</DropdownItem>
|
||||
<DropdownItem v-if="hasPerms(NamedPermission.VIEW_HEALTH)" to="/admin/health">{{ t("nav.user.health") }}</DropdownItem>
|
||||
<!-- todo -->
|
||||
<!--<DropdownItem v-if="hasPerms(NamedPermission.VIEW_HEALTH)" to="/admin/health">{{ t("nav.user.health") }}</DropdownItem>-->
|
||||
<DropdownItem v-if="hasPerms(NamedPermission.VIEW_LOGS)" to="/admin/log">{{ t("nav.user.log") }}</DropdownItem>
|
||||
<DropdownItem v-if="hasPerms(NamedPermission.MANUAL_VALUE_CHANGES)" to="/admin/settings">
|
||||
{{ t("nav.user.adminSettings") }}
|
||||
|
Loading…
Reference in New Issue
Block a user