Commit Graph
22 Commits
Author SHA1 Message Date
Rain 52129c544b fix(notify): Set some default template 2020-02-13 16:54:28 +08:00
Rain 77bbb2bda8 fix: Fix the bug introduced by pr #4921
1. The display problem of contact and notification in notify.
2. The display problem of snat's network info.
2020-02-11 16:51:09 +08:00
Qu Xuan bf0adeb0e2 统一 details -> isList 2020-02-07 18:03:18 +08:00
Qu Xuan 9046117e00 feature: api -> response struct 2020-02-03 18:16:36 +08:00
Rain 7212ce84d1 feature(notify): Display id of notification from its ClusterID 2020-01-18 17:03:52 +08:00
Rain da3797275f fix(notify): Update template 2020-01-14 17:52:42 +08:00
Qiu Jian 45849355e6 fix: list documentation improvements 2020-01-14 04:17:15 +08:00
Rain 0cb2abe8a4 fix(notify): Always update websocket config 2020-01-02 18:13:29 +08:00
Rain 2fd569411d fix(notify): Fix for user cache and list contacts 2019-12-23 20:46:00 +08:00
Rain 6e7e55b930 feat(notify): Add default email tempalte with topic IMAGE_ACTIVED 2019-12-20 11:41:14 +08:00
Rain 61ff025886 Fix(notify): Unified the api params and fix some bug.
1. Config Verify 和 Contact 的 InitalizeData 写得过于直接了。
会导致正常的数据被覆盖。实际上,数据的Init只需要更换数据
库的时候更新,如何判断数据库要被更新了,就是判断新出现的
column 有没有非零值的,如果有,就说明数据库不是第一次更新。

2. 前端的请求经过yunionapi,最终会调用climc里面注册的ResourceManager,
所以这个地方一定要和后端的参数处理统一。之前因为添加 uname
的支持破坏了这个地方的统一,虽然climc可以调用成功但是前端接口调用会失败。

3. Resend 的bug,会导致任务的阻塞。

4. 为了兼容kapacitor对climc
notify的调用,分成了notify和notify-batch两个命令。
2019-12-20 11:39:17 +08:00
Rain 1cc8dacfa6 bugfix(notify): Fix the bug of notify config and verify
1. 优化了报错信息
2. 将验证信息的发送由异步改成了同步,这样前端可以方便的展示验证消息发送失败的原因
3. 主动初始化webconsole的配置信息,使得websocket能够马上正常工作
4. 修复了验证信息发送失败之后联系方式状态不正确的bug
5. 去掉有关email回调地址的api
6. 修复了 update config 首次不起作用的 bug
2019-12-18 19:01:25 +08:00
Rain 59a7b155a3 fix(notify): Fix the bugs of user cache and some api's params 2019-12-17 17:18:22 +08:00
Rain 2222c7779c feat(notify): Available uname in api & Unified template management
1. Uname is availbale now in api via adding "uname=true" in query.
So we can use uname in climc which is much more visual and use uid in
web client which avoid time-consuming remote calls that may occur.

2. Previously, the template for the message was managed by the
individual sending components. Now, these templats was managed uniformly
by Notify Service so that we can easily add and remove.

3. Now, failure to send a validation message will trigger a notification
to the user via websocket.
2019-12-14 16:49:26 +08:00
Qiu Jian 0d487cd601 bufix 20191209 2019-12-12 11:31:47 +08:00
Yousong Zhou 8ba5986d83 goimports: first run 2019-10-28 06:22:17 +00:00
Zexi Li c393c1deb3 fix: services model incorrect nullable define 2019-10-08 22:22:54 +08:00
Rain dc68d23ff6 support Secondary authority management for contact and notification
rpc=>grpc, go=>workerMan

pull dingtalk auto

grpc
2019-09-24 15:33:53 +08:00
Qiu Jian 77c4a53059 feature: 1. ak/sk auth support 2. a full feature s3gateway works with
Cyberduck

注意:以下两个文件的修改还未被官方合并,所以下次make
mod的时候会被覆盖,需要注意checkout恢复:

vendor/github.com/Azure/azure-sdk-for-go/storage/blockblob.go
vendor/github.com/tencentyun/cos-go-sdk-v5/object_part.go
2019-08-30 00:12:39 +08:00
Qiu Jian a177f8c2af fix: use policy match weight to override less specific policy 2019-08-23 21:14:47 +08:00
TangBin a12b1bb2b3 add update vm name method 2019-08-21 15:35:58 +08:00
Rain 0a75f97d68 notify module in Go finished. 2019-08-16 18:54:49 +08:00