diff --git a/lib/code_corps_web/views/project_view.ex b/lib/code_corps_web/views/project_view.ex index 2ee80294e..009491d1c 100644 --- a/lib/code_corps_web/views/project_view.ex +++ b/lib/code_corps_web/views/project_view.ex @@ -22,7 +22,6 @@ defmodule CodeCorpsWeb.ProjectView do has_many :project_github_repos, serializer: CodeCorpsWeb.ProjectGithubRepoView, identifiers: :always has_many :project_skills, serializer: CodeCorpsWeb.ProjectSkillView, include: true has_many :project_users, serializer: CodeCorpsWeb.ProjectUserView, include: true - has_many :tasks, serializer: CodeCorpsWeb.TaskView, identifiers: :always has_many :task_lists, serializer: CodeCorpsWeb.TaskListView, identifiers: :always def can_activate_donations(project, _conn) do diff --git a/lib/code_corps_web/views/task_in_list_view.ex b/lib/code_corps_web/views/task_in_list_view.ex index ac6f67ac1..5b5f5a293 100644 --- a/lib/code_corps_web/views/task_in_list_view.ex +++ b/lib/code_corps_web/views/task_in_list_view.ex @@ -9,12 +9,12 @@ defmodule CodeCorpsWeb.TaskInListView do :archived, :created_at, :number, :order, :status, :title ] - has_one :github_issue, type: "github-issue", field: :github_issue_id - has_one :github_pull_request, serializer: CodeCorpsWeb.GithubPullRequestView, identifiers: :always + has_one :github_issue, serializer: CodeCorpsWeb.GithubIssueView, include: true + has_one :github_pull_request, serializer: CodeCorpsWeb.GithubPullRequestView, include: true has_one :github_repo, type: "github-repo", field: :github_repo_id has_one :project, type: "project", field: :project_id has_one :task_list, type: "task-list", field: :task_list_id - has_one :user, type: "user", field: :user_id + has_one :user, serializer: CodeCorpsWeb.UserSlimView, include: true has_one :user_task, serializer: CodeCorpsWeb.UserTaskView, include: true has_many :task_skills, serializer: CodeCorpsWeb.TaskSkillView, include: true