Commit Graph

73 Commits

Author SHA1 Message Date
Merlin Mathesius
790b08ddaa Fix typo in README file that befouls formatting of the option list
Signed-off-by: Merlin Mathesius <mmathesi@redhat.com>
2020-05-12 16:25:32 -05:00
Merlin Mathesius
da51bebcd9 New 'module_stream' optional parameter
- Implement new optional parameter module_stream to allow a scratch module
  build's stream name to be set from the command line when also submitting a
  YAML modulemd file.
- Validate that module_name and module_stream parameters can only be specified
  along with a YAML modulemd file.
- Add tests to verify that module_stream sets the stream name correctly.
- Add tests to verify that module_name and module_stream are only allowed along
  with a YAML modulemd file.

Signed-off-by: Merlin Mathesius <mmathesi@redhat.com>
2020-03-10 14:08:29 +00:00
mprahl
9ddb35b8d3 Move models.py to common/models.py and views.py to web/views.py 2020-03-03 14:48:47 -05:00
mprahl
8dc20c1731 Remove unused Kerberos configuration options
This is some leftover code that was missed in 9fd3731ff7.
2019-11-05 15:08:27 -05:00
mprahl
1bcb40d4d0 Allow specifying a specific module build to reuse components from
This resolves #1296.
2019-07-16 11:40:59 +00:00
mprahl
6c4d6ee2b4 Alphabetize the build parameters in the documentation 2019-07-16 11:40:59 +00:00
mprahl
35eb016fd8 Move the Rebuild Strategies documentation to a separate file 2019-06-24 14:29:58 -04:00
mprahl
53ba1513e2 Add a code style guide 2019-05-10 13:02:27 +00:00
mprahl
d0aea40788 Support the stream_version_lte filter in the API 2019-04-25 08:12:49 -04:00
mprahl
0217496d1f Refactor the API ordering to accept multiple order keyword arguments of the same direction
This also improves how a column is determined to be valid for ordering.
2019-04-23 08:37:12 -04:00
Merlin Mathesius
7b7b07211e 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>
2019-03-19 11:56:47 +00:00
mprahl
64053e7fed Document virtual platforms 2019-03-19 11:40:20 +00:00
Chenxiong Qi
ea56685667 Fix config name MODULES_ALLOW_SCRATCH in docs
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2019-03-06 14:38:37 +08:00
Merlin Mathesius
f2e7a8db07 Add web request options 'scratch' and 'srpms' for module scratch builds.
Signed-off-by: Merlin Mathesius <mmathesi@redhat.com>
2019-03-01 10:27:04 -06:00
mprahl
486d644d68 Update the module submission API documentation 2019-02-12 15:55:01 -05:00
mprahl
9f9a025958 Use the https protocol to clone dist-git repos instead of the git protocol
You can read about this at:
https://fedoraproject.org/wiki/Infrastructure/HTTPS-commits

The bug was reported at:
https://bugzilla.redhat.com/show_bug.cgi?id=1666257
2019-01-16 19:00:25 +00:00
Chenxiong Qi
2febab9c19 Fix rebuild strategy name changed-and-after in README
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2018-11-28 22:10:33 +08:00
mprahl
f7e7765686 Add the ability to override buildrequires and requires when submitting a module build
This will allow for tooling to automatically override certain buildrequires and requires
based on the branch name the modulemd is built form.

Addresses FACTORY-3414
2018-10-29 17:08:27 -04:00
mprahl
599c881714 Add the ability to query by the base modules a module build buildrequires
Future use cases will require the ability to find compatible module builds
to buildrequire based on the base module the module used to build. This
commit adds an association table that will contain module build IDs
and the base module they buildrequire.

Addresses FACTORY-3353
2018-10-17 07:47:31 -04:00
Filip Valder
598347e1b6 Import module API 2018-09-07 17:12:01 +02:00
mprahl
8a54b26fd7 Expose the NVR of component builds in the API to help future debugging 2018-08-07 10:33:14 -04:00
mprahl
36a9026ca8 Remove references to COPR 2018-06-28 10:00:06 -04:00
Filip Valder
23a9eb8e70 Add param to README + other minor fixes 2018-06-18 10:01:40 +02:00
Filip Valder
f1fc7ed467 New: Support querying of modules/components with multiple state value filtering 2018-06-13 09:42:38 +02:00
mprahl
a4903876f2 Remove deprecated mbs-build tool 2018-04-03 10:09:29 -04:00
mprahl
601cd64a2a Add a change log 2018-01-22 10:51:22 -05:00
mprahl
53dc444214 Allow filtering on all table columns 2017-11-27 15:08:58 -05:00
mprahl
ea0d03b24c Add documentation on the rebuild strategies 2017-11-13 10:49:37 -05:00
mprahl
9aab9f256b Fix missing parameters in POST example in the documentation 2017-11-13 10:47:28 -05:00
Nick Coghlan
d159350fff Default to reverse ordering by ID in APIs
Adjusts the affected tests to assume the
exact current set of default test data.

These tests were also testing the exact
same query URL, so they've been consolidated
into a single test.
2017-10-31 09:15:08 -04:00
mprahl
eedf0a1684 Default verbose to false but present a lot more information when verbose is false 2017-10-23 20:19:51 -04:00
mprahl
25b689ef46 Update the documentation 2017-10-06 09:58:34 -04:00
mprahl
6165fd5088 Add an API that exposes information about the MBS server 2017-09-19 16:48:28 -04:00
mprahl
0f6d7a55c5 Add Kerberos + LDAP authentication support 2017-09-15 12:02:57 -04:00
Filip Valder
3cb41aa5dc Changes in MBS restful API:
- Refactor MBS API code
- Unify module-/component_build API philosophy/design/approach
- Naming fixes
- _utc_datetime_to_iso moved from ModuleBuildAPI and is now a module-level function.
- Existing v1 API remains unchanged. ComponentBuildAPI now supports individual component build listing + verbose mode.
- documented in README
- various component_build API tests added
2017-09-11 14:48:22 +02:00
Filip Valder
5b7be25558 Add 'Listing component builds' subsection to the API section 2017-08-25 15:01:17 +02:00
Filip Valder
2e2856169a Update and reformat README, CONTRIBUTING guide and sync code comments 2017-08-25 14:45:42 +02:00
Stanislav Ochotnicky
5eb4c1652f Modify content generator based on Koji dev feedback
- Change the type of build from modulemd to just module
- Change build output type from modulemd to file
- Provide the typeinfo also for the modulemd.yaml output
- Convert dashes to underscores for build version (i.e. mbs stream).
  koji build versions can't have dashes - we can provide real value in
  the extra section
- Add name, stream, version data into build extra section
- Add tool information for modulemd
- Add buildroot components from host running mbs
- Added few methods licensed under BSD 3-clause (from atomic-reactor)
2017-05-15 10:39:01 +02:00
Ralph Bean
1104a3ae10 Update README with new tasks API format. 2017-03-05 23:57:51 -05:00
Filip Valder
13b7bcd03e Support for state tracing of modules and components
- DB migration scripts.
- Models: ComponentBuildTrace, ModuleBuildTrace.
- ModuleBuild.state_trace method for querying for a particular module's
state history.
- SQLAlchemy before commit session event handler for recording
module/component state changes.
- REST API verbose mode for getting state trace of a particular module.
- Tests use make_session, so that event handlers are in effect.
- Short info in README about verbose mode.
- Tests verifying whether state trace information about a module appears
in verbose mode.
- Other minor fixes (RidaBase -> MBSBase, PEP8...)
2017-02-28 16:15:43 +01:00
Jakub Kadlčík
6b598b1bf7 Describe yaml file submission 2017-02-21 10:41:31 +01:00
Ralph Bean
74d0398e2e Merge #299 Re-format and update README 2017-01-31 17:27:50 +00:00
Filip Valder
52e76a16ea re-format and update readme 2017-01-31 14:44:22 +01:00
Filip Valder
89351fbc24 Re-factor configuration loading, fix default topics (shall be a list),
update docs.
2017-01-31 14:00:15 +01:00
Matt Prahl
03df8d5865 Move docs to docs folder 2016-11-16 16:16:43 -05:00
Ralph Bean
174a4b66cf Add a HACKING.rst doc alongside README.rst. 2016-10-27 16:17:25 -04:00
Matt Prahl
b4082dc551 Rename module from rida to module_build_service
Rename routes from /rida/1/module-builds/ to /module-build-service/1/module-builds/
2016-10-24 10:30:23 -04:00
Lubos Kocman
45c61c9249 Change loglevel for Dev and Test Configuration to DEBUG + note in readme 2016-10-04 15:52:24 +02:00
Matt Prahl
388687a19d Fix subheadings in the README 2016-09-30 11:15:13 -04:00
Matt Prahl
482a6b3cff Add documentation on using Vagrant for development 2016-09-30 17:04:10 +02:00