Coder Social home page Coder Social logo

Comments (6)

giuliov avatar giuliov commented on June 26, 2024

First of all thanks: you are a brave beta tester!
Honestly I have not tested the Board scenario, but I suggest considering reentrancy: after you touch the work item and the plugin saves it, TFS will trigger another change notification that reenters the plugin for the same work item.

from tfsaggregator.

shaneedwards avatar shaneedwards commented on June 26, 2024

Thanks for the response, hope you had a good weekend.

I wanted to follow up with more information after additional testing and see if you could offer any further advice. I was able to find a pattern--this occurs any time I operate on the user story via TFSAggregator using C# scripting. I do see the re-entrancy that you mentioned which I understand, based on some comments in other forums, is intentional. I have handled that problem by setting a 'last modified' field and checking in an IF so that when I make a change it will not process more than once. The problem I am seeing is that even when I do nothing during that second operation it appears that TFS gets into some state where the next transition will always fail. It turns out, this isn't just a Kanban issue, but happens if I manually transition via the form as well.

I will post my slightly modified code and a video of the interaction as well. In the code snapshot below I have highlighted the two debug outputs that you'll see in the trace window.

2015-06-15_09-24-08

In this video you'll see me transition to a state that does not run the C# aggregation code (falls through to the else), then transition to the state that runs the main body of the code and you'll see in the debug that the first run works fine and the second (reentry) falls through to the else. Then, the third transition just silently fails. No debug output, no errors on the screen, just flat rejected.

https://www.youtube.com/watch?v=MEm5f8Lc9pM

Any insight you can give on what might be cause the issue would be of great help!

from tfsaggregator.

jessehouwing avatar jessehouwing commented on June 26, 2024

This may be related to the fact that the web ui doesn't expect the
underlying work item to be changed.

TFS 2015 will make the front-end aware of backend changes through signalR
I've heard, which would solve this issue. I don't think there is anything
you can do to prevent this, other than reloading the screen after a change
if you intend to update the same WorkItem multiple times.
On Jun 15, 2015 4:30 PM, "shaneedwards" [email protected] wrote:

Thanks for the response, hope you had a good weekend.

I wanted to follow up with more information after additional testing and
see if you could offer any further advice. I was able to find a
pattern--this occurs any time I operate on the user story via
TFSAggregator. I do see the reentrancy that you mentioned which, based on
some comments in other forums is intentional. I have handled that problem
by setting a 'last modified' field and checking in an IF so that when I
make a change it will not process more than once. The problem I am seeing
is that even when I do nothing it appears that TFS gets into some state
where the next transition will always fail. It turns out, this isn't just a
Kanban issue, but happens if I manually transition as well.

I will post my slightly modified code and a video of the interaction as
well. In the code snapshot below I have highlighted the two debug outputs
that you'll see in the trace window.

[image: 2015-06-15_09-24-08]
https://cloud.githubusercontent.com/assets/7059852/8162042/80de38a6-1340-11e5-8a0f-c22849b8c19a.png

In this video you'll see me transition to a state that does not run the C#
aggregation code (falls through to the else), then transition to the state
that runs the code and you'll see in the debug that the first run works
fine and the second (reentry) falls through to the else. Then, the third
transition just silently fails. No debug output, no errors on the screen,
just flat rejected.

https://www.youtube.com/watch?v=MEm5f8Lc9pM

Any insight you can give on what might be cause the issue would be of
great help!


Reply to this email directly or view it on GitHub
#36 (comment)
.

from tfsaggregator.

shaneedwards avatar shaneedwards commented on June 26, 2024

Ahhh, that makes sense. Explains why I wasn't finding an error in the back end or in JavaScript. It isn't an error, just the UI getting out of sync. Not to belabor the point, but is there a way to fire off a reload event on the front-end from TFSAggregator?

from tfsaggregator.

jessehouwing avatar jessehouwing commented on June 26, 2024

Unfortunately not. That will only happen with the signalR support.
On Jun 15, 2015 7:43 PM, "Shane Edwards" [email protected] wrote:

Ahhh, that makes sense. Explains why I wasn't finding an error in the back
end or in JavaScript. It isn't an error, just the UI getting out of sync.
Not to belabor the point, but is there a way to fire off a reload event on
the front-end from TFSAggregator?


Reply to this email directly or view it on GitHub
#36 (comment)
.

from tfsaggregator.

shaneedwards avatar shaneedwards commented on June 26, 2024

Thank you for the assistance. I'll be waiting patiently for 2015!

from tfsaggregator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.