Add/improve documentation for scratch module build requests,

particularly for the new 'modulemd' and 'module_name' parameters.

Signed-off-by: Merlin Mathesius <mmathesi@redhat.com>
This commit is contained in:
Merlin Mathesius
2019-03-15 15:52:23 -05:00
committed by mprahl
parent aaf9eaa6ec
commit 7b7b07211e
2 changed files with 14 additions and 5 deletions

View File

@@ -19,7 +19,8 @@ This JSON data is handled by ``views.SCMHandler``, which validates the JSON and
``submit_module_build(...)``.
Alternatively, if submitting a YAML modulemd file is allowed (MBS setting
``YAML_SUBMIT_ALLOWED`` is ``True``), the user can send a ``multipart/form-data``
``YAML_SUBMIT_ALLOWED`` is ``True``), the user can include it in the JSON data
(called ``modulemd`` and ``module_name``) or send a ``multipart/form-data``
POST request directly including the contents of a YAML modulemd file
(called ``yaml``). In this case, the JSON data and YAML file are handled by
``views.YAMLFileHandler``, which validates the data and calls the
@@ -27,7 +28,9 @@ POST request directly including the contents of a YAML modulemd file
to ``submit_module_build(...)``.
If module scratch builds are allowed (MBS setting ``MODULES_ALLOW_SCRATCH`` is
``True``), the user can also upload one or more source RPMs uploaded to Koji
``True``), the user can request a scratch module build (called ``scratch``).
With a scratch build request, the user can include a YAML modulemd file
(see above) and also upload one or more source RPMs to Koji
via calls to Koji's ``session.uploadWrapper(..)``, and supply the list of
upload links to MBS (called ``srpms``). Such custom SRPMs will be used to
override the git repository source for corresponding components.