26 Commits
Author SHA1 Message Date
rainzm c1ef5f28f2 feat(notify): filter receivers who join the project under the domain where the requester is currently located 2021-04-07 16:17:56 +08:00
rainzm 755e00750a feat: support EventNotify 2021-02-18 11:45:15 +08:00
rainzm 50be5c5f77 feat(notify): add subscription in notify 2021-02-18 11:45:15 +08:00
rainzm 5f9cee49b0 feat(notify): add default area code for mobile 2021-01-29 16:43:27 +08:00
rainzm bdb6df6e4d feat(notify): support international mobile 2021-01-22 20:04:15 +08:00
rainzm f9fa70d32a feat(notify): add params for create notification
1. tag, usually used to filter
2. metadata
3. ignore_nonexistent_receiver
2021-01-13 20:01:12 +08:00
rainzm ebc32e693d feat(notify): send notifications of different templates according to language 2021-01-11 19:43:18 +08:00
rainzm 6ed0b5e9fa feat(notify): add intellij-get for receiver 2020-12-09 16:45:23 +08:00
Qu Xuan 54537e65c3 fix(region): code gen api error 2020-12-01 11:26:34 +08:00
Qiu Jian 48e40fa5a9 update api models 2020-10-26 23:58:02 +08:00
rainzm 264b9ef39f feat: add NotifyWebhook in notifyclient 2020-10-19 16:00:12 +08:00
rainzm 012d9b1588 feat(notify): support webhook contact type 2020-10-17 18:03:19 +08:00
rainzm 89ec96567b feat(notify): replace VerifiedContactTypes with VerifiedInfos in ReceiverDetails
VerifiedInfos will provide Note to display.
2020-09-03 15:08:13 +08:00
yunion-ci-robot bb68d7f2c2 Merge pull request #7587 from ioito/feature/qx-dns-interface
feature: add dns interface
2020-09-02 18:01:08 +08:00
Qu Xuan f251559c39 feature: add dns interface 2020-09-02 16:30:05 +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
Qu Xuan a07b112be1 feature: CloudId服务支持 2020-06-21 11:30:01 +08:00
rainzm ee85dec1ce fix: Support filtering notification with contactType 2020-05-22 20:06:07 +08:00
Qiu Jian 5e6070d809 feature: make webconsole's api_server option common 2020-03-30 15:29:58 +08:00
Rain 006ac48d6e fix(notify): Compatible with changes about list in schema 2020-03-19 14:23:58 +08:00
Rain 0cb0ba6f1b feat(notify): Compatibility and repair 2020-03-18 20:51:20 +08:00
Qiu Jian cf5498ac24 feature: recode structuralized GetExtraDetails and ListItemFilter 2020-03-04 14:01:25 +08:00
Rain 762fcd90cf 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:49:36 +08:00
Qu Xuan 76d974f6d8 feature: api -> response struct 2020-02-03 10:22:44 +08:00