Skip to content

Commit ffd987e

Browse files
authored
fix(service): remove doctor check from cache.migrations_check (#3597)
1 parent 1ac3914 commit ffd987e

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

renku/ui/service/controllers/cache_migrations_check.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
from dataclasses import asdict
2121
from pathlib import Path
2222

23-
from renku.command.doctor import doctor_check_command
2423
from renku.command.migrate import MigrationCheckResult, migrations_check
2524
from renku.core.errors import AuthenticationError, MinimumVersionError, ProjectNotFound, RenkuException
2625
from renku.core.util.contexts import renku_project_context
@@ -79,11 +78,7 @@ def _fast_op_without_cache(self):
7978
def renku_op(self):
8079
"""Renku operation for the controller."""
8180
try:
82-
migrations_check_result = migrations_check().build().execute().output
83-
doctor_result = doctor_check_command(with_fix=False).build().execute(fix=False, force=False).output
84-
migrations_check_result.core_compatibility_status.fixes_available = doctor_result[1]
85-
migrations_check_result.core_compatibility_status.issues_found = doctor_result[2]
86-
return migrations_check_result
81+
return migrations_check().build().execute().output
8782
except MinimumVersionError as e:
8883
return MigrationCheckResult.from_minimum_version_error(e)
8984

renku/ui/service/serializers/cache.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -274,12 +274,6 @@ class ProjectCompatibilityResponseDetail(Schema):
274274
migration_required = fields.Boolean(
275275
metadata={"description": "Whether or not a metadata migration is required to be compatible with this service."}
276276
)
277-
fixes_available = fields.Boolean(
278-
metadata={
279-
"description": "Whether automated fixes of metadata (beyond those done during migration) are available."
280-
}
281-
)
282-
issues_found = fields.List(fields.Str, metadata={"description": "Metadata issues found on project."})
283277

284278

285279
class ProjectCompatibilityResponse(OneOfSchema):

0 commit comments

Comments
 (0)