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

Method get_related_files

shared/database/task/task.py:381–395  ·  view source on GitHub ↗

Given the task_id, find the next task that is attached to an issue sorting by task creation date. :param session: :param task_id: :return: next task ID or None is not next task.

(session, task_id)

Source from the content-addressed store, hash-verified

379
380 @staticmethod
381 def get_related_files(session, task_id):
382 """
383 Given the task_id, find the next task that is attached to an issue
384 sorting by task creation date.
385 :param session:
386 :param task_id:
387 :return: next task ID or None is not next task.
388 """
389 task = Task.get_by_id(session, task_id = task_id)
390
391 tasks_query = session.query(Task).filter(
392 or_(Task)
393 )
394
395 return tasks_query.all()
396
397 @staticmethod
398 def get_next_task_with_issues(session, task_id):

Callers 1

task_related_files_coreFunction · 0.80

Calls 1

get_by_idMethod · 0.45

Tested by

no test coverage detected