From 100a88f1bed275e32e6e35311dd9b1407609a4b8 Mon Sep 17 00:00:00 2001 From: Vipul Date: Wed, 27 Nov 2024 10:33:07 -0800 Subject: [PATCH 1/2] set tags as empty if not present --- ads/aqua/modeldeployment/deployment.py | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/ads/aqua/modeldeployment/deployment.py b/ads/aqua/modeldeployment/deployment.py index e4de392df..4f5023dae 100644 --- a/ads/aqua/modeldeployment/deployment.py +++ b/ads/aqua/modeldeployment/deployment.py @@ -185,7 +185,7 @@ def create( tags[tag] = aqua_model.freeform_tags[tag] tags.update({Tags.AQUA_MODEL_NAME_TAG: aqua_model.display_name}) - tags.update({Tags.TASK: aqua_model.freeform_tags.get(Tags.TASK, None)}) + tags.update({Tags.TASK: aqua_model.freeform_tags.get(Tags.TASK, UNKNOWN)}) # Set up info to get deployment config config_source_id = model_id @@ -533,16 +533,22 @@ def list(self, **kwargs) -> List["AquaDeployment"]: return results @telemetry(entry_point="plugin=deployment&action=delete", name="aqua") - def delete(self,model_deployment_id:str): - return self.ds_client.delete_model_deployment(model_deployment_id=model_deployment_id).data + def delete(self, model_deployment_id: str): + return self.ds_client.delete_model_deployment( + model_deployment_id=model_deployment_id + ).data - @telemetry(entry_point="plugin=deployment&action=deactivate",name="aqua") - def deactivate(self,model_deployment_id:str): - return self.ds_client.deactivate_model_deployment(model_deployment_id=model_deployment_id).data + @telemetry(entry_point="plugin=deployment&action=deactivate", name="aqua") + def deactivate(self, model_deployment_id: str): + return self.ds_client.deactivate_model_deployment( + model_deployment_id=model_deployment_id + ).data - @telemetry(entry_point="plugin=deployment&action=activate",name="aqua") - def activate(self,model_deployment_id:str): - return self.ds_client.activate_model_deployment(model_deployment_id=model_deployment_id).data + @telemetry(entry_point="plugin=deployment&action=activate", name="aqua") + def activate(self, model_deployment_id: str): + return self.ds_client.activate_model_deployment( + model_deployment_id=model_deployment_id + ).data @telemetry(entry_point="plugin=deployment&action=get", name="aqua") def get(self, model_deployment_id: str, **kwargs) -> "AquaDeploymentDetail": From cc36de1e6e2e2c953d57b2a7654a7a0d5171ddeb Mon Sep 17 00:00:00 2001 From: Vipul Date: Wed, 27 Nov 2024 12:41:31 -0800 Subject: [PATCH 2/2] release ads v2.12.8 --- docs/source/release_notes.rst | 5 +++++ pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst index ca9ca58b9..a70d190a8 100644 --- a/docs/source/release_notes.rst +++ b/docs/source/release_notes.rst @@ -2,6 +2,11 @@ Release Notes ============= +2.12.8 +------- +Release date: November 27, 2024 +* Fixed bugs in the AI Quick Actions Model Deployment for models registered via Object Storage. + 2.12.7 ------- Release date: November 20, 2024 diff --git a/pyproject.toml b/pyproject.toml index 218e44181..72e9de30d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,7 @@ build-backend = "flit_core.buildapi" # Required name = "oracle_ads" # the install (PyPI) name; name for local build in [tool.flit.module] section below -version = "2.12.7" +version = "2.12.8" # Optional description = "Oracle Accelerated Data Science SDK"