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

Method add_assignee

shared/database/task/task.py:366–378  ·  view source on GitHub ↗
(self, session, user)

Source from the content-addressed store, hash-verified

364 return users
365
366 def add_assignee(self, session, user):
367 existing_rel = TaskUser.get(session, user.id, self.id, 'assignee')
368 if existing_rel:
369 return existing_rel
370 self.assignee_user = user
371 rel = TaskUser.new(
372 session = session,
373 user_id = user.id,
374 task_id = self.id,
375 relation = 'assignee'
376 )
377 user.last_task = self
378 return rel
379
380 @staticmethod
381 def get_related_files(session, task_id):

Callers 9

test_add_assigneeMethod · 0.80
api_task_user_add_coreFunction · 0.80
api_task_user_add_coreFunction · 0.80
get_next_task_by_projectFunction · 0.80
get_next_task_by_jobFunction · 0.80
provision_root_tasksFunction · 0.80
get_task_from_job_idMethod · 0.80

Calls 2

getMethod · 0.45
newMethod · 0.45

Tested by 3

test_add_assigneeMethod · 0.64