mysql - TFS2015 - 显示所有共享和用户拥有的通知及其所有者
问题描述
我正在尝试编写一个 SQL 查询,该查询将在 TFS 2015 On-Premise 上的更改通知中列出所有共享和用户拥有的 VSTS。根据我的研究,通知应该存储在 tbl_EventSubscription 表中,但那里没有关于事件是用户拥有还是共享的信息,只是订阅者的 SubscriptionID,我不知道在哪里搜索所有者。
如果有可能用 REST API 解决这个问题,它也会有所帮助。
任何帮助或指导将不胜感激。
解决方案
好吧,我想我明白了:
SELECT Notif.Id AS 'Notification Id',
Notif.EventType AS 'Event Type',
Notif.Classification AS 'Notification Classification',
Const.IdentityDisplayName AS 'Notification Owner'
FROM [Tfs_Development].[dbo].[tbl_EventSubscription] Notif
LEFT JOIN [Tfs_Development].[dbo].[Constants] Const ON Const.TeamFoundationId = Notif.SubscriberId
ORDER BY Notif.Id
@PatrickLu-MSFT 我不知道为什么,但我在 Tfs_Configuration 中没有 tbl_security_identity_cache,但我在 Tfs_Development 中有它并且它是空的。我使用 Tfs_Configuration.dbo.tbl_Identity 作为用户名的参考,但它没有返回团队订阅者甚至一些用户的名称,所以最后我将使用我的解决方案。
谢谢您的帮助。
推荐阅读
- r - Using Caret package with neuralnet as a method
- php - Permission issue: cannot upload a photo
- concurrency - 如何为两种类型的交换同时执行相同的代码块,但对于相同类型的交换始终如一?
- c# - 贝尔格莱德 SqlClient -> 响应不会完成
- fluentd - fluentd 加载自定义解析器失败
- kotlin - 由于ripple-lib-java 未维护,您如何手动签署交易?
- go - ld.exe:当我尝试编译 go-scrap 时找不到 -lscrap_sys
- c# - Azure ServiceBus:等到所有订阅者都处理完一条消息
- flutter - Flutter 导航,重新打开页面而不是再次推送
- r - 修剪意味着 R 中的方差分析