c9038dfe69
This patch splits out the Task layer and the API layer. This will better allow us to build more logic into the task layer, and better allow the APIs to be more flexible. This sets the foundations for future additions to task definitions, async task processing, and an overhaul of the config system for the service. - Task model and logic moved to 'tasks' app - TaskViews are now DelegateAPIs - stage email templates have been moved to the tasks app - better define Task model indexes - rename task/action stage pre_approve to prepare - rename task/action stage post_approve to approve - Added new TaskManager class for handling tasks - Removed redundant ip_address value on Task model - Remove redundant UserSetPassword view - Added custom exception handling for the API - Add new exception types - Simplified error responses by raising exceptions - standardized task API response codes on 202 unless task is completed - Use 503 Service Unavailable for service issues - Various task_types changed: - create_project to create_project_and_user - invite_user to invite_user_to_project - reset_password to reset_user_password - edit_user to edit_user_roles - update_email to update_user_email - reissuing task token now deletes old task tokens Story: 2004489 Change-Id: I33381c1c65b28b69f6ffeb3d73b50be95ee30ba7
34 lines
1.5 KiB
YAML
34 lines
1.5 KiB
YAML
---
|
|
features:
|
|
- |
|
|
Adjutant now introduces two new concepts for handling the configurable
|
|
APIs and workflow layer. DelegateAPIs are now the APIs which can be
|
|
customised and enabled in Adjutant, and Tasks are now their own layer
|
|
which can be called from the DelegateAPIs.
|
|
upgrade:
|
|
- |
|
|
* Major changes internal classes. Many plugins likely to need reworking
|
|
before using this release to match new internal changes.
|
|
* The Task database model has been renamed and moved, this will require
|
|
downtime for the migration to run, but should be fairly quick.
|
|
deprecations:
|
|
- |
|
|
* TaskViews are gone, and replaced with DelegateAPIs, with much of their old
|
|
logic now in the TaskManager and BaseTask.
|
|
* tasks config cannot override default_actions anymore
|
|
* standardized task API response codes on 202 unless task is completed from 200
|
|
* Action stages renamed to 'prepare', 'approve', 'submit'.
|
|
* TaskView logic and task defition moved to new task.v1 layer
|
|
* UserSetPassword API has been removed because it was a duplicate of
|
|
UserResetPassword.
|
|
* Removed redundant ip_address value on Task model
|
|
* multiple task_types have been renamed
|
|
* signup to create_project_and_user
|
|
* invite_user to invite_user_to_project
|
|
* reset_password to reset_user_password
|
|
* edit_user to edit_user_roles
|
|
* update_email to update_user_email
|
|
fixes:
|
|
- |
|
|
Reissuing task token now deletes old task tokens properly.
|