TFS 工作项编辑冲突(TFS 错误 237079)

发布于 2024-11-25 16:39:13 字数 471 浏览 2 评论 0原文

看来 TFS 不能很好地处理并发工作项编辑。 我们遇到了两个有问题的场景:

场景 A:

  1. 您开始编辑工作项。
  2. 当您进行编辑时,其他人会编辑并保存同一项目。
  3. 当您尝试保存时,您会收到可怕的 TFS237079 错误,这意味着您必须放弃更改,刷新项目并再次编辑。好的。

场景 B:

  1. 您暂时专注于一个工作项目。
  2. 有人编辑并保存该项目。
  3. 当您开始编辑时,您实际上正在编辑工作项的过时版本,并且在尝试保存时会收到 TFS23709。

我非常熟悉 TFS SDK(编写了一些 TFS VS Addon 和自定义工作项控件),但找不到工作项的“BeforeEdit”事件之类的东西。

发生这样的事件将允许我警告用户其他人当前正在编辑(对于场景 A)并在编辑之前获取最新版本(对于场景 B)。

谢谢, 拉维夫。

It seems that TFS doesn't handle concurrent work item editing very well.
We ran into two problematic scenarios:

Scenario A:

  1. You start editing a work item.
  2. While you're editing, someone else edits and saves the same item.
  3. When you try to save you get the horrible TFS237079 error which which means you have to loose your changes, refresh the item and edit again. nice.

Scenario B:

  1. You have a work item focused for a while.
  2. Someone edits and saves the item.
  3. When you start editing you're actually editing an outdated version of the work item and will get TFS23709 when trying to save.

I'm quite familiar with the TFS SDK (wrote some TFS VS Addon and custom work item controls) but can't find something like a "BeforeEdit" event for a work item.

Having such event would allow me to warn the user that someone else is currently editing (for scenario A) and get the latest revision before editing (for Scenario B).

Thanks,
Raviv.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

揪着可爱 2024-12-02 16:39:13

乐观并发就是这样。服务器不跟踪谁正在编辑工作项目,因此如果您确实想要执行“其他人正在编辑此项目”通知,您可能必须编写自己的服务和自定义控件来跟踪它。如果 Visual Studio 崩溃以及 Web UI 崩溃,您还必须处理编辑标志未释放的问题。如果你选择这条路,我祝你好运!

Optimistic concurrency is what it is. The server isnt tracking who is editing work items so If you really wanted to do "Someone else is editing this item" notifications you would probably have to write your own services and custom controls to track it. You'd also have to deal with edit flags not being release if visual studio crashed and with the web UI. If you choose that path I wish you luck!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文