You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 23, 2025. It is now read-only.
resource_id, as near as I can tell, should be the universal Id of the resource, not the challenge or project specific IDs used for roles and resources.
22
-
submission_id, the most important item, which you should have.
23
-
project_phase_id, try null, or any phase that overlaps in time with the challenge phase the reviews are submitted for. I can't find any logic or constraints for this field.
24
-
scorecard_id, the second most important item, which you should have.
25
-
committed, in the case of a TopGear batch review submission should be true.
26
-
score and initial_score are usually aggregated by OR and AP, but you could aggregate them yourself, according to the scorecard weights. Try having AP do it for you.
27
-
create_user should be some generic API user name that tells us it was a TopGear batch upload.
28
-
create_date should be now (use CURRENT for Informix SQL if you want).
29
-
modify_user and modify_date can be null (or just don't include those in the field list).
30
-
The ? are just placeholders for your values. I believe Informix uses a single quote for strings.
scorecard_question_id, the most important field, which you should have.
39
-
upload_id, this is specific to the submission_id, although you could have multiple uploads and you will want the upload_id, which TopGear should have if someone answered a question about a submission, because the submission must have been downloaded from somewhere.
40
-
answer, usually a number.
41
-
sort, use a constant here if you wish. From what I can tell, this would be used to display certain comments at the top for review appeals. It may have a default sort from the scorecard definition, but it's probably not important since people won't be looking at individual reviews much, I'm guessing.
42
-
Same as above for create_user, etc.
43
-
*/
44
-
45
21
constQUERY_GET_SUBMISSION='SELECT FIRST 1 * FROM submission s INNER JOIN upload u on s.upload_id = u.upload_id WHERE u.project_id = %d AND upload_status_id = 1 AND submission_status_id = 1 ORDER BY u.CREATE_DATE ASC'
46
22
47
23
constQUERY_GET_PROJECT_PHASE='select pc.parameter scorecard_id, pp.project_phase_id project_phase_id from project_phase pp inner join phase_criteria pc on pc.project_phase_id = pp.project_phase_id where pp.project_id = %d and pp.phase_type_id = 18 and phase_criteria_type_id = 1'
0 commit comments