Public tasks -- updates to ensure public tasks can be viewed and used #1581
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@ mention of reviewers
@Didayolo
A brief description of the purpose of the changes contained in this PR.
This PR solves all the issues related to making tasks public and using them in competitions either by owners or other users. The following changes are made to enable this functionality.
key
present. That was not needed and is now removedTaskListSerializer
to properly use validated status and sharedwith list. Now that is fixed.TaskListSerializer
to show a checkmark in the tasks list table.Show public tasks
was checked but when this public task was clicked, details were not shown because it was not permitted from the backend. Now the backend is updated to return details for public tasks.Issues this PR resolves
A checklist for hand testing
user 1
create a task and make it public using the task detail interface. Make sure that you can make the task public and privateuser 2
go to Resource interface -> Tasks tab, click show public tasks checkbox. Check that the task made public byuser 1
is shown here. Check that you can click the task and check its detailsuser 2
create a competition, go to edit competition->Phases. In one phase search the same task in the task dropdown and check that you can select this task for your phase and save changes.Checklist