Vridlo/types/Task: Difference between revisions

From ALT Linux Wiki
(Created page with "'''Task''' is read-only structure that represents Task model. It is described as: * '''slug''' is ''string '''mandatory write-once''''' Unique internal identifier of the fil...")
 
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''Task''' is read-only structure that represents Task model. It is described as:
'''Task''' is a '''''secondary''''' structure that represents Task model, which is used for describing the [[Vridlo/types/Assembler|Assembler]]'s task. It is described as:


* '''slug''' is ''string '''mandatory write-once'''''
* '''no''' is ''natural '''mandatory write-once'''''
  Unique internal identifier of the file representing by a string. Can contain only letters and underscores.
  Unique task identifier in the context of the current assembler.


* '''name''' is ''string '''optional'''''
* '''owner_slug''' is ''string '''mandatory write-once'''''
  Name of the assembler.
  Slug name of the task owner person in the context of the current assembler. It represents [[Vridlo/types/User|User]] structure, which is defined by the user's [[Vridlo/types/Recital|Recital]] record placed with the kind of ''login''.


* '''host''' is ''string '''optional'''''
* '''source_path_slug''' is ''string '''mandatory write-once'''''
  Host URI of of the assembler.
  Slug of the [[Vridlo/types/SourcePath|source path]].  


* '''export_path_base''' is ''string '''optional'''''
* '''uri''' 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.
  External resource URI to see the task details.


* '''source_path_count''' is ''string '''read-only'''''
* '''state''' is ''string '''optional'''''
State of the task.


  Count of held [[Vridlo/types/SourcePath|RPM source paths]] in the assembler.
* '''shared''' is ''boolean '''optional'''''
    t.integer "no", null: false, comment: "Число задания сборочницы"
  Shared flag of the task.
    t.string "uri", comment: "Ссылка на задание"
 
    t.string "state", comment: "Статус задания"
* '''test''' is ''boolean '''optional'''''
    t.boolean "shared", comment: "Разделяемое задание"
Testonly flag of the task.
    t.boolean "test", comment: "Тестовое задание"
 
    t.integer "try", comment: "Попытка"
* '''try''' is ''natural '''optional'''''
    t.integer "iteration", comment: "Шаг"
Try of the build.
    t.string "owner_slug", null: false, comment: "Учётка владельца"
 
    t.bigint "branch_path_id", null: false, comment: "Ссылка на сборочный путь ветви"
* '''iteration''' is ''natural '''optional'''''
    t.datetime "changed_at", null: false, comment: "Задание изменено в"
Build iteration.
 
* '''changed_at''' is ''string '''optional'''''
Task state is changed at the time.
 
* '''exercises_count''' is ''positive '''mandatory read-only'''''
Count of held [[Vridlo/types/Exercise|exercises i.e. subtasks]] in the task.

Latest revision as of 14:11, 24 December 2019

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

  • no is natural mandatory write-once
Unique task identifier in the context of the current assembler.
  • owner_slug is string mandatory write-once
Slug name of the task owner person in the context of the current assembler. It represents User structure, which is defined by the user's Recital record placed with the kind of login.
  • source_path_slug is string mandatory write-once
Slug of the source path. 
  • uri is string optional
External resource URI to see the task details.
  • state is string optional
State of the task.
  • shared is boolean optional
Shared flag of the task.
  • test is boolean optional
Testonly flag of the task.
  • try is natural optional
Try of the build.
  • iteration is natural optional
Build iteration.
  • changed_at is string optional
Task state is changed at the time.
  • exercises_count is positive mandatory read-only
Count of held exercises i.e. subtasks in the task.