mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-02 21:51:51 +08:00
Add team to task list serializer and service [SCI-10266]
This commit is contained in:
parent
968b34d74c
commit
703259bb1f
2 changed files with 6 additions and 1 deletions
|
@ -23,6 +23,7 @@ module Lists
|
|||
due_date_formatted
|
||||
permissions
|
||||
default_public_user_role_id
|
||||
team
|
||||
)
|
||||
|
||||
def attributes(_options = {})
|
||||
|
@ -148,5 +149,9 @@ module Lists
|
|||
count_unseen: count_unseen_comments(object, @user)
|
||||
}
|
||||
end
|
||||
|
||||
def team
|
||||
object.team.name
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -9,7 +9,7 @@ module Lists
|
|||
task_comments: { user: :teams },
|
||||
user_assignments: :user,
|
||||
designated_users: {},
|
||||
experiment: :project
|
||||
experiment: { project: :team }
|
||||
}
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in a new issue