balena-supervisor/src
Felipe Lalanne 4cdf26f82f Improve supervisor API behavior when locks are set
This PR adds the following

* Supervisor v1 API application actions now return HTTP status code 423 when locks
  are preventing the action to be performed. Previously this resulted in a
  503 error
* Supervisor API v2 service actions now returns HTTP status code 423 when locks are
  preventing the action to be performed. Previously, this resulted in an
  exception logged by the supervisor and the API query timing out
* Supervisor API `/v2/applications/:appId/start-service` now does not
  check for a lock. Lock handling in v2 actions is now performed by each
  step executor
* `/v1/apps/:appId/start` now queries the target state and uses that
  information to execute the start step (as v2 does). Previously start
  resulted in `cannot get appId from undefined`
* Extra tests for API methods

Change-type: patch
Connects-to: #1523
Signed-off-by: Felipe Lalanne <felipe@balena.io>
2020-12-14 10:43:41 -03:00
..
compose validation: Ensure commit lookup has a bound value 2020-11-11 11:01:20 +00:00
config Add config.txt support for Alliance rpi3 2020-12-11 09:46:48 -03:00
device-api Improve supervisor API behavior when locks are set 2020-12-14 10:43:41 -03:00
device-state Ensure the first target state request is applied 2020-11-13 10:19:27 -03:00
lib Improve supervisor API behavior when locks are set 2020-12-14 10:43:41 -03:00
logging Change log source from docker to journalctl 2020-10-28 16:09:42 +10:00
migrations Allow storing commits against their appIds 2020-11-10 10:50:08 +00:00
types application-manager: Convert to a singleton 2020-09-14 11:23:36 +01:00
api-binder.ts Remove superfluous current state reporting code from api-binder 2020-10-12 11:53:19 +01:00
app.ts bug: Resolve mDNS API URLs 2020-08-27 11:34:18 +01:00
db.ts Make the db module a singleton 2020-05-29 15:02:38 +01:00
device-config.ts added support for configuring ODMDATA 2020-08-29 09:05:27 -04:00
device-state.ts Allow storing commits against their appIds 2020-11-10 10:50:08 +00:00
event-bus.ts Add newTargetState event and use it for backup loading 2020-04-07 14:50:34 +01:00
event-tracker.ts mixpanel: superisor_version -> supervisor_version 2020-09-24 10:43:43 -04:00
host-config.ts Make the config module a singleton 2020-06-02 14:29:05 +01:00
local-mode.ts Make logger module a singleton 2020-06-08 17:19:20 +01:00
logger.ts Change log source from docker to journalctl 2020-10-28 16:09:42 +10:00
network.ts log detection of changes to VPN status 2020-07-23 19:20:59 -04:00
proxyvisor.js application-manager: Convert to a singleton 2020-09-14 11:23:36 +01:00
supervisor-api.ts Improve supervisor API behavior when locks are set 2020-12-14 10:43:41 -03:00
supervisor.ts Change log source from docker to journalctl 2020-10-28 16:09:42 +10:00