diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 1645e2276..8e04713c2 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -407,7 +407,8 @@ "component_device": "Device", "component_firmware": "Firmware", "component_file": "File", - "dates": "Dates" + "dates": "Dates", + "reindex": "Rebuild index(es)" }, "admin": { "configuration": "Configuration", @@ -615,7 +616,24 @@ "jira_username": "Jira user (service account). The user must be provisioned to the appropriate jira instance and permitted to create issues.", "jira_password": "Jira password", "jira_ticket_type": "Jira ticket type", - "jira_project_key": "Jira project key" + "jira_project_key": "Jira project key", + "reindex_projects": "Projects", + "reindex_components": "Components", + "reindex_service_components": "Service components", + "reindex_vulnerabilities": "Vulnerabilities", + "reindex_licenses": "Licenses", + "reindex_cpes": "CPE", + "reindex_vulnerable_software": "Vulnerable software", + "reindex_submitted": "Reindex request submitted", + "reindex_error": "Error encountered while submitting reindex request", + "index_general_description": "Dependency Track uses Apache Lucene to enable full-text search on various entities like projects or vulnerabilities.", + "index_use_cases": "The full-text search feature is principally used for the search API (i.e. all the indexes) and internal analyzer fuzzy matching on CPE (i.e. the vulnerable software index).", + "index_issues_description": "The lucene indexes can degrade or drift from Dependency Track database over time. Even though DT does its best to minimize the drift, the administrative features below are provided to check or restore the indexes if need be. It must be used with caution.", + "index_consistency_check_description": "You can enable a periodic background task that will check that all indexes exists, are not corrupted and that their difference with Dependency Track database is under a defined threshold percentage. Any check failure will trigger a rebuild of the corresponding index. A restart is required to take cadence modification into account.", + "index_rebuild_description" : "You can selectively trigger an immediate rebuild of some or all indexes. The index rebuild will be perform by an asynchronous tasks. You can check the progress using Dependency Track logs.", + "enable_index_consistency_check": "Enable periodic consistency check", + "index_consistency_check_cadence": "Cadence (in minutes)", + "index_consistency_check_threshold": "Delta threshold (in percentage)" }, "condition": { "warning": "Warning", diff --git a/src/validation/index.js b/src/validation/index.js index b14f43f4b..e389636e2 100644 --- a/src/validation/index.js +++ b/src/validation/index.js @@ -1,5 +1,5 @@ import { extend, configure } from 'vee-validate' -import { required, confirmed, min_value } from 'vee-validate/dist/rules' +import { required, confirmed, min_value, max_value } from 'vee-validate/dist/rules' import i18n from '../i18n' @@ -11,3 +11,4 @@ configure({ extend('required', required); extend('confirmed', confirmed); extend('min_value', min_value); +extend('max_value', max_value); diff --git a/src/views/administration/AdminMenu.vue b/src/views/administration/AdminMenu.vue index 670bd6152..426e73a24 100644 --- a/src/views/administration/AdminMenu.vue +++ b/src/views/administration/AdminMenu.vue @@ -68,6 +68,11 @@ component: 'TaskScheduler', name: this.$t('admin.task_scheduler'), href: "#taskSchedulerTab" + }, + { + component: 'Search', + name: this.$t('message.search'), + href: "#searchTab" } ] }, diff --git a/src/views/administration/Administration.vue b/src/views/administration/Administration.vue index 81331cda7..07248a17c 100644 --- a/src/views/administration/Administration.vue +++ b/src/views/administration/Administration.vue @@ -25,6 +25,7 @@ import Jira from "./configuration/JiraConfig"; import InternalComponents from "./configuration/InternalComponents"; import TaskScheduler from "./configuration/TaskScheduler.vue"; + import Search from "./configuration/Search.vue"; // Analyzer plugins import InternalAnalyzer from "./analyzers/InternalAnalyzer"; import OssIndexAnalyzer from "./analyzers/OssIndexAnalyzer"; @@ -64,7 +65,7 @@ components: { EventBus, AdminMenu, - General, BomFormats, Email, Jira, InternalComponents, TaskScheduler, + General, BomFormats, Email, Jira, InternalComponents, TaskScheduler, Search, InternalAnalyzer, OssIndexAnalyzer, VulnDbAnalyzer, SnykAnalyzer, VulnSourceNvd, VulnSourceGitHubAdvisories, VulnSourceOSVAdvisories, Cargo, Composer, Gem, GoModules, Hex, Maven, Npm, Nuget, Python, diff --git a/src/views/administration/configuration/Search.vue b/src/views/administration/configuration/Search.vue new file mode 100644 index 000000000..5cca1f118 --- /dev/null +++ b/src/views/administration/configuration/Search.vue @@ -0,0 +1,140 @@ + + +