Skip to content

Add UI and API support to edit and delete replications

Longshou Situ requested to merge feature/replication_edit2 into master

Fixes #98 (closed); Reference #98 (closed)

Add UI support to update replications and delete replication with PENDING status. Add API support to deletion replication with PENDING status.

Screenshots:

Replication page with Edit icon: Screen_Shot_2020-01-06_at_8.15.23_AM

Edit form: Screen_Shot-update-1

Replication editing with error/ Replication with status STARTED that won't allow deletion: Screen_Shot-update-error-2

Edit form with SUCCESSFUL status selected: Screen_Shot-update-success-2

Status updated successfully: Screen_Shot-success-2

Cancel Action Button: Screen_Shot-cancel-1 Cancel and go back to previous page: Screen_Shot_-cancel-2

Delete/Cancel Replications:

Edit form with PENDING status that allows deletion: Screen_Shot-delete-1

Prompt message for deletion: Screen_Shot-_delete-2

Delete through api calls:

$ curl -i -u admin:admin -XDELETE http://localhost:8080/api/replications/70
HTTP/1.1 204 
Set-Cookie: JSESSIONID=11FDCFB24AE1952740DDA4A513C9475C; Path=/; HttpOnly
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
X-Frame-Options: DENY
Date: Mon, 06 Jan 2020 22:24:01 GMT

@mcritchlow1 I've reapply the change in MR !24 (closed), add added support for cancelling the action. Please review. Thanks.

Merge request reports