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

Allow to list projects which use a specific task type #4420

Closed
philippotto opened this issue Jan 28, 2020 · 2 comments · Fixed by #4745
Closed

Allow to list projects which use a specific task type #4420

philippotto opened this issue Jan 28, 2020 · 2 comments · Fixed by #4745

Comments

@philippotto
Copy link
Member

Link to Discuss

In the task types view, there should be a "view projects" button for each task type which lists the projects which use said task type.

Maybe, this can replace the "view" function (we need to clarify whether there aren't users that need this feature).

@MichaelBuessemeyer
Copy link
Contributor

either new view or integrate it into the project list view

@fm3
Copy link
Member

fm3 commented Jul 7, 2020

A difficulty is that projects don’t have a specific task type. Tasks do. So to determine the projects for a given task type, we have to join all the tasks. Seems to be acceptably fast, though.

select p.name
from webknossos.projects_ p
join webknossos.tasks_ t on t._project = p._id 
join webknossos.taskTypes_ tt on t._taskType = tt._id
where tt._id = 'myTaskTypeId'
group by p.name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants