Comments (8)
I think it's not the timestamp which creates an update but changes like this:
May 28 12:18:38 euler bugwarrior[1728783]: INFO:bugwarrior.db:Updating task f34fafe9-27dc-41b4-88f0-375d7cda1cbb, [ADO-2277] Zeus: setup monitoring; status: 'completed' -> 'pending'; end: datetime.datetime(2024, 5, 28, 9, 18, 8, tzinfo=tzutc()) -> datetime.datetime(2024, 5, 21, 14, 2, 16, 403000, tzinfo=tzutc()); entry: datetime.datetime(2024, 5, 17, 8, 17, 23, tzinfo=tzutc()) -> datetime.datetime(2024, 5, 17, 8, 17, 23, 740000, tzinfo=tzutc())
The task is changed from completed to pending, but that wasn't done by taskwarrior. Inspecting the task by running task f34fafe9-27dc-41b4-88f0-375d7cda1cbb
shows a lot of changes. This is the last part:
2024-05-28 08:15:44 End deleted.
Status changed from 'completed' to 'pending'.
2024-05-28 08:15:44 End set to '2024-05-28 08:15:44'.
Status changed from 'pending' to 'completed'.
2024-05-28 11:18:08 End deleted.
Status changed from 'completed' to 'pending'.
2024-05-28 11:18:08 End set to '2024-05-28 11:18:08'.
Status changed from 'pending' to 'completed'.
2024-05-28 12:18:38 End deleted.
Status changed from 'completed' to 'pending'.
2024-05-28 12:18:38 End set to '2024-05-28 12:18:38'.
Status changed from 'pending' to 'completed'.
The user story is closed on devops but the parent is still active.
from bugwarrior.
Could you share a little about your configuration? Are you using a custom query?
The way bugwarrior is supposed to work is:
- If the given issue is not returned, bugwarrior closes it's task.
- If a closed issue is returned, bugwarrior re-opens it's task.
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.
from bugwarrior.
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.)
from bugwarrior.
Hi,
Yes, I'm using a custom filter:
ado.wiql_filter = [System.AssignedTo] = @me and [System.TeamProject] = 'Dataflow'
So if I understand your response correctly, I should exclude the closed items in my query.
from bugwarrior.
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.
So if I understand your response correctly, I should exclude the closed items in my query.
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.
from bugwarrior.
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.
from bugwarrior.
Great! Could you share your updated ado.wiql_filter
to exclude closed tasks?
I suspect we should add this to the default query rather than merely documenting it.
from bugwarrior.
Hello,
I'm experiencing a similar problem, where I get a bunch of logs like this:
INFO:bugwarrior.db:Updating task f9cff0b2-85bd-453e-846d-f8e41b8efa53, (bw)#32496 - Coupon/ (...).. https://dev.azure.com/x/d3bdfc58-2ed1-4f15-b426-d92c858991fd/_workitems/edit/32496; entry: datetime.datetime(2024, 6, 3, 8, 38, 37, tzinfo=tzutc()) -> datetime.datetime(2024, 6, 3, 8, 38, 37, 527000, tzinfo=tzutc())
I'm using this wiql_filter: "[System.AssignedTo] = @Me AND [System.State] <> 'Completed' AND [System.State] <> 'Closed' AND [System.TeamProject] = 'x'"
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.
from bugwarrior.
Related Issues (20)
- Add generic hook-scripts to TW to automatically update/delete/add remote tasks HOT 1
- remove pytest deprecation warnings from develop branch HOT 2
- Gitlab: work items HOT 3
- Fail if one of the services failed HOT 4
- Parsing config with url containg '%' has interpolation issue from ConfigParser HOT 4
- Python-3.11+ HOT 1
- Readthedocs V2
- Toml tab bug
- Release 2.0 HOT 4
- Add support for reminders in Slack
- Support retrieving an untagged list of repositories in Pagure HOT 1
- possibility of setting a date in the configuration file HOT 2
- RT5/RTIR support? HOT 1
- [feature request] choose a config file format and use the file extension HOT 5
- 3 binaries after install instead of one HOT 4
- different project names: remote project name vs taskwarrior project name HOT 8
- bugwarrior-vault and password management issues HOT 2
- installation error using python 3.12 HOT 1
- Require python-debianbts>=4.1.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bugwarrior.