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

Method add_reviewer

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

Source from the content-addressed store, hash-verified

333 return user_list
334
335 def add_reviewer(self, session, user):
336 existing_rel = TaskUser.get(session, user.id, self.id, 'reviewer')
337 if existing_rel:
338 return existing_rel
339 self.assignee_user = user
340 rel = TaskUser.new(
341 session = session,
342 user_id = user.id,
343 task_id = self.id,
344 relation = 'reviewer'
345 )
346 return rel
347
348 def has_user(self, session, user):
349

Callers 11

test_task_completeMethod · 0.80
test_add_reviewerMethod · 0.80
test_has_userMethod · 0.80
setUpMethod · 0.80
test_task_review_apiMethod · 0.80
setUpMethod · 0.80
api_task_user_add_coreFunction · 0.80
api_task_user_add_coreFunction · 0.80
provision_root_tasksFunction · 0.80

Calls 2

getMethod · 0.45
newMethod · 0.45

Tested by 7

test_task_completeMethod · 0.64
test_add_reviewerMethod · 0.64
test_has_userMethod · 0.64
setUpMethod · 0.64
test_task_review_apiMethod · 0.64
setUpMethod · 0.64