Commit Graph
41 Commits
Author SHA1 Message Date
gouqi11 3db8a61d16 fix(notify): add server_panic topic (#15826) 2023-01-18 23:34:18 +08:00
mhf 48ecb6934d fix(notify): fix server/create bug 2023-01-14 16:22:33 +08:00
Jian QiuandQiu Jian 9654b2c2c4 fix: simplify and accelerate query of notification (#15734)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2023-01-08 09:29:38 +08:00
Jian QiuandQiu Jian 21716cefb5 fix: remove mutual dependency of cloudmux on onecloud (#15621)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-12-27 01:21:26 +08:00
Jian QiuandQiu Jian df373cdaf6 feature: api for sending emails with attachments (#15201)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-10-17 14:30:03 +08:00
Jian QiuandQiu Jian 13d882d8d9 feature: webhook support notification of user update (#14912)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
2022-09-04 05:04:11 +08:00
rainzm c3d1caa1e6 feat(notify): add topic_type in notification details 2022-04-13 15:58:12 +08:00
rainzm 68bb344201 feat(notify): filter notification by topic_type
之前的模型,消息和Event是一一对应的,一个Event可以和多个Topic对应,
为了支持通过Topic Type过滤消息,现在Event和Topic是一一对应的。
2022-04-12 13:52:55 +08:00
rainzm 75aeacef8e fix(notify): enable websocket notifications defaultly for event notify 2022-04-02 18:50:21 +08:00
Qiu Jian 1d354d8919 1. Remove is_rbac_enable option
2. code changes due to interface change
2021-12-02 10:24:23 +08:00
rainzm a71d30cfa6 fix: close it after using sql.Rows 2021-11-25 17:39:50 +08:00
rainzm 2a3dccfe15 feat(notify): add WebconsoleDisable for topic 2021-10-29 19:33:15 +08:00
rainzm 635423218e fix(notify): be compatible with Chinese when generating names 2021-10-28 17:06:07 +08:00
rainzm edcd98e5fe fix(notify): optimization of print log
1. remomve unnecessary log
2. reduce the level of some logs, such as info -> debug
2021-08-03 17:06:55 +08:00
Qu Xuan fa5d5a6eb9 fix(region): update swagger api 2021-07-27 11:46:31 +08:00
Qu Xuan 20b151fbc2 fix(region): remove debug info 2021-07-13 17:25:58 +08:00
rainzm 311d0efb80 feat(notify,region): improvement of news subscription 2021-06-24 10:30:01 +08:00
rainzm 04d930ab2b feat(notify): topic and subscriber at the domain level 2021-06-24 10:29:35 +08:00
rainzm 1d1bb6c381 feat(notify): advanced notify config and robot
1. Notify config has now become a domain resource, so that each domain can have its own configuration about notify.
   The domains has no configuration will use system config.
2. Robot separates from config and becomes a shared project resource. Sending information to robot can
   choose which robot to send to.
2021-06-24 10:29:35 +08:00
ioito f9f0c8f3cb fix: 优化同步,避免长时间加锁 2021-04-23 18:55:02 +08:00
rainzm 6b1f63efc9 fix(notify): be compatible with robots and webhooks 2021-03-19 11:02:32 +08:00
rainzm c7b8d88d75 feat(notify): be compatible with mobile in event notify 2021-02-18 11:21:25 +08:00
rainzm b45edf2f18 feat: support EventNotify 2021-02-18 11:16:57 +08:00
rainzm 09337d9231 fix(notify): send websocket messages according to language preference 2021-01-21 19:42:39 +08:00
rainzm 36bae206ac feat(notify): clean data for receiver_notifications 2021-01-18 19:42:47 +08:00
rainzm a23cd05762 fix(notify): add a time limit for resending notifications 2021-01-18 11:09:44 +08:00
rainzm 4ef01d4329 feat(notify): delete the notification 1 month ago and remove the data migration 2021-01-18 11:07:11 +08:00
rainzm 052b017cf8 feat(notify): show only users under the domain in the recipient details of the message 2021-01-14 18:15:10 +08:00
rainzm 4269a482b8 fix(notify): be compatible with webconsole type hack 2021-01-14 18:14:22 +08:00
rainzm 51f0e6f10a feat(notify): add params for create notification
1. tag, usually used to filter
2. metadata
3. ignore_nonexistent_receiver
2021-01-13 19:36:49 +08:00
rainzm 76e7aa4018 feat(notify): send notifications of different templates according to language 2021-01-11 19:41:23 +08:00
rainzm 07114b53d9 fix(notify): avoid duplication of notification names 2021-01-09 18:42:54 +08:00
rainzm 4f386fea1a fix(notify): fit correctly when send notification via contact 2020-12-23 17:46:48 +08:00
rainzm 3ba52355b8 feat(notify): permit admin sending notification via contact
In this way, you can easily send notification to non-existent receiver.
2020-11-30 17:45:48 +08:00
rainzm 2e094a310a feat(notify): allow empty receivers for robot or webhook contact type 2020-10-19 11:56:50 +08:00
rainzm 0879278714 fix(notify): modify name of notification to avoid duplication 2020-09-22 20:17:39 +08:00
rainzm 0a9a73587e feat(notify): Allow use topic to filter notification 2020-09-03 21:15:38 +08:00
rainzm 9af0fe1fe9 fix(notify): Set default priority 'normal' when creating notification 2020-09-03 15:08:13 +08:00
Rain Zheng 1ed65ddd1a Feature & Fix for Notify (#7714)
* feat(notify): Add 'get-types' action for ConfigManager

The List interface is only open to administrators,
because we don't want anyone other than administrators
to see the details of the notify configuration.
To let general user to kown available notification channels,
add 'get-types' actions of ConfigManager.

* feat(notify): Check the availability of contact type before creating notification

Creating notification with unconfigured contact type will fail at
sending message. Now, prevent creation in advance.

* feat(notify): Add workwx for NotifyNormal/Important/Critical

* feat(notify): Add Notify about robot in notifyclient

* fix(notify): Init ParentContactType for SSubContact

1. ParentContactType of SSubContact with webconsole type is empty.
2. ParentContactType of others SSubContact is mobile.

* fix(notify): Unverify SSubContact when ParentContactType match

* fix(notify): When no data is initialized, exit directly
2020-09-02 16:10:06 +08:00
Rain Zheng 74af85b8eb Fix for Notify (#7692)
* feat(notify): Support update for notify config

* fix(notify): Be compatible with the email configuration

Email config key text changed:
mail.username => username
mail.password => password
mail.smtp.hostname => hostname
mail.smtp.hostport => hostport

* fix(notify): Give users permission to operate receiver

* fix(notify): Allow negative update for receiver

Now, input.Email and input.Mobile can be empty which means
that do not update the corresponding field.

* feat(notify): Support for triggering validation on feishu, dingtalk and worwx

Triggering validation on these contact types means repulling a Contact about them.

* feat(notify): Adds validity period for verify

Verification beyond the expiration date will fail.

* fix(notify): SQuery of scopedomain in FilterByOwner
2020-09-01 10:45:36 +08:00
Rain Zheng 853153c739 Refactor for Notify (#7611)
* refactor(notify): ALL

* feat(climc): Notify v2

* feat: support notify for codegen.py

* delete deprecated code and Maintain SDK compatibility

* Adjust the template for mail validation to support captcha

* fix: The issue of notify refactoring

* add copyright for notifyv2 cli

* Adjust according to the advice of make check

* Remove utils package in notify

* fix import format

* remove redundant Template module

* fix validateCreate and validateUpdate of notifytemplate

* fix update issues of receivers

* fix: Add SetStageComplete in tasks
2020-08-25 17:19:02 +08:00