|
93 | 93 | EXECUTION_DAG = { |
94 | 94 | "execution_dag": { |
95 | 95 | "roster": course_roster(runtime=q.parameter("runtime"), course_id=q.parameter("course_id", required=True)), |
| 96 | + # all documents for a student |
| 97 | + 'student_with_docs': q.select( |
| 98 | + q.keys( |
| 99 | + 'writing_observer.document_list', |
| 100 | + STUDENTS=q.parameter("student_id", required=True), |
| 101 | + STUDENTS_path='user_id' |
| 102 | + ), |
| 103 | + fields={'docs': 'docs'} |
| 104 | + ), |
| 105 | + # a single document by explicit doc id |
| 106 | + 'single_student_doc_by_id': q.select( |
| 107 | + q.keys( |
| 108 | + 'writing_observer.reconstruct', |
| 109 | + STUDENTS=q.parameter("student_id", required=True), |
| 110 | + STUDENTS_path='user_id', |
| 111 | + RESOURCES=q.parameter("document", required=True), |
| 112 | + RESOURCES_path='doc_id' |
| 113 | + ), |
| 114 | + fields={'text': 'text'} |
| 115 | + ), |
96 | 116 | "doc_ids": q.select(q.keys('writing_observer.last_document', STUDENTS=q.variable("roster"), STUDENTS_path='user_id'), fields={'document_id': 'doc_id'}), |
97 | 117 | 'update_docs': update_via_google(runtime=q.parameter("runtime"), doc_ids=q.variable('doc_sources')), |
98 | 118 | "docs": q.select(q.keys('writing_observer.reconstruct', STUDENTS=q.variable("roster"), STUDENTS_path='user_id', RESOURCES=q.variable("update_docs"), RESOURCES_path='doc_id'), fields={'text': 'text'}), |
|
167 | 187 | "parameters": ["course_id"], |
168 | 188 | "output": "" |
169 | 189 | }, |
| 190 | + "student_with_docs": { |
| 191 | + "returns": "student_with_docs", |
| 192 | + # "parameters": ["student_id"], |
| 193 | + "output": "" |
| 194 | + }, |
| 195 | + "single_student_doc_by_id": { |
| 196 | + "returns": "single_student_doc_by_id", |
| 197 | + "parameters": ["student_id", "document"], |
| 198 | + "output": "" |
| 199 | + }, |
| 200 | + "single_student_all_reconstruct": { |
| 201 | + "returns": "single_student_all_reconstruct", |
| 202 | + "parameters": ["student_id"], |
| 203 | + "output": "" |
| 204 | + }, |
| 205 | + "single_student_docs_with_nlp_annotations": { |
| 206 | + "returns": "single_student_nlp", |
| 207 | + "parameters": ["student_id", "document", "nlp_options"], |
| 208 | + "output": "" |
| 209 | + }, |
170 | 210 | "document_list": { |
171 | 211 | "returns": "document_list", |
172 | 212 | "parameters": ["course_id"], |
|
0 commit comments