-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A lot of updates on every pull from azure devops #1049
Comments
I think it's not the timestamp which creates an update but changes like this:
The task is changed from completed to pending, but that wasn't done by taskwarrior. Inspecting the task by running
The user story is closed on devops but the parent is still active. |
Could you share a little about your configuration? Are you using a custom query? The way bugwarrior is supposed to work is:
So if bugwarrior were working properly, that would indicate that azure devops is returning these issues sometimes and not other times. Another possibility that comes to mind is that bugwarrior isn't recognizing azure devops' failure mode and is thinking it succeeded when it really failed (e.g. rate ban) or only returned a subset of the requested issues. |
Here's a suspect: bugwarrior/bugwarrior/services/azuredevops.py Lines 77 to 88 in 71efc97
So anything other than those precise error conditions will be interpreted as success. It should probably be the other way around where anything other than 200 is interpreted as failure. (Or maybe anything >=400? There are probably best practices here.) |
Hi, Yes, I'm using a custom filter:
So if I understand your response correctly, I should exclude the closed items in my query. |
I don't have a solution for you at this point but I think the most interesting avenue for you to explore is if the service is intermittently getting bad http responses.
I believe the way most services work is that closed issues are excluded by default and I have no reason to think azure devops is otherwise. If azure devops did default to including closed issues, that wouldn't explain why the tasks are getting closed in the first place. Again, bugwarrior only closes tasks which are not returned by the service and in that case the closed issues should be returned by the service every time. |
I now have excluded the closed items and there a much less updates. I think we can clause this one, although it would be nice if that info could be added to the documentation. |
Great! Could you share your updated I suspect we should add this to the default query rather than merely documenting it. |
Hello, I'm experiencing a similar problem, where I get a bunch of logs like this: I'm using this wiql_filter: which should exclude work items that are completed or closed. In case anyone is wondering, the "<>" denotes "Unequals" whereas the "=" is "Equals". And it does so splenfidly. Unfortunately, I'm still receiving these updated tasks with a "new" datetime. Any ideas? I installed bugwarrior from source, because I had issues with the AUR release and Pydantic on Arch, but I don't think that should make any difference. |
Hi,
I'm running the develop version of bugwarrior and I pull from Azure DevOps. On every pull, there a lot of updates, although there aren't that much updates on the repository. As far as I see, it's mostly about timestamps getting updated while there is no update needed. These a few lines of a latest run:
It looks like it tries to add microseconds to the time stamp but those are ignored by taskwarrior. Or at least that's how I interpret the output.
The text was updated successfully, but these errors were encountered: