如何为新用户订阅通知? [英] How to subscribe new user to notifications?

查看:141
本文介绍了如何为新用户订阅通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经设置了SonarQube 5.2安装,并且我想默认为新用户启用通知。我的意思是用户个人资料中的这些复选框
如果有人有类似问题,我在文档,可用的插件,互联网上找不到答案。到目前为止,我发现的是SQ数据库中的用户属性:

I have set up SonarQube 5.2 installation, and I want to enable notifications for new users by default. What I mean is these checkboxes in user profile. I couldn't find an answer in the documentation, the available plugins, the Internet, if anybody had a similar question. What I have found so far is user properties in the SQ database:

sonar=# select * from properties where user_id=6;
 id |                          prop_key                           | resource_id | text_value | user_id 
----+-------------------------------------------------------------+-------------+------------+---------
 85 | favourite                                                   |        3260 |            |       6
 91 | notification.ChangesOnMyIssue.EmailNotificationChannel      |             | true       |       6
 92 | notification.NewFalsePositiveIssue.EmailNotificationChannel |             | true       |       6
 93 | notification.SQ-MyNewIssues.EmailNotificationChannel        |             | true       |       6
 94 | notification.NewIssues.EmailNotificationChannel             |             | true       |       6
 95 | notification.NewAlerts.EmailNotificationChannel             |             | true       |       6
(6 rows)

我什至都在搜索源代码,但是还没有找到了如何在用户注册时设置用户属性。最好的方法是什么?

I have even searched through the source code, but haven't found how to set user properties on user registration. What is the best way to achieve that?

推荐答案

文档已针对这种情况进行了更新:没有提供用于订阅其他用户通知的功能。每个用户必须选择自己接收通知。

The documentation has been updated to be specific on this case: no functionality is provided to subscribe another user to notifications. Each user must choose to receive notifications himself.

这篇关于如何为新用户订阅通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆