Skip to content

Commit 20b5589

Browse files
Panaetiusolevski
authored andcommitted
fix(service): remove doctor check from cache.migrations_check (#3597)
1 parent 5624573 commit 20b5589

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
@@ -71,11 +70,7 @@ def _fast_op_without_cache(self):
7170
def renku_op(self):
7271
"""Renku operation for the controller."""
7372
try:
74-
migrations_check_result = migrations_check().build().execute().output
75-
doctor_result = doctor_check_command(with_fix=False).build().execute(fix=False, force=False).output
76-
migrations_check_result.core_compatibility_status.fixes_available = doctor_result[1]
77-
migrations_check_result.core_compatibility_status.issues_found = doctor_result[2]
78-
return migrations_check_result
73+
return migrations_check().build().execute().output
7974
except MinimumVersionError as e:
8075
return MigrationCheckResult.from_minimum_version_error(e)
8176

renku/ui/service/serializers/cache.py

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

285279

286280
class ProjectCompatibilityResponse(OneOfSchema):

0 commit comments

Comments
 (0)