mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-07 16:11:30 +00:00
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:
parent
c9fab1e4e6
commit
8afde3ee82
@ -77,9 +77,15 @@ public class ListFilter {
|
|||||||
|
|
||||||
private String getEventSubscriptionAlertType() {
|
private String getEventSubscriptionAlertType() {
|
||||||
String alertType = queryParams.get("alertType");
|
String alertType = queryParams.get("alertType");
|
||||||
return alertType == null
|
if (alertType == null) {
|
||||||
? ""
|
return "";
|
||||||
: String.format("JSON_EXTRACT(json, '$.alertType') = '%s'", alertType);
|
} 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() {
|
private String getTestCaseResolutionStatusType() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user