Minor[WIP]: Fix observability cypress tests (#14907)

* modify error alert to get more details on API failure in cypress

* Fix Alert Type for postgres

* revert changes to show API errors in error toast

---------

Co-authored-by: mohitdeuex <mohit.y@deuexsolutions.com>
This commit is contained in:
Aniket Katkar 2024-01-29 12:31:52 +05:30 committed by GitHub
parent c9fab1e4e6
commit 8afde3ee82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -77,9 +77,15 @@ public class ListFilter {
private String getEventSubscriptionAlertType() {
String alertType = queryParams.get("alertType");
return alertType == null
? ""
: String.format("JSON_EXTRACT(json, '$.alertType') = '%s'", alertType);
if (alertType == null) {
return "";
} else {
if (Boolean.TRUE.equals(DatasourceConfig.getInstance().isMySQL())) {
return String.format("JSON_EXTRACT(json, '$.alertType') = '%s'", alertType);
} else {
return String.format("json->>'alertType' = '%s'", alertType);
}
}
}
private String getTestCaseResolutionStatusType() {