Vridlo/types/Exercise: Difference between revisions

From ALT Linux Wiki
No edit summary
No edit summary
Line 1: Line 1:
'''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:
'''Exercise''' is a 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:


* '''id''' is ''natural '''mandatory read-only internal'''''
* '''id''' is ''natural '''mandatory read-only internal'''''
  Unique internal identifier of the exercise represented by a natural integer.
  Unique internal identifier of the exercise represented by a natural integer.


* '''no''' is ''natural '''mandatory'''''
* '''no''' is ''natural '''mandatory write-once'''''
  Number of subtask in the task. Is unique per task.
  Number of subtask in the task. Is unique per task in the context of the current assembler.


* '''kind''' is ''string '''mandatory'''''
* '''kind''' is ''string '''mandatory write-once'''''
  Kind of the subtask.
  Kind of the subtask.


* '''app_slug''' is ''string '''mandatory'''''
* '''app_slug''' is ''string '''mandatory write-once'''''
  Unique name of the application, which the RPM belongs to.
  Unique name of the application, which the RPM belongs to.


* '''resource''' is ''string '''optional read-only'''''
* '''committer_slug''' is ''string '''mandatory write-once'''''
The subtask committer slug in the context of the current assembler.
 
* '''task_no''' is ''natural '''mandatory write-once'''''
Task identifier in the context of the current assembler.
 
* '''resource''' is ''string '''optional write-once'''''
  Name of the source build or resource for the task.
  Name of the source build or resource for the task.


* '''sha''' is ''string '''optional read-only'''''
* '''sha''' is ''string '''optional write-once'''''
  Sha  
  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'''''
* '''approver_slugs''' is ''string array '''optional'''''
  Array of the subtask approver slugs in the context of the current assembler.
  Array of the subtask approver slugs in the context of the current assembler.

Revision as of 09:26, 12 December 2019

Exercise is a 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 write-once
Number of subtask in the task. Is unique per task in the context of the current assembler.
  • kind is string mandatory write-once
Kind of the subtask.
  • app_slug is string mandatory write-once
Unique name of the application, which the RPM belongs to.
  • committer_slug is string mandatory write-once
The subtask committer slug in the context of the current assembler.
  • task_no is natural mandatory write-once
Task identifier in the context of the current assembler.
  • resource is string optional write-once
Name of the source build or resource for the task.
  • sha is string optional write-once
Sha 
  • approver_slugs is string array optional
Array of the subtask approver slugs in the context of the current assembler.