Still RFCish, but this time a bit more tested. The JavaScript config
editor part was fleshed out and split over 7 patches. I also added
REST API support for reading and storing the config (for now as JSON
only, not YAML).
Paolo
Paolo Bonzini (17):
api, patchew-cli: remove commands to directly access properties
git: do not return properties from applier-get
api: do not blindly return all properties from get-projects
mods: move epilog to a .js file
mods: use classes instead of ids
mods: rename project_property_schema to project_config_schema
mods: refactor extraction of configuration into a dictionary
mods: refactor construction of config editor HTML
mods: place a single Save button at the end of the forms
mods: do not allow creating duplicate map items
mods: ask for confirmation after the user has added an item
models: store plugin configuration in a single, separate JSONField
rest: allow accessing the configuration via the REST API
models: introduce flags into Messages
models: add property fields to Message
models: switch from property tables to field
models: remove property tables
api/admin.py | 14 +-
api/migrations/0046_project_config.py | 22 ++
.../0047_populate_project_config.py | 56 ++++
api/migrations/0048_message_flags.py | 20 ++
api/migrations/0049_populate_message_flags.py | 42 +++
.../0050_message_flags_postgres_fts.py | 22 ++
api/migrations/0051_auto_20190418_1346.py | 33 +++
.../0052_populate_property_fields.py | 67 +++++
api/migrations/0053_auto_20190418_1357.py | 37 +++
api/models.py | 165 ++++++------
api/rest.py | 18 +-
api/search.py | 15 +-
api/views.py | 72 ++---
mod.py | 247 +++---------------
mods/email.py | 18 +-
mods/git.py | 62 +++--
mods/tags.py | 5 +-
mods/testing.py | 65 ++---
patchew-cli | 65 +----
static/js/config-editor.js | 131 ++++++++++
tests/patchewtest.py | 12 +-
tests/test_git.py | 11 +-
tests/test_rest.py | 30 +++
tests/test_testing.py | 41 ++-
www/templates/project-detail.html | 8 +
25 files changed, 754 insertions(+), 524 deletions(-)
create mode 100644 api/migrations/0046_project_config.py
create mode 100644 api/migrations/0047_populate_project_config.py
create mode 100644 api/migrations/0048_message_flags.py
create mode 100644 api/migrations/0049_populate_message_flags.py
create mode 100644 api/migrations/0050_message_flags_postgres_fts.py
create mode 100644 api/migrations/0051_auto_20190418_1346.py
create mode 100644 api/migrations/0052_populate_property_fields.py
create mode 100644 api/migrations/0053_auto_20190418_1357.py
create mode 100644 static/js/config-editor.js
--
2.21.0
_______________________________________________
Patchew-devel mailing list
Patchew-devel@redhat.com
https://www.redhat.com/mailman/listinfo/patchew-devel