MCPcopy Index your code
hub / github.com/diffgram/diffgram / get_all_users_in_task

Method get_all_users_in_task

shared/database/task/task.py:322–333  ·  view source on GitHub ↗

Returns the list of both assignees and reviewers assgined to this task. :param session: :return:

(self, session)

Source from the content-addressed store, hash-verified

320 return "diffgram/task"
321
322 def get_all_users_in_task(self, session):
323 """
324 Returns the list of both assignees and reviewers
325 assgined to this task.
326 :param session:
327 :return:
328 """
329 rels = session.query(TaskUser).filter(
330 TaskUser.task_id == self.id
331 )
332 user_list = [rel.user for rel in rels]
333 return user_list
334
335 def add_reviewer(self, session, user):
336 existing_rel = TaskUser.get(session, user.id, self.id, 'reviewer')

Callers 1

by_task_id_coreMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected