mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-06 15:43:04 +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() {
|
||||
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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user