Vridlo/types/Exercise: Difference between revisions

From ALT Linux Wiki
(Created page with "'''Assembler''' is read-only structure that represents RPM assembler model. It is described as: * '''slug''' is ''string '''mandatory write-once''''' Unique internal identif...")
 
No edit summary
Line 1: Line 1:
'''Assembler''' is read-only structure that represents RPM assembler model. It is described as:
'''Exercise''' is write-once structure that represents Exercise model, which is used for describing the subtask of the [[Vridlo/types/Assembler|Assembler]]'s [[Vridlo/types/Task|task]]. It is described as:


* '''slug''' is ''string '''mandatory write-once'''''
* '''id''' is ''natural '''mandatory read-only internal'''''
  Unique internal identifier of the file representing by a string. Can contain only letters and underscores.
  Unique internal identifier of the exercise represented by a natural integer.


* '''name''' is ''string '''optional'''''
* '''no''' is ''natural '''mandatory'''''
  Name of the assembler.
  Number of subtask in the task. Is unique per task.


* '''host''' is ''string '''optional'''''
* '''kind''' is ''string '''mandatory'''''
  Host URI of of the assembler.
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.


* '''export_path_base''' is ''string '''optional'''''
Internal export path base. The path base can be appended to ftp path for the assembler, and prepended to specific arch suffix in order, to read the RPM packages.


* '''source_path_count''' is ''string '''read-only'''''
Count of held [[Vridlo/types/SourcePath|RPM source paths]] in the assembler.


    t.integer "no", null: false, comment: "Число задачи в задании"
    t.string "kind", null: false, comment: "Вид задания"
    t.string "pkgname", null: false, comment: "Имя пакета для задания"
     t.string "resource", comment: "Имя исходного сбора или ресурс исходников для задания"
     t.string "resource", comment: "Имя исходного сбора или ресурс исходников для задания"
     t.string "sha", comment: "Хеш соборочный для задания"
     t.string "sha", comment: "Хеш соборочный для задания"

Revision as of 12:23, 12 December 2019

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: "Ссылка на заверщика задания"