Vridlo/types/Exercise: Difference between revisions

From ALT Linux Wiki
No edit summary
No edit summary
Line 1: Line 1:
'''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:
'''Exercise''' is a structure that represents Exercise model, which is used for describing a 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 subtask represented by a natural integer.


* '''no''' is ''natural '''mandatory write-once'''''
* '''no''' is ''natural '''mandatory write-once'''''
Line 22: Line 22:
  Name of the source build or resource for the task.
  Name of the source build or resource for the task.


* '''sha''' is ''string '''optional write-once'''''
* '''sha''' is ''string[56] '''mandatory write-once'''''
  Sha
  [https://en.wikipedia.org/wiki/SHA-2 SHA2 224] 56-byted checksum over the RPM file containment.


* '''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 12:54, 12 December 2019

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

  • id is natural mandatory read-only internal
Unique internal identifier of the subtask 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[56] mandatory write-once
SHA2 224 56-byted checksum over the RPM file containment.
  • approver_slugs is string array optional
Array of the subtask approver slugs in the context of the current assembler.