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

Fix todolists and order steps on the project management page in the order in which they were created #692

Merged
merged 2 commits into from
Oct 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions orchestra/static/dist/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -66740,6 +66740,7 @@ function todoList(orchestraApi) {
todoList.todoQas = todoQas;
todoList.todos = todoList.transformToTree(todos);
todoList.ready = true;
$scope.$apply();
});
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ export default function todoList (orchestraApi) {
todoList.todoQas = todoQas
todoList.todos = todoList.transformToTree(todos)
todoList.ready = true
$scope.$apply()
})
})
}
Expand Down
2 changes: 1 addition & 1 deletion orchestra/utils/task_lifecycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,7 @@ def create_subsequent_tasks(project):
The modified project object.
"""
workflow_version = project.workflow_version
all_steps = workflow_version.steps.all()
all_steps = workflow_version.steps.all().order_by('id')

# get all completed tasks associated with a given project
completed_tasks = Task.objects.filter(status=Task.Status.COMPLETE,
Expand Down