예제 #1
0
 def indexed_query(cls):
     return super(Hierarchical, cls).indexed_query().options(
         orm.Load(cls).subqueryload("children"),
         orm.Load(cls).joinedload("parent"),
     )
예제 #2
0
 def indexed_query(cls):
   return super(WithLastDeprecatedDate, cls).indexed_query().options(
       orm.Load(cls).load_only("last_deprecated_date"),
   )
예제 #3
0
 def indexed_query(cls):
   return super(FinishedDate, cls).indexed_query().options(
       orm.Load(cls).load_only("finished_date"),
   )
예제 #4
0
 def indexed_query(cls):
   return super(Described, cls).indexed_query().options(
       orm.Load(cls).load_only("description"),
   )
예제 #5
0
 def indexed_query(cls):
   return super(WithStartDate, cls).indexed_query().options(
       orm.Load(cls).load_only("start_date"),
   )
예제 #6
0
 def indexed_query(cls):
     return super(Evidence, cls).indexed_query().options(
         orm.Load(cls).undefer_group("Evidence_complete", ),
         orm.Load(cls).subqueryload('related_sources'),
         orm.Load(cls).subqueryload('related_destinations'),
     )
예제 #7
0
 def indexed_query(cls):
   return super(Commentable, cls).indexed_query().options(
       orm.Load(cls).subqueryload("comments").load_only("id", "description")
   )
예제 #8
0
 def eager_query(cls):
   query = super(TaskGroup, cls).eager_query()
   return query.options(
       orm.Load(cls).subqueryload('task_group_objects'),
       orm.Load(cls).subqueryload('task_group_tasks')
   )
예제 #9
0
 def indexed_query(cls):
     return super(Document, cls).indexed_query().options(
         orm.Load(cls).undefer_group("Document_complete", ), )
예제 #10
0
 def indexed_query(cls):
     return super(Audit, cls).indexed_query().options(
         orm.Load(cls).undefer_group("Audit_complete", ), )
예제 #11
0
    def indexed_query(cls):
        from sqlalchemy import orm

        return super(Person, cls).indexed_query().options(
            orm.Load(cls).undefer_group("Person_complete", ), )
예제 #12
0
파일: issue.py 프로젝트: hcyg/ggrc-core
 def indexed_query(cls):
   return super(Issue, cls).indexed_query().options(
       orm.Load(cls).load_only("due_date"),
   )
예제 #13
0
 def indexed_query(cls):
     return super(ChangeTracked, cls).indexed_query().options(
         orm.Load(cls).load_only("created_at", "updated_at"),
         orm.Load(cls).joinedload("modified_by").load_only(
             "name", "email", "id"),
     )
예제 #14
0
 def indexed_query(cls):
     return super(Timeboxed, cls).indexed_query().options(
         orm.Load(cls).load_only("start_date", "end_date"), )
예제 #15
0
 def indexed_query(cls):
     return super(AssertionCategorized, cls).indexed_query().options(
         orm.Load(cls).joinedload('categorized_assertions', ), )
예제 #16
0
파일: base.py 프로젝트: weizai118/ggrc-core
 def indexed_query(cls):
   return super(ContextRBAC, cls).indexed_query().options(
       orm.Load(cls).load_only("context_id"),
   )
예제 #17
0
 def indexed_query(cls):
     return super(ControlCategorized, cls).indexed_query().options(
         orm.Load(cls).joinedload('categorizations', ), )
예제 #18
0
파일: base.py 프로젝트: weizai118/ggrc-core
 def indexed_query(cls):
   return super(CreationTimeTracked, cls).indexed_query().options(
       orm.Load(cls).load_only("created_at"),
   )
예제 #19
0
 def indexed_query(cls):
     return super(Workflow, cls).indexed_query().options(
         orm.Load(cls).undefer_group("Workflow_complete", ), )
예제 #20
0
 def indexed_query(cls):
     return super(Slugged, cls).indexed_query().options(
         orm.Load(cls).load_only("slug"), )
예제 #21
0
 def _populate_query(cls, query):
     return query.options(
         orm.Load(cls).undefer_group("Assessment_complete", ),
         orm.Load(cls).joinedload("audit").undefer_group(
             "Audit_complete", ),
     )
예제 #22
0
 def indexed_query(cls):
     return super(TestPlanned, cls).indexed_query().options(
         orm.Load(cls).load_only("test_plan"), )
예제 #23
0
 def indexed_query(cls):
   return super(Noted, cls).indexed_query().options(
       orm.Load(cls).load_only("notes"),
   )
예제 #24
0
 def indexed_query(cls):
     return super(Titled, cls).indexed_query().options(
         orm.Load(cls).load_only("title"), )
예제 #25
0
 def indexed_query(cls):
   return super(WithEndDate, cls).indexed_query().options(
       orm.Load(cls).load_only("end_date"),
   )
예제 #26
0
 def indexed_query(cls):
     return super(Folderable, cls).indexed_query().options(
         orm.Load(cls).load_only("folder"), )
예제 #27
0
 def indexed_query(cls):
   return super(Stateful, cls).indexed_query().options(
       orm.Load(cls).load_only("status"),
   )
예제 #28
0
 def indexed_query(cls):
     return super(DecoratedClass, cls).indexed_query().options(
         orm.Load(cls).joinedload(relation_name).load_only(
             "name", "email", "id"), )
예제 #29
0
 def indexed_query(cls):
   return super(VerifiedDate, cls).indexed_query().options(
       orm.Load(cls).load_only("verified_date"),
   )
예제 #30
0
 def indexed_query(cls):
     return super(Control, cls).indexed_query().options(
         orm.Load(cls).undefer_group("Control_complete"),
         orm.Load(cls).joinedload("directive").undefer_group(
             "Directive_complete"),
     )