Commit Graph
16 Commits
Author SHA1 Message Date
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