zalando-zmon / zmon-controller

ZMON UI and REST API
https://docs.zmon.io/
Other
21 stars 17 forks source link

Filtering by Team in Alert Definitions not working #38

Closed elauria closed 8 years ago

elauria commented 8 years ago

replicate: 1 .- go to zmon demo alert definitions page 2.- set team filter to ZMON (only available team to choose from). 3.- After selection backend returns 500 error.

hjacobs commented 8 years ago

:+1:

Jan-M commented 8 years ago
Caused by: org.postgresql.util.PSQLException: ERROR: function get_alert_definitions_by_team(character varying, text[]) does not exist
  Hint: No function matches the given name and argument types. You might need to add explicit type casts.
  Position: 15
    at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2198) ~[postgresql-9.3-1102-jdbc41.jar!/:na]
    at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1927) ~[postgresql-9.3-1102-jdbc41.jar!/:na]
    at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255) ~[postgresql-9.3-1102-jdbc41.jar!/:na]
    at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:561) ~[postgresql-9.3-1102-jdbc41.jar!/:na]
    at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:419) ~[postgresql-9.3-1102-jdbc41.jar!/:na]
    at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:304) ~[postgresql-9.3-1102-jdbc41.jar!/:na]
    at com.jolbox.bonecp.PreparedStatementHandle.executeQuery(PreparedStatementHandle.java:174) ~[bonecp-0.8.0.RELEASE.jar!/:na]
    at org.springframework.jdbc.core.JdbcTemplate$1.doInPreparedStatement(JdbcTemplate.java:688) ~[spring-jdbc-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
    at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:629) ~[spring-jdbc-4.2.4.RELEASE.jar!/:4.2.4.RELEASE]
    ... 105 common frames omitted

once again bitten by jdbc/typemapper issues I believe.

Jan-M commented 8 years ago

Hmm but looks like @hjacobs already created a function with above signature.

Is this deployed?

Jan-M commented 8 years ago

this is fixed in the current code.