Skip to content

Commit

Permalink
Further testing
Browse files Browse the repository at this point in the history
  • Loading branch information
joshsmith committed Nov 6, 2017
1 parent 9277c0e commit 26ea258
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion lib/code_corps_web/views/project_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions lib/code_corps_web/views/task_in_list_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 26ea258

Please sign in to comment.