When updating the <services> only replace the specific <service> with a matching name
If there is a service in progress, just return without triggering.

Signed-off-by: David Greaves <david.greaves@jolla.com>
Avoid python warning

Signed-off-by: David Greaves <david.greaves@jolla.com>
The /find applies to get and put requests as a detail, not a list.
Handles 404 with GET; and both modification and creation with PUT

Signed-off-by: David Greaves <david.greaves@jolla.com>
Make lsr read-only (but leave the logic for write handling in case it is needed)

Signed-off-by: David Greaves <david.greaves@jolla.com>
Add the webhook service and a webhook_diff assistant

Signed-off-by: David Greaves <david.greaves@jolla.com>
Refactor the boss launch functions out to allow them to be used in the model

Signed-off-by: David Greaves <david.greaves@jolla.com>
Refactor the handle_tag function to become a method to enable WebhookMapping.trigger_build()

Signed-off-by: David Greaves <david.greaves@jolla.com>
Rename lsr to avoid confusion with the readonly dynamic attribute
Return a message from handle_tag() so it can be used by /trigger API call

Signed-off-by: David Greaves <david.greaves@jolla.com>
Add WebhookMapping.trigger_build()

Signed-off-by: David Greaves <david.greaves@jolla.com>
Add a /trigger ability via a PUT method

Signed-off-by: David Greaves <david.greaves@jolla.com>
Update packaging to support webhook service and add dependency on lxml and (for Suse) python-South; also add migrations

Signed-off-by: David Greaves <david.greaves@jolla.com>
Verify Project restrictions when handling incoming payloads; not just at validation

Signed-off-by: David Greaves <david.greaves@jolla.com>
Add some explanatory text for Projects

Signed-off-by: David Greaves <david.greaves@jolla.com>
Add migration for uniqueness constraint
Update process to use log_channel and default to #mer-boss (as per BUILD process)

Signed-off-by: David Greaves <david.greaves@jolla.com>
Revert create_project to use non-DRY parse_bz_config until python-boss-common is updated in public

Signed-off-by: David Greaves <david.greaves@jolla.com>
Add missing VCSNameSpace import and a comment for placeholder mappings

Signed-off-by: David Greaves <david.greaves@jolla.com>
Handle null "base_ref" in payload

Signed-off-by: David Greaves <david.greaves@jolla.com>
Add a 'match' field and support regexp project matching

Signed-off-by: David Greaves <david.greaves@jolla.com>