Skip to content

Resolve "Use Same Endpoint for HTML and JSON in OperationsController"

What does this MR do?

Refactor Operations and Environments dashboard controller which uses same action method in controller for both html and json format of the incoming request.

Screenshots or Screencasts (strongly suggested)

Operations Dashboard with the changes applied:

Screenshot_2021-08-09_at_8.34.08_PM

Environments dashboard with the changes applied:

Screenshot_2021-08-09_at_8.34.58_PM

How to setup and validate locally (strongly suggested)

Visit http://127.0.0.1:3000/-/operations/ (Operations dashboard) and select a project to add to the dashboard. Then remove the project from dashboard and verify the list again.

Visit https://127.0.0.1:3000/-/operations/environments/ (Environments dashboard) and select a project to add to the dashboard. Then remove the project from dashboard and verify the list again.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #34051 (closed)

Edited by Bala Kumar

Merge request reports