[Deprecations] Remove 1.8.0 deprecations for 1.11.0 release #8907
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📝 Description
This PR removes all deprecated APIs that were marked in version 1.8.0 for removal in 1.11.0, as per MLRun's deprecation policy.
All deprecated APIs have been removed from the data-flows components including model monitoring, serving, and execution context APIs.
🛠️ Changes Made
API Removals:
rebuild_imagesparameter fromenable_model_monitoring()endpointendpoint_id(old) → useendpoint-id(kebab-case)feature_analysis(old) → usefeature-analysis(kebab-case)batchparameter fromServingRuntime.set_tracking()methodMLClientCtx.get_cached_artifact()methodDocumentation:
docs/serving/custom-model-serving-class.mdto reflect newset_tracking()signature✅ Checklist
🧪 Testing
Unit Tests (All Passing):
Verification:
Coverage:
Existing tests verify the replacement APIs work correctly. No new tests needed for removals.
🔗 References
docs/change-log/index.mdalready documents these deprecations🚨 Breaking Changes?
Breaking Changes:
enable_model_monitoring(rebuild_images=True)delete_model_endpoint(endpoint_id=...)endpoint-id(kebab-case) parameterget_model_endpoint(endpoint_id=..., feature_analysis=...)endpoint-idandfeature-analysis(kebab-case) parametersServingRuntime.set_tracking(batch=100)context.get_cached_artifact(key)context.get_artifact(key)Migration:
Users already received deprecation warnings since 1.8.0. These APIs have been marked as deprecated for 3 releases per MLRun policy.
🔍️ Additional Notes
Files Modified:
server/py/services/api/api/endpoints/model_monitoring.pyserver/py/services/api/api/endpoints/model_endpoints.pymlrun/runtimes/nuclio/serving.pyserver/py/services/api/launcher.pymlrun/execution.pydocs/serving/custom-model-serving-class.mdImpact:
This is part of the standard deprecation cycle. Users have had 3 releases (1.8.0, 1.9.0, 1.10.0) to migrate away from these APIs.