aboutsummaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2023-11-14 15:51:26 +0100
committerCôme Chilliet <91878298+come-nc@users.noreply.github.com>2023-11-27 15:23:52 +0100
commitad88c04f2de08e2adda5dc2031699d892466fd94 (patch)
tree75df26efb51420f3e9120108de678dc0feaa68e2 /core/js
parent2cb1c0f2dc0a5678de142c2791fde25475eb1632 (diff)
downloadnextcloud-server-ad88c04f2de08e2adda5dc2031699d892466fd94.tar.gz
nextcloud-server-ad88c04f2de08e2adda5dc2031699d892466fd94.zip
Migrate missing index database check to new API
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'core/js')
-rw-r--r--core/js/setupchecks.js12
-rw-r--r--core/js/tests/specs/setupchecksSpec.js17
2 files changed, 0 insertions, 29 deletions
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js
index 5cd2cadaa2d..f926d1534a5 100644
--- a/core/js/setupchecks.js
+++ b/core/js/setupchecks.js
@@ -258,18 +258,6 @@
type: OC.SetupChecks.MESSAGE_TYPE_WARNING
});
}
- if (data.missingIndexes.length > 0) {
- var listOfMissingIndexes = "";
- data.missingIndexes.forEach(function(element){
- listOfMissingIndexes += '<li>';
- listOfMissingIndexes += t('core', 'Missing index "{indexName}" in table "{tableName}".', element);
- listOfMissingIndexes += '</li>';
- });
- messages.push({
- msg: t('core', 'The database is missing some indexes. Due to the fact that adding indexes on big tables could take some time they were not added automatically. By running "occ db:add-missing-indices" those missing indexes could be added manually while the instance keeps running. Once the indexes are added queries to those tables are usually much faster.') + '<ul>' + listOfMissingIndexes + '</ul>',
- type: OC.SetupChecks.MESSAGE_TYPE_INFO
- })
- }
if (data.missingPrimaryKeys.length > 0) {
var listOfMissingPrimaryKeys = "";
data.missingPrimaryKeys.forEach(function(element){
diff --git a/core/js/tests/specs/setupchecksSpec.js b/core/js/tests/specs/setupchecksSpec.js
index 9cba013bb87..d48f92d5dc3 100644
--- a/core/js/tests/specs/setupchecksSpec.js
+++ b/core/js/tests/specs/setupchecksSpec.js
@@ -229,7 +229,6 @@ describe('OC.SetupChecks tests', function() {
hasPassedCodeIntegrityCheck: true,
OpcacheSetupRecommendations: [],
isSettimelimitAvailable: true,
- missingIndexes: [],
missingPrimaryKeys: [],
cronErrors: [],
cronInfo: {
@@ -281,7 +280,6 @@ describe('OC.SetupChecks tests', function() {
hasPassedCodeIntegrityCheck: true,
OpcacheSetupRecommendations: [],
isSettimelimitAvailable: true,
- missingIndexes: [],
missingPrimaryKeys: [],
cronErrors: [],
cronInfo: {
@@ -333,7 +331,6 @@ describe('OC.SetupChecks tests', function() {
hasPassedCodeIntegrityCheck: true,
OpcacheSetupRecommendations: [],
isSettimelimitAvailable: true,
- missingIndexes: [],
missingPrimaryKeys: [],
cronErrors: [],
cronInfo: {
@@ -385,7 +382,6 @@ describe('OC.SetupChecks tests', function() {
hasPassedCodeIntegrityCheck: true,
OpcacheSetupRecommendations: [],
isSettimelimitAvailable: true,
- missingIndexes: [],
missingPrimaryKeys: [],
cronErrors: [],
cronInfo: {
@@ -435,7 +431,6 @@ describe('OC.SetupChecks tests', function() {
hasPassedCodeIntegrityCheck: true,
OpcacheSetupRecommendations: [],
isSettimelimitAvailable: true,
- missingIndexes: [],
missingPrimaryKeys: [],
cronErrors: [],
cronInfo: {
@@ -488,7 +483,6 @@ describe('OC.SetupChecks tests', function() {
hasPassedCodeIntegrityCheck: true,
OpcacheSetupRecommendations: [],
isSettimelimitAvailable: false,
- missingIndexes: [],
missingPrimaryKeys: [],
cronErrors: [],
cronInfo: {
@@ -539,7 +533,6 @@ describe('OC.SetupChecks tests', function() {
hasPassedCodeIntegrityCheck: true,
OpcacheSetupRecommendations: [],
isSettimelimitAvailable: true,
- missingIndexes: [],
missingPrimaryKeys: [],
cronErrors: [],
cronInfo: {
@@ -621,7 +614,6 @@ describe('OC.SetupChecks tests', function() {
hasPassedCodeIntegrityCheck: true,
OpcacheSetupRecommendations: [],
isSettimelimitAvailable: true,
- missingIndexes: [],
missingPrimaryKeys: [],
cronErrors: [],
cronInfo: {
@@ -678,7 +670,6 @@ describe('OC.SetupChecks tests', function() {
hasPassedCodeIntegrityCheck: true,
OpcacheSetupRecommendations: ['recommendation1', 'recommendation2'],
isSettimelimitAvailable: true,
- missingIndexes: [],
missingPrimaryKeys: [],
cronErrors: [],
cronInfo: {
@@ -728,7 +719,6 @@ describe('OC.SetupChecks tests', function() {
hasPassedCodeIntegrityCheck: true,
OpcacheSetupRecommendations: [],
isSettimelimitAvailable: true,
- missingIndexes: [],
missingPrimaryKeys: [],
cronErrors: [],
cronInfo: {
@@ -782,7 +772,6 @@ describe('OC.SetupChecks tests', function() {
hasPassedCodeIntegrityCheck: true,
OpcacheSetupRecommendations: [],
isSettimelimitAvailable: true,
- missingIndexes: [],
missingPrimaryKeys: [],
cronErrors: [],
cronInfo: {
@@ -833,7 +822,6 @@ describe('OC.SetupChecks tests', function() {
hasPassedCodeIntegrityCheck: true,
OpcacheSetupRecommendations: [],
isSettimelimitAvailable: true,
- missingIndexes: [],
missingPrimaryKeys: [],
cronErrors: [],
cronInfo: {
@@ -881,7 +869,6 @@ describe('OC.SetupChecks tests', function() {
hasPassedCodeIntegrityCheck: true,
OpcacheSetupRecommendations: [],
isSettimelimitAvailable: true,
- missingIndexes: [],
missingPrimaryKeys: [],
cronErrors: [],
cronInfo: {
@@ -932,7 +919,6 @@ describe('OC.SetupChecks tests', function() {
hasPassedCodeIntegrityCheck: true,
OpcacheSetupRecommendations: [],
isSettimelimitAvailable: true,
- missingIndexes: [],
missingPrimaryKeys: [],
cronErrors: [],
cronInfo: {
@@ -983,7 +969,6 @@ describe('OC.SetupChecks tests', function() {
hasPassedCodeIntegrityCheck: true,
OpcacheSetupRecommendations: [],
isSettimelimitAvailable: true,
- missingIndexes: [],
missingPrimaryKeys: [],
cronErrors: [],
cronInfo: {
@@ -1033,7 +1018,6 @@ describe('OC.SetupChecks tests', function() {
hasPassedCodeIntegrityCheck: true,
OpcacheSetupRecommendations: [],
isSettimelimitAvailable: true,
- missingIndexes: [],
missingPrimaryKeys: [],
cronErrors: [],
cronInfo: {
@@ -1090,7 +1074,6 @@ describe('OC.SetupChecks tests', function() {
hasPassedCodeIntegrityCheck: true,
OpcacheSetupRecommendations: [],
isSettimelimitAvailable: true,
- missingIndexes: [],
missingPrimaryKeys: [],
cronErrors: [],
cronInfo: {