在 TFS 中为项目编辑其他用户的警报 [英] Edit other users' alerts for a project in TFS

查看:30
本文介绍了在 TFS 中为项目编辑其他用户的警报的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我出乎意料地接替了我们 TFS 系统的前任管理员,他突然离开了公司.在这发生之前,我成为了 TFS 和 TFS 应用程序服务器的管理员,但至少还有一件事我无法弄清楚.似乎在前任管理员的帐户下设置了一些警报,每当签入文件时都会向我们所有人发送电子邮件.我不能确切地说这个订阅是什么样的,但我猜它要么在项目的项目警报"对话框,或者是使用 TFS Power Tools 的警报编辑器设置的警报.我看不到其他用户在这些区域设置的警报.除了直接编辑 tbl_subscription 表以尝试删除或更改这些警报之外,还有什么办法吗?(我想我在那个 SQL 表中看到了警报,但我不想直接破解数据库.)

I am unexpectedly taking over for the previous administrator of our TFS system who left the company rather abruptly. I was made an admin of TFS and on the TFS application server before this happened, but there is still at least one thing I can't figure out. It seems there are some alerts set up under the previous administrator's account that sends email to all of us whenever a file is checked in. I can't say for sure exactly what this subscription looks like, but I'm guessing it's either in the "Project Alerts" dialog for the project, or it's an alert set up with TFS Power Tools' Alert Editor. I can't see alerts set up by other users in these areas. Is there any way short of directly editing the tbl_subscription table directly to try removing or changing these alerts? (I think I see the alert in that SQL table, but I don't want to directly hack the database.)

推荐答案

欢迎来到 TFS 的世界 - 很抱歉,您的洗礼将成为一场大火.

Welcome to the world of TFS - sorry that your baptism is going to be one of fire.

您对直接编辑数据库保持警惕是正确的 - 最好避免使用 TFS.TFS 事件订阅工具(最初制作 由这个网站创建者) 应该能够完成这项工作,但我认为它可能有点过时并且可以用一些爱来完成.上次我尝试过它对我不起作用 - 但我认为从那时起它可能已经更新.

You are correct to be wary of editing the database directly - always best avoided with TFS. The TFS Event Subscription tool (originally crafted by this sites creator) should be able to do the job, but I think that it may be a bit out of date and could do with some love. Last time I tried it wasn't working for me - but I think it might have been updated since then.

如果该工具对您不起作用,那么这是一个您实际上可以直接使用网络服务的实例(这就是该工具在幕后所做的工作).

If that tool doesn't work for you then this is one instance where you can actually get away with using the web services directly (which is what that tool does under the hood).

CAVEAT - 这已通过在我的机器上工作"保证进行测试.但是如果你删除了错误的订阅,那么你就有可能搞砸你的 TFS 安装.因此采取备份和谨慎行事...

CAVEAT - This is tested with the "Works on My Machine" guarantee. But if you remove the wrong subscription then you risk messing up your TFS instanllation. Therefore take backups and tread carefully...

开始:

以 TFS Admin 用户 (TFSSETUP) 身份通过远程桌面登录到 TFS 计算机,然后在 Internet Explorer 中浏览到以下地址:

Log in to the TFS machine as the TFS Admin user (TFSSETUP) over remote desktop, and then browse to the following address in Internet Explorer:

http://localhost:8080/Services/V1.0/EventService.asmx

这些是事件服务 Web 服务方法.您要查看的第一个是 EventSubscriptions 方法:-

These are the Event Service web service methods. The first one you want to look at is the EventSubscriptions method:-

http://localhost:8080/Services/V1.0/EventService.asmx?op=EventSubscriptions

在用户 ID 字段中,输入星号 (*),然后按调用.

In the userid field, enter an asterisk (*) and then press invoke.

这将返回 TFS 中所有事件订阅的大列表 - 包括允许部分 TFS 与其他部分通信的事件订阅.如果向下滚动,您将找到您的电子邮件订阅.记下要删除的 ID.

This will then return a big list of all the event subscriptions in TFS - including the ones that allow parts of TFS to talk to other parts. If you scroll down, you will find your email subscriptions. Make a note of the ID's of the ones that you want to delete.

然后去取消订阅方法:

http://localhost:8080/Services/V1.0/EventService.asmx?op=UnsubscribeEvent

输入您要删除的通知的 ID,然后按调用.对您要删除的所有事件重复此操作.

Enter the ID of the notification that you wish to remove and press invoke. Repeat for all the events that you wish to remove.

删除不需要的内容后,您可以使用电动工具等创建不同的内容.

Once you have removed the ones you don't want you can create different ones using the power tools etc.

希望有所帮助 - 祝你好运.

Hope that helps - good luck.

马丁.

请注意,不要收到任何友好的撤消提示或任何内容,因为这是相当低级的黑客行为.因此,您需要在执行此操作之前进行备份等.

Note that do don't get any friendly undo prompts or anything as this is fairly low-level hackery. Therefore you want to have backups etc before you do this.

这篇关于在 TFS 中为项目编辑其他用户的警报的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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