Vridlo/types/Exercise

From ALT Linux Wiki
< Vridlo/types
Revision as of 12:23, 12 December 2019 by Majioa (talk | contribs)

Exercise is write-once structure that represents Exercise model, which is used for describing the subtask of the Assembler's task. It is described as:

  • id is natural mandatory read-only internal
Unique internal identifier of the exercise represented by a natural integer.
  • no is natural mandatory
Number of subtask in the task. Is unique per task.
  • kind is string mandatory
Kind of the subtask.
  • app_slug is string mandatory
Unique name of the application, which the RPM belongs to.
  • resource is string optional read-only
Name of the source build or resource for the task.
  • sha is string optional read-only
Sha 
  • committer_slug is string optional read-only
The subtask committer slug in the context of the current assembler.
  • task_id is string optional read-only
Task identifier in the context of the current assembler.
  • approver_slugs is string array optional
Array of the subtask approver slugs in the context of the current assembler.


   t.string "resource", comment: "Имя исходного сбора или ресурс исходников для задания"
   t.string "sha", comment: "Хеш соборочный для задания"
   t.string "committer_slug", null: false, comment: "Автор воплета задания"
   t.bigint "task_id", null: false, comment: "Ссылка на задачу"
   t.string "approver_slugs", null: false, comment: "Ссылка на заверщика задания"