Skip to content
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

[Question/Feature Request]: task dependencies in /tasks endpoints #71

Open
timkley opened this issue Oct 7, 2022 · 1 comment
Open
Labels
question Further information is requested

Comments

@timkley
Copy link

timkley commented Oct 7, 2022

What is your question?

Currently it is not possible to know if a task can be started without doing a series of API calls:

  • get the task from somewhere (either /task/{id} or maybe from /me/projecttasks...)
  • get the tasks dependencies via /tasks/{id}/taskdependencies
  • get each task and check their status (should be done)

I'd propose a feature to simplify this. Either by loading the dependency relationship for each task (could be quite expensive I recon) or by providing another attribute similar to, for example, isCompletelyScheduled. This attribute could be named isStartable.

These approaches may be a bit to naive since its not possible to depict all possible combinations of statuses the predecessors could be in. I'm also open for a simpler approach without doesn't need a few hundred API calls to find out if a task can be started :)

Do you have a trace id of the call?

No response

@timkley timkley added the question Further information is requested label Oct 7, 2022
@nilzzzzzz
Copy link
Contributor

Hi @timkley ,

we have right now no cool way to make it easier for you to calculate this. The only way to improve the logic and to do less calls is to apply this logic per project. The task & dependencies endpoints are available in that scope.

I marked you proposal internally as improvement. Thanks for you detailled feeback.

Nils

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Development

No branches or pull requests

2 participants