Skip to content

Commit 26ea258

Browse files
committed
Further testing
1 parent 9277c0e commit 26ea258

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lib/code_corps_web/views/project_view.ex

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ defmodule CodeCorpsWeb.ProjectView do
2222
has_many :project_github_repos, serializer: CodeCorpsWeb.ProjectGithubRepoView, identifiers: :always
2323
has_many :project_skills, serializer: CodeCorpsWeb.ProjectSkillView, include: true
2424
has_many :project_users, serializer: CodeCorpsWeb.ProjectUserView, include: true
25-
has_many :tasks, serializer: CodeCorpsWeb.TaskView, identifiers: :always
2625
has_many :task_lists, serializer: CodeCorpsWeb.TaskListView, identifiers: :always
2726

2827
def can_activate_donations(project, _conn) do

lib/code_corps_web/views/task_in_list_view.ex

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ defmodule CodeCorpsWeb.TaskInListView do
99
:archived, :created_at, :number, :order, :status, :title
1010
]
1111

12-
has_one :github_issue, type: "github-issue", field: :github_issue_id
13-
has_one :github_pull_request, serializer: CodeCorpsWeb.GithubPullRequestView, identifiers: :always
12+
has_one :github_issue, serializer: CodeCorpsWeb.GithubIssueView, include: true
13+
has_one :github_pull_request, serializer: CodeCorpsWeb.GithubPullRequestView, include: true
1414
has_one :github_repo, type: "github-repo", field: :github_repo_id
1515
has_one :project, type: "project", field: :project_id
1616
has_one :task_list, type: "task-list", field: :task_list_id
17-
has_one :user, type: "user", field: :user_id
17+
has_one :user, serializer: CodeCorpsWeb.UserSlimView, include: true
1818
has_one :user_task, serializer: CodeCorpsWeb.UserTaskView, include: true
1919

2020
has_many :task_skills, serializer: CodeCorpsWeb.TaskSkillView, include: true

0 commit comments

Comments
 (0)